Teach Your Kid Electronics

Intermediate · Project 11

Fever Alarm

Build a temperature alarm with a thermistor and a comparator chip that decides "too warm?"

Build this only with an adult present. Before you start, read our safety notice and disclaimer.

Intermediate⏱ About 30 min

🧰 What you need

  • 1×Half-size breadboardA board full of little holes with metal clips inside, so you can build circuits without soldering.
  • 1×3×AA battery holder with wire leadsHolds three AA batteries in a row and gives you a red (+) and black (−) wire.
  • 3×AA batteryA regular household battery. Each one gives 1.5 volts.
  • 1×LM393 comparator chipCompares two voltages and switches its output depending on which is higher. Has two comparators inside.
  • 1×10 kΩ NTC thermistorA temperature sensor: its resistance drops as it warms up.
  • 1×10 kΩ resistor — brown, black, orange, goldColors: brown, black, orange, gold.
  • 1×10 kΩ potentiometer (knob)A resistor you can change by turning a knob. Three legs: two ends and a middle "wiper".
  • 1×330 Ω resistor — orange, orange, brown, goldColors: orange, orange, brown, gold.
  • 1×5 mm LED (any color) — red, for "warning"A tiny light that only lets current flow one way. The long leg is +.
  • 9×Jumper wireA short wire with stiff ends that push into the breadboard.

✨ The finished project

A fever alarm: an LM393 comparator lights an LED when a thermistor gets warmer than the level set by a knob ++−−++−−aabbccddeeffgghhiijj115510101515202025253030 10kΩ LM393 NTC 10 kΩ 330 Ω +− AAAAAA3 × AA = 4.5 V+−
A fever alarm: an LM393 comparator lights an LED when a thermistor gets warmer than the level set by a knob ++−−++−−aabbccddeeffgghhiijj115510101515202025253030 10kΩ LM393 NTC 10 kΩ 330 Ω +− AAAAAA3 × AA = 4.5 V+−
Schematic: A fever alarm: an LM393 comparator lights an LED when a thermistor gets warmer than the level set by a knob IN1+3IN1-2IN2+5IN2-6OUT11OUT27VCC8GND4LM393U1 T° +4.5V +4.5V +4.5V 4.5 V thermistor 10 kΩ 10 kΩ knob red LED 330 Ω
The finished build. This picture is generated from the circuit itself and checked by computer, so every leg is in the right hole.

🔣 New schematic symbols

This project’s schematic has some symbols you haven’t seen before. Here’s what they mean.

  • Knob with a middle leg (potentiometer)

    The arrow pointing at the zigzag is the middle leg (the wiper). It slides along the resistor as you turn the knob, picking off a voltage anywhere between the two ends.

  • Thermistor

    A box with a slanted line through it and T° (temperature). Its resistance changes as it warms up or cools down.

Our bodies are about 37 °C inside, and a fever is when we get warmer than that. A thermometer measures temperature; an alarm goes further and decides “too hot!” by itself. In this project, a chip makes that decision.

Meet the thermistor

A thermistor is a resistor that changes with temperature. Ours is an NTC type, which means its resistance goes down as it warms up:

TemperatureResistance
16 °C (cool room)about 15.1 kΩ
22 °C (normal room)about 11.4 kΩ
34 °C (pinched in your fingers)about 6.8 kΩ

Just like the light sensor in the Night Light, we pair it with a 10 kΩ resistor to make a voltage divider. The voltage in the middle rises as it warms: about 2.10 V at room temperature and 2.68 V when warm.

Meet the comparator

The LM393 has two comparators inside (we use just one). A comparator looks at two voltages and answers one question: which is higher?

  • One input gets the thermistor’s voltage.
  • The other gets a voltage you set with a knob: the trigger point.
  • If the thermistor’s side is higher (too warm!), the output switches on and the LED lights.
LM3931OUT12IN1-3IN1+4GND5IN2+6IN2-7OUT28VCC
  • Pin 1 · OUT1 — output: connects to − when IN1− is higher than IN1+ (lights our LED)
  • Pin 2 · IN1- — thermistor voltage goes here
  • Pin 3 · IN1+ — the knob (trigger point) goes here
  • Pin 4 · GND — battery −
  • Pin 8 · VCC — battery +

Build it

  1. The chip: across the gap, notch on the left: pins 1–4 in f10–f13, pins 8–5 in e10–e13.

  2. Power: red a10 (VCC) → T+10 (top red + rail, column 10). Bridges: red T+22 → B+22 (bottom red + rail, column 22), black T-23 → B-23 (bottom blue − rail, column 23). GND: black j13 → B-13 (bottom blue − rail, column 13).

  3. Thermistor: between j11 (IN1−, pin 2’s column) and B+11 (bottom red + rail, column 11). Leave its legs long so you can pinch it.

  4. 10 kΩ resistor: h11 → h16, and a black wire j16 → B-16 (bottom blue − rail, column 16).

  5. Knob: legs in f18, f19 and f20. Red wire j18 → B+19 (bottom red + rail, column 19), black wire j20 → B-20 (bottom blue − rail, column 20), and a yellow wire from the middle leg’s column i19 to IN1+ i12.

  6. LED: blue wire j10 (OUT1) → j6. LED short leg g6, long leg g5, and the 330 Ω resistor from j5 to B+3 (bottom red + rail, column 3).

  7. Power: battery red into T+1, black into T-2.

Set the trigger point

  1. Turn the knob until the LED just switches off.
  2. Now pinch the thermistor between your finger and thumb. After a few seconds, your warmth heats it up and the LED lights! 🌡️
  3. Let go and blow on it, and the LED goes off again.

The build check simulated it at 16 °C, 22 °C and 34 °C with the knob a bit under halfway, and the LED is off, off and on.

Not working?

  • LED always on? Turn the knob the other way.
  • Never lights, even when warm? Turn the knob slowly while holding the thermistor, to find the point where it switches.
  • Nothing at all? Check the bottom rail bridges and the chip’s notch (left).

Try it!