Combining low power consumption, high sensitivity, and signal stability makes NTC thermistors the most popular choice for temperature sensing in automotive battery management, motor and climate control as well as factory automation, and field instrumentation.
The following application notes explain the basic circuit design considerations for converting the resistance change of the NTC thermistor into a digital temperature reading.
Alternative resistance-to-temperature calculations are compared: Exponential curves, lookup tables, and the Steinhart-Hart equation. For all these cases, software class code is available for download below that can be adapted for other applications and other NTC thermistor curves in individual projects on platforms like Raspberry Pi, Arduino, or microcontrollers running CircuitPython or C++.
The Python and C++ class definitions for NTC thermistors enable developers to calculate temperatures from resistance readings and vice versa. Four different classes are available in three independent libraries:
All class definitions include a class function for a single-point software trimming of a given NTC thermistor. One code example shows how the CSV output from TDK’s NTC R/T Calculation 5.0 - Web-based Application can be used to define the classes for a specific NTC thermistor. A second code example demonstrates the class usage in a typical circuit with NTC thermistor and analog-to-digital converter. All class definitions include a class function for a single-point software trimming of a given NTC thermistor.