A thermistor, as the name indicates, is nothing more than a resistor, whose resistance value is sensitive to temperature. Like a normal resistor, it has no polarity, that is, you can’t hook it up backwards. Depending on the type of thermistor, the resistance may increase or decrease with increasing temperature.
To use a thermistor to measure temperature in a project, you must monitor the resistance across the thermistor. Generally, this is done by connecting a resistor of a known value in series with the thermistor, bridging a higher voltage (say, + 5V) to ground. To eliminate confusion, let’s just say that the thermistor is the component connected to ground. Then, an analog input can be connected to the middle of the thermistor and resistor, measuring the voltage across the thermistor.
Knowing that , the resistance of the thermistor can be measured to be . If the supply voltage is indeed 5 volts, then .
That just leaves converting resistance to temperature. This conversion will depend on the particular thermistor and the information supplied. If given a B or and value (usually the resistance at 25 C), the equation for temperature as a function of resistance can be written as:
For instance, if you have a , thermistor, the hard-coded equation for temperature (in Kelvin) would become:
You may find yourself asking what value of resistor to use. Well, nearly anything will work, but you can make some smart decisions based on the thermistor and the temperature range you expect to be operating at.
I’ll get back to you on how to be smart about it at a later date; be sure to check back…