I have not implemented it in GCBASIC but here is a very good APPNOTE for you to use as a starting point. AN685 - Thermistors in Single Supply Temperature Sensing Circuits
If you do implement it be sure to contribute the code for use as an example or, even better, a library.
Last edit: Chris Roper 2017-08-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes I've used it. I find it is easier to construct a lookup table giving the expected output value for every degree (or so). If smaller divisions are needed a linear interpolation is good enough.
Direct calculation using 8-bit integers is going to be a bit of a challenge (and slow).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Have any of you ever played with an NTC and the Steinhart-Hart equation?
I have not implemented it in GCBASIC but here is a very good APPNOTE for you to use as a starting point.
AN685 - Thermistors in Single Supply Temperature Sensing Circuits
If you do implement it be sure to contribute the code for use as an example or, even better, a library.
Last edit: Chris Roper 2017-08-11
Thanks
Yes I've used it. I find it is easier to construct a lookup table giving the expected output value for every degree (or so). If smaller divisions are needed a linear interpolation is good enough.
Direct calculation using 8-bit integers is going to be a bit of a challenge (and slow).
Also see https://www.allaboutcircuits.com/projects/measuring-temperature-with-an-ntc-thermistor/