Page 1 of 1

Thermistor conversion techniques

Posted: Wed Mar 26, 2025 11:34 am
by jay_dee
Hi,
Thermistors, I will be reading in several thermistor values via a I2C Analog expander and pull up resistor.
I see there is a Thermistor Component but this seems to be only for sensors directly attached to the ADC of the PIC.

Brief reading indicate that there are two common equations for converting a Thermistor ADC value to a temp, while compensating for the non linear characteristic curve of the sensor. These are the Steinhart-Hart and B parameter Equations.
There is also the method of using a look-up table.

I dont need a high level of accuracy , what is the suggested method to use in FC?
Has anyone had good success doing something similar?
Thanks, J.

Re: Thermistor conversion techniques

Posted: Wed Mar 26, 2025 1:01 pm
by medelec35
I have had great success is using a formula based on the ADC value, and not using a thermistor component.
I uploaded it here.
So long as your ADC expander using the 0 to 1023 from 0 to 5V, I don't see why it should not work.

Re: Thermistor conversion techniques

Posted: Mon Mar 31, 2025 10:30 am
by jay_dee
Thanks Martin,
Resulst look good in the sim, I've not run it is hardware yet.
I've just re-arranged the thermistor Beta FC you gave so it is easier to deploy as a Conversion Macro within my Project and I moved the Constants to Variables as I will set these in my Initiallisation Macro.
I appreciate my simplified conversion from Float to INT drops the decimal places but that is good enough for my initial testing.
Thanks for doing all the hard work!
Thermistor Macro v1.0.fcfx
(10.83 KiB) Downloaded 27 times

Re: Thermistor conversion techniques

Posted: Mon Mar 31, 2025 1:27 pm
by medelec35
You're welcome Jay.
Good luck with your project.