starter kit/Sensing/14. A thermistor and a divider
Sensing · 14 of 16

A thermistor and a divider

The temperature sensor is a resistor whose value falls as it warms, about four percent per degree. A fixed resistor next to it turns that change into a voltage a meter can read, and two readings against a household thermometer turn the voltage into degrees. It is a good teaching thermometer and a poor accurate one.

You need the light divider working or its parts to hand: one temperature sensor, one 10 kΩ resistor, the meter and the power module. As in the last article the numbers are for a typical part. The listing does not name the sensor, so treat 10 kΩ at room temperature as a guess until you have measured yours.

A resistor that listens to heat

The temperature sensor is almost certainly an NTC thermistor, the small black bead on two wires. NTC means negative temperature coefficient: warming it lowers its resistance, because heat frees charge carriers in the ceramic. Typical beads sold at 10 kΩ fall about four percent for every degree.

Resistance against temperature
Temperature of the bead22 °C
Resistance, illustrative
11.44 kΩ
Change per degree
4.5 %
At 25 °C
10 kΩ
Each degree warmer takes about 5 % off the resistance, so the curve bends: it falls faster per degree when it is cold than when it is warm. The numbers belong to a typical 10 kΩ bead. Yours may read 9 or 11 kΩ at room temperature: measure it, write the number down, and use that.

The curve is not a line. Resistance falls faster per degree when the bead is cold than when it is warm. A meter that reads resistance still gives you the temperature, if you have the curve, and the curve is the part you have to find.

Measure the bead

With the bead out of any circuit and the power off, put the meter on the resistance range and a probe on each wire. Either way round is right.

  • At room temperature, held in nothing, left to sit: write it down. This is your bead's R at room temperature, and what the whole calibration anchors on.
  • Pinched between two fingertips for 20 to 30 seconds: the reading falls. Write the lowest number down.

Skin is warmer than a room by about ten degrees, so the fall is large: about a third. That change is the thing you can trust. The absolute number is not yet.

Read it with a divider

Resistance does not read easily on a live circuit, so put the bead in a divider: the bead from the plus rail to a node, a fixed resistor from the node to ground. The node sits at the fixed resistor's share of the rail, and it rises as the bead warms and falls in resistance.

Choose a fixed resistor equal to the bead's room-temperature value. Then the node is half the rail near room temperature, where the curve is steepest and the reading changes most per degree. For a 10 kΩ bead that is the kit's 10 kΩ.

Choose the fixed resistor
The fixed resistor, from the node to ground
Temperature of the bead22 °C
Bead, illustrative
11.44 kΩ
Node reads
2.24 V
Slope here
54 mV per degree
With 10 kΩ below it, the bead equals the fixed resistor at about 25 °C, and there the node is half the rail (the dashed line). The curve is steepest around that point, which here is inside the range you will measure. The meter changes by about 54 mV for every degree, which a meter reading to 0.001 V can resolve.

Build it

The power module is on its 5 V side, so the rail is about 4.8 V.

Circuit seven, with the meter on it
Temperature of the bead22 °C
Bead, illustrative
11.44 kΩ
Meter reads
2.239 V
Current in the loop
224 µA
At 22 °C the bead is about 11.44 kΩ (yours will differ), so with 10 kΩ below it the node reads 2.239 V, 47 % of the rail. Warm the bead and its resistance falls, the 10 kΩ takes a bigger share, and the reading rises. Only the change is reliable until you have calibrated your bead.
  1. A jumper from the plus rail to column 2, row a.
  2. The bead's legs in column 2, row d and column 4, row d. The strips are different, so the bead is the only path between them.
  3. The 10 kΩ from column 4, row c to column 9, row c.
  4. A jumper from column 9, row b to the minus rail.

Measure the divider

Meter on DC volts, black lead on the minus rail. First measure the rail with the red lead on the plus rail: the divider is a share of whatever the rail really is, and the rail moves a few hundredths from one minute to the next.

Then put the red lead on column 4, the node.

  • Room temperature: about half the rail, 2.2 V on the modelled bead, with the rail at 4.8 V. If your bead is not 10 kΩ it will be higher or lower.
  • Pinch the bead for 30 seconds: the reading rises by about half a volt, a little over 0.05 V per degree. Let go and watch it fall back over a minute.
  • Divide the node reading by the rail reading. That ratio is steadier than either number alone, and it is the number to put in the formula.

Turn a reading into the bead's resistance with the fixed resistor: R = fixed × (rail ÷ node − 1). The same bead measured this way and measured directly on the resistance range should agree to within the meter's error. If they do not, the divider is miswired.

From volts to degrees

Resistance to temperature uses the beta equation. With your bead's resistance R0 at a temperature T0 you know, and its B, the temperature is

T = 1 ÷ (1/T0 + ln(R ÷ R0) ÷ B), with every temperature in kelvin, which is Celsius plus 273.15.

The datasheet's typical B is about 3950 K, and your bead's is a few percent from that. So calibrate: read the bead's resistance at two temperatures you know, and B = ln(R1 ÷ R2) ÷ (1/T1 − 1/T2).

Use a room thermometer for the first point. For the second, warm tap water in a cup works: put the bead in a small zip-top bag, with the bag in the water and a kitchen thermometer beside it, and read the resistance on the meter's resistance range with the power off and the bead out of the breadboard. Use warm tap water only: never hot, never boiling, and keep the breadboard and the power module dry.

Calibrate your own bead
Your bead's true B (unknown to you)4250 K
Temperature of the second reading38 °C
Error of the household thermometer0.0 °C
Your B, recovered
4250 K
Typical B gives
+1.5 °C
Your B gives
+0.0 °C
Two readings recover B to within 0 K. Anchored on your own room reading, the typical B would be 1.5 °C out at 40 °C, and your own B is 0.0 °C out. The further a part's B is from 3950 and the further you are from the anchor, the more it matters.

Take the second point much warmer than the first. B is a ratio of two small differences, so two points close together turn a thermometer's error into a big error in B.

How good is it

Not very. A bead warmed by a finger, a meter reading and a cheap thermometer to calibrate against give a temperature good to a couple of degrees at best. The part's own tolerance, the thermometer's error and the air around the bead all count. It is a good way to see temperature happen on a meter. It is a poor replacement for a thermometer.

Part of the error is the bead itself. The divider current flows through it and warms it a little, and the smaller the fixed resistor the more it does.

How much the bead warms itself
The fixed resistor below the bead
Temperature of the bead22 °C
Power in the bead
0.57 mW
Warms itself by
0.29 °C
Current
0.22 mA
At 10 kΩ the bead warms itself by about 0.3 °C: small beside the few degrees of error from the part's tolerance and from your fingers, but not zero. It is why a thermometer made this way reads a little high, and more so with a small fixed resistor.

Measure what changes

Pinch the bead and watch the node rise. Blow on it gently and watch it fall back toward the room reading. Hold it close to, not touching, the power module's regulator or a warm hand and watch the reading follow. Each of those is a few tenths of a volt and a few degrees, which is the whole instrument: a resistor that does one thing, a second one that does not, and a meter between them.

When it does not work

The reading does not move when I pinch the bead.

The bead is small but it still has to warm through, and it takes 10 to 30 seconds of a firm pinch to move noticeably. If nothing moves after a minute, measure the bead on the resistance range with the power off: a reading that does not change at all means it is not the thermistor (the light sensor looks different), and a reading of zero or overrange means a broken wire.

The reading is stuck at the rail, or stuck at zero.

Stuck at the rail, about 4.8 V, means the bead is shorted: both legs are in one strip, or in the same strip as the resistor's far end. Stuck at zero means the bead is not connected at all, so the 10 kΩ pulls the node to ground. Lift the bead out, check the two holes it goes in are in different strips, and seat it again.

The reading goes down when I warm the bead.

The bead and the 10 kΩ are the other way round, or the red lead is on the wrong strip. As built here the node rises as the bead warms. With the bead to ground and the fixed resistor on the rail it falls, which is equally valid but the other way round. Re-read the build list and compare the holes.

My thermometer says 21 °C and the calculation says 25 °C.

Expected. The datasheet's 10 kΩ at 25 °C and B of 3950 are typical values, and a real bead can be a few percent off on each, which is a few degrees. That is what the calibration is for. Measure the bead's resistance at your room temperature, use that as the anchor, and compute B from a second warm point.

The reading creeps up while I do nothing.

The bead warms itself a little and the power module warms the board and the air around it. Keep the bead away from the module and the meter's leads, take the room reading soon after the power comes on, and let the bead sit a minute before trusting a number.

Where this goes next

A resistor limited current. A capacitor stores charge, and filling it through a resistor takes a time you can watch on the meter.

Charge a capacitor →

Edit this page — content/books/estkit/a-thermistor-and-a-divider.mdx

Community

Questions about this product

See what other owners have asked, and read their solutions.

Ask a question ↗

Electronics Starter Kit, Breadboard, Power Module and Components

Loading discussions…

Discuss this article

Ask about this page. The answer stays here, on the page it belongs to, for whoever hits the same wall next.

Browse Modules and blocks on the forum →