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.
🧰 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
🔣 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:
| Temperature | Resistance |
|---|---|
| 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.
- 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
The chip: across the gap, notch on the left: pins 1–4 in f10–f13, pins 8–5 in e10–e13.
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).
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.
10 kΩ resistor: h11 → h16, and a black wire j16 → B-16 (bottom blue − rail, column 16).
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.
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).
Power: battery red into T+1, black into T-2.
Set the trigger point
- Turn the knob until the LED just switches off.
- Now pinch the thermistor between your finger and thumb. After a few seconds, your warmth heats it up and the LED lights! 🌡️
- 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).