100K温度电阻分度表
-
粗精度直接用公式计算
-
细精度用厂家的传感器参数来计算 Y = C1 + C2* y + C3 * y * y*y
static float get_ntc_temp(double Rt)
{
double y = log(Rt);//122.6us@48M
double val;
static const double c1 = 0.0008314;
static const double c2 = 0.00026178;
static const double c3 = 0.00000014274;
val = c1 + c2*y + c3*y*y*y;
val = 1/val;
val -= 273.15;