interfacing with a temperature sensor


i have absolutely no experience temperature sensors. interfacing stlm20 temperature sensor, datasheet can found here:
http://www.st.com/web/catalog/sense_power/fm89/sc294/pf129199

anyway connection quite simple, have question regarding transfer function.....what , how can use measure temperature?

that type of sensor generates voltage proportional temperature have connect 1 of arduino's adc inputs.
the transfer function equation shows how calculate temperature voltage (or vice versa).
reorganizing linear equation on page 6 slightly, output voltage v @ temperature t (celsius) given by:
code: [select]
v = 1.8663 - .01169*t
a simple example when temperature 0 degrees c, output voltage 1.8663v.
for use arduino, measuring voltage on adc , calculating temperature that. reworking equation solve t gives:
code: [select]
t = 85.543*(1.8663 - v)
so, example,  if v=0 t=159.65c
the problem device, evident tables on pages 6 , 7, accuracy varies depending upon range of temperatures wish measure , chip's supply voltage.
the parabolic equation given on page 6 give more accuracy still dependent upon operating temperature range , supply voltage.

pete


Arduino Forum > Using Arduino > Sensors > interfacing with a temperature sensor


arduino

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

Rasperry Wifi LAN Controller - Raspberry Pi Forums

Unlock car with bluetooth and car key