Rt = R *exp (b* (1/T1-1/T2))
Here T1 and T2 refers to K degrees Kelvin temperature, K degree =273.15 (absolute temperature) + Celsius; where t2= (273.15+25)
Rt is the resistance of the thermistor at T1 temperature, R is the nominal resistance of the thermistor at T2 temperature, and the B value is an important parameter of the THERMISTOR; exp is the n-th square of E;
Seeking T1 =ln (RT/R)/b+1/t2
C Program:
#include "math.h" const float rp=10000.0; 10Kconst float T2 = (273.15+25.0);; /t2const float Bx = 3950.0;//bconst float Ka = 273.15;float get_temp (void) {float rt;float Temp; Rt = Get_tempresistor ();//like this r=5000, t2=273.15+25,b=3470, Rt=5000*exp (3470* (1/t1-1/(273.15+25)), temp = Rt/Rp; temp = log (temp);//ln (RT/RP) temp/=bx;//ln (RT/RP)/btemp+= (1/t2); temp = 1/(temp); Temp-=ka;return temp;
}
NTC thermistor Temperature Calculation formula