temperature calculations
Posted: Sun Jan 26, 2014 5:52 am
I am using a thermistor into an ADC port for temperature.
In most of the post I have read, most reference a LOOK UP table to compare the ADC value to displayed temperature.
I have two variables Labeled "temp" = Byte (0-255), the second labeled "adjtemp" =integer (-32768 to 32767)
Not having the actual sensor I as of yet, I do not know what the actual voltage drop it will cause in real life. In simulation I use the following calculation:
adjtemp = temp- 50
This will now give me a variable that can provide a negative number. When I adjust the slider (in the sim) I can display a negative value for temperature.
Until I actually build the circuit I have no idea how much to subtract, But I think I can get it close enough for the 1 degree F resolution I am looking for.
Any thoughts?
Bob
In most of the post I have read, most reference a LOOK UP table to compare the ADC value to displayed temperature.
I have two variables Labeled "temp" = Byte (0-255), the second labeled "adjtemp" =integer (-32768 to 32767)
Not having the actual sensor I as of yet, I do not know what the actual voltage drop it will cause in real life. In simulation I use the following calculation:
adjtemp = temp- 50
This will now give me a variable that can provide a negative number. When I adjust the slider (in the sim) I can display a negative value for temperature.
Until I actually build the circuit I have no idea how much to subtract, But I think I can get it close enough for the 1 degree F resolution I am looking for.
Any thoughts?
Bob