This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Thermistor with nRF 52840

Hi guys ,

I am trying to connect thermistor with the ADC pins of nRF.

I use the steinhart formula to calculate the temperature in degree celcius. I used a voltage divider bias circuit where R1 is my thermistor and R2 is 10K ohms and I attach the output to the NRF adc pin.

Now , I use this formula Rt =R0 * ((adcMax / adcVal) - 1)

where Rt is the resistance of thermistor at particular temperature 

R0 is 10K ohms 

adcMax is maximum adc values

adcVal is the output adc value

I also want to convert Rt into its logarithm (ln in math) thus ,

logRt = log(R0 * ((adcMax / adcVal) - 1))

after which steinhart is 1/T = A + B*ln(R) + C*(ln(R))^3

After I tested this I get an accuracy issue of +20 DEGREE celcius in my output.

But in this case,

Vs is source voltage = 5V

Vo is the output voltage (depends on the output)

assuming Vref = Vs ( vref is reference adc voltage)

the above formula is applicable. But Iam giving Vs as 5V and I dont know how change my Vref to the same.

What can I do in this issue ?

PLease tell me how can I correct my +20 DEGREES error?

thanks

 .

Parents Reply Children
Related