LM34/35 temperature probe
ChristianG
Posts: 29
I recently bought a LM35 TEMPERATURE PROBE, and I'm trying to make it work with the Javelin.
I'm using the ADC-converter class to interface the lm35, but I don't get the expected results: The lm35 is returning 0,272v as expected (0 + 10mv/degC = 0,272v corresponding to 27,2 degres). But the ADC-class is returning an integer value·like 82! How does 82 match with 27 degres?
The outputvalue returned from adc is not changing, when temperature is increasing or decreasing.
I think that my problem is that the·output voltage from lm35 is·only changing 10mv·per 1 degre. How can·I scale the outputvalue so it's readable with the ADC-class?
Has somebody tried to use lm34 or lm35 with javelin? How should it be interfaced? is ADC the correct way to read temp values?
Regards,
Christian G.
Post Edited (ChristianG) : 11/22/2004 8:02:28 AM GMT
I'm using the ADC-converter class to interface the lm35, but I don't get the expected results: The lm35 is returning 0,272v as expected (0 + 10mv/degC = 0,272v corresponding to 27,2 degres). But the ADC-class is returning an integer value·like 82! How does 82 match with 27 degres?
The outputvalue returned from adc is not changing, when temperature is increasing or decreasing.
I think that my problem is that the·output voltage from lm35 is·only changing 10mv·per 1 degre. How can·I scale the outputvalue so it's readable with the ADC-class?
Has somebody tried to use lm34 or lm35 with javelin? How should it be interfaced? is ADC the correct way to read temp values?
Regards,
Christian G.
Post Edited (ChristianG) : 11/22/2004 8:02:28 AM GMT
Comments
So allow me this simple answer....27deg Celsius is 80.6deg Farenheit.· Where 27.777degC is 82degF.
Could you be getting your metric/SAE units confussed?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
http://members.rogers.com/steve.brady
http://www.geocities.com/paulsopenstage
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."