Clock Temp sensors LM36/TMP36 Fahrenheit display #t2 #t1 #clock


BrianB
 

I'm posting this so others don't have to spend a week trying to figure out the ADC settings to use a TMP36 and display the results in Fahrenheit.

0°F = -17.8°c = 500mv + (-17.8°c * 10mv/c) = .322mv
1024 * .322mv / 5 = 66 (ADC value at 0°F)

25°F = -3.9°c = 500mv + (-3.9°c * 10mv/c) = .461mv
1024 * .461mv / 5 = 94 (ADC value at 25°F)


So when setting up the temp sensor in the clock just use "66" for 0c and "94" for 25c. This will get you a very close.

73,
BrianB
N6CVO



Ryan NN7M
 

Thanks for working that out. 

Ryan KE7RW