NTC Thermistor Calculator Datasheet pdf
NTC2 is a free thermistor resistance calculation software. Input the resistance value of 25 degrees and the value B to calculate the corresponding resistance value. The result can also be saved as a file, which is the best auxiliary tool for calculating the resistance value. Friends who need it can download it from this site
Instructions
Input the resistance value and value of 25 degrees, set the step to calculate the resistance value at any temperature, and the result can be exported as a file.
NTC thermistor temperature calculation formula
Rt = R *EXP(B*(1/T1-1/T2))
Here T1 and T2 refer to K degrees that is Kelvin temperature, K degrees = 273.15 (absolute temperature) + degrees Celsius; where T2 = (273.15 + 25)
Rt is the resistance value of the thermistor at temperature T1;
R is the nominal resistance of the thermistor at normal temperature T2;
B value is an important parameter of thermistor;
EXP is the nth power of e;
Find T1 =ln(Rt/R)/B+1/T2
C program:
#include "math.h"
const float Rp=10000.0; //10K
const float T2 = (273.15+25.0);;//T2
const float Bx = 3950.0;//B
const 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)/B
temp+=(1/T2);
temp = 1/(temp);
temp-=Ka;
return temp;
}