I looked at the data again. Adding a resistor in parallel will reduce your sensitivity.
If you are using floating point arithmetic anyway, then you might as well go back to square one.
My equations are:
- Acquire the ADC counts
- Calculate the resistance R of the thermistor
- Take the log(R)
- fit to T vs log(R)
Assuming that the ADC Vref is the same as Vdd or Vcc, otherwise adjust as required.
R2 = 10000 where R2 is the load resistance
R = 1023*R2/ADC_COUNTS - 1
x = log(R)
where log( ) means the natural log or ln( )
a3 = 2.402675132814
a2 = -30.837075314796
a1 = 148.797883377607
a0 = -285.600560405728
T = a3*x^3 + a2*x^2 + a1*x + a0
Rich (BB code):
R2=10000;
R=(1023*R2)/adc_raw -1;
x = log(R);
a3=2.402675132814;
a2=-30.837075314796;
a1=148.797883377607;
a0=-285.600560405728;
temperature1 = a3*pow(x,3)+a2*pow(x,2)+a1*x+a0;