Between the Lagrange’s theorem and the Laplace transform, nabla and delta symbols, we were also finding transfer functions like this one.
The applied Steinhart-Hart Thermistor transfer function can be transcribed as:
T2= T1*B/ln(R1/R2) / ( B/ln(R1/R2) - T1 )
for known resistor values. The B (beta) parameter is also a known since I will be using thermistors that have proper documentation and online datasheets.
The thermistor I am using is a 10K 1% (3380 Beta one) that has the datasheet here:
For everybody who is interested in playing with this mathematical model, if this is new information to you, please have fun with this online calculator. I am not affiliated in any way with the creator of this calculator, but I though I drop this link here for who wants to learn more:
You can also check the wikipedia official article:
My software implementation looks something like this:
Notice that I have a special if to prevent the ln(1) which is 0. This has to be prevented in this equation or else it will turn into:
and you will get an error there. This happens at 25 Celsius degrees and if this error is not prevented, I think it just shows 0.0000 on the screen.