Hi all,
I am trying to get a one decimal presentation to a displayed temperature value. I’m using an LM35 which delivers 10mV / C it works almost as expected without decimals. If I test it by squeezing the LM35 between my fingers it goes; 24, 25, 26, 27, 29, 30 skipping 28? When I release it, it goes; 30, 29, 27, 26 and so on? And I cannot figure it out. ??
And as mentioned; my next problem is how to get one decimal.
I am using a16F88 set to 10 bit A/D and here’s part of the code:
ADCIN 0,T
T = (T*/500)>> 2
LCDOUT $FE,1,"TEMP= ",DEC T, “C”
Any ideas?
Bookmarks