NTC Thermistor Integration

As with any sensor choice, there are trade-offs that need to be made. Cost/accuracy/speed/resolution/etc. For my application, thermistors offer pretty good cost/performance vs. 'better' solutions like 4-wire RTDs.

There are a couple of examples on this site how to use Steinhart-Hart equations to calculate Thermistor temperatures. I prefer doing all the hard work ahead of time by characterizing the temperature output directly from the ADC output. That takes more work and requires each type of thermistor to be characterized individually. However, the much lower code count later makes it worthwhile because that leaves more RAM and CPU processing cycles for other things. In my particular instance, it's just a (ln) function with a constant that converts corrected ADC output directly... but I needed to pre-calculate the various components of said equation for each thermal temperature bracket to minimize non-linearity. The result is ideal ADC-temperature conversions that are in violent agreement to 8 digits behind the zero.

Storing these constants in flash memory then takes up no RAM and still executes quickly.