Reading an LM35 sensor in minus degrees 16F690
Posted: Sun Jul 17, 2016 12:17 pm
Hi all,
I have eventually finished my fridge controller which works perfectly well on a breadboard using 2 pots to simulate the LM35 sensors, but am having difficulty with the LM35 sensors (one for cabinet temp and the other for the evaporator temp)
When simulating the sensors on the breadboard, I used pots which I read to get an INT, then subtracted 512 to get 0 degrees midway on the pot setting which allowed me to simulate the minus side of the pot. Having now connected the LM35 sensors to the breadboard and placed the sensors inside a freezer, the temp goes down to 0 degrees and will not budge below that.
I read the LM35 sensors as Martin taught me in previous posts of mine, where: temp=temp *49/10 and then temp=temp/10 (having 10mV/degree C) to get a whole number on the degree of temperature, which is fine for any positive degree of temperature. The LM35 can read from -55 to 150 degrees according to the datasheet, how do I get the minus degree readings from the sensors? Have gone through the datasheet but has no clue.
Would appreciate some help please.
Thanks
Regards
Ted
I have eventually finished my fridge controller which works perfectly well on a breadboard using 2 pots to simulate the LM35 sensors, but am having difficulty with the LM35 sensors (one for cabinet temp and the other for the evaporator temp)
When simulating the sensors on the breadboard, I used pots which I read to get an INT, then subtracted 512 to get 0 degrees midway on the pot setting which allowed me to simulate the minus side of the pot. Having now connected the LM35 sensors to the breadboard and placed the sensors inside a freezer, the temp goes down to 0 degrees and will not budge below that.
I read the LM35 sensors as Martin taught me in previous posts of mine, where: temp=temp *49/10 and then temp=temp/10 (having 10mV/degree C) to get a whole number on the degree of temperature, which is fine for any positive degree of temperature. The LM35 can read from -55 to 150 degrees according to the datasheet, how do I get the minus degree readings from the sensors? Have gone through the datasheet but has no clue.
Would appreciate some help please.
Thanks
Regards
Ted