HI,
Well then I have finally programmed thermometer, unfortunately not in the way as they would like, The AVR support logarithm calculations. Using the following formula got a great result:
Support resistance = 10K
NTC thermistor= 10K
NTC*1024=10000*1024=10240000
Temp_K = log ((10240000 / ADC_Temp) - 10000) The calculation logarithmic curve
Temp_K = 1 / (0.0012208921705562318 + (0.00022188369299232732 + (0.0000001145501465461871 * Temp_K) * Temp_K) * Temp_K) Calculate the Temperature K
Temp_C = Temp_K - 273.15 Convert from K>C
Works great, but would like to do the same LUT. I understand if the ADC value is five then receives the value of the fifth
Code: Select all
0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100,105,110,115,120,125
result is 25.
Is there any way where the LUT values are compared with I desired and the number of values to be displayed? if the ADC value is 12 then the LTU is found in Table 12, and the value of he is representative of the serial number
Code: Select all
6, 6, 7, 7, 8, 8, 9, 9, 10, 11, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 28, 29, 31, 33, 34, 36, 38, 40, 42, 44, 46, 48, 50, 53, 55, 57, 60, 62, 65, 67, 70, 73, 75, 78, 81, 84, 87, 90, 92, 95, 98, 101, 104, 107, 110
result is 11
Thank.