Last updated 1 year ago
NTC resistance follows the formula
Take the 10k NCP18XH103F03RB as example:
T_R is 25℃, or 298.15 K
T_R
R_R is 10k at 25℃
R_R
B is 3380K
B
Thus, we get
r_ntc = 1e5 * pow(3380. * (1. / temperature - 1. / 298.15));
or, to get temperature,
temperature = 3380. / (log(r_ntc / 10000.) + 3380. / 298.15);