Frost / Cold Detector
A blue LED lights when the temperature falls to a few degrees above zero. Two transistors, an NPN and a PNP, work in a chain to turn cold into light.
Bill of materials
Everything you need to build it, with the reference you will see on the schematic.
| Qty | Part | Ref. |
|---|---|---|
| 1 | 330 kΩ resistor (orange-orange-yellow) | R1 |
| 1 | 10 kΩ NTC thermistor (at 25 °C) | RT1 |
| 1 | BC547 NPN transistor | Q1 |
| 1 | 22 kΩ resistor (red-red-orange) | R3 |
| 1 | 100 kΩ resistor (brown-black-yellow) | R4 |
| 1 | BC557 PNP transistor | Q2 |
| 1 | 390 Ω resistor (orange-white-brown) | R2 |
| 1 | blue LED | D1 |
| 1 | 9 V battery with snap clip | BT1 |
| 1 | Breadboard (400 tie-points or more) | |
| 9 | Jumper wires |
Missing parts? The kits recommended by Impeca Tech include almost all of them. See the kits
Schematic & wiring
On the left, the circuit diagram; on the right, the same circuit built on a breadboard. Both connect exactly the same things.
Wire it step by step
-
Place the components
- 330 kΩ resistor R1 (bands: orange, orange, yellow, gold): one leg in 3f and the other in 6f (either way round).
- 10 kΩ NTC thermistor RT1: one leg in 6g and the other in 8g (either way round).
- BC547 transistor Q1 with the flat face (the one with the text) towards you, left to right: collector (C) in 9f, base (B) in 10f, emitter (E) in 11f.
- 22 kΩ resistor R3 (bands: red, red, orange, gold): one leg in 9i and the other in 5i (either way round).
- 100 kΩ resistor R4 (bands: brown, black, yellow, gold): one leg in 14f and the other in 17f (either way round).
- BC557 transistor Q2 with the flat face (the one with the text) towards you, left to right: collector (C) in 16h, base (B) in 17h, emitter (E) in 18h.
- 390 Ω resistor R2 (bands: orange, white, brown, gold): one leg in 15i and the other in 12i (either way round).
- blue LED D1: the long leg (+, anode) in 12f and the short leg (−, cathode, flat side) in 13f.
-
Add the jumper wires
- Red wire: from 3j to the + (red) rail.
- Red wire: from 14j to the + (red) rail.
- Red wire: from 18j to the + (red) rail.
- Orange wire: from 6j to 10j.
- Black wire: from 8j to the − (blue) rail.
- Black wire: from 11j to the − (blue) rail.
- Black wire: from 13j to the − (blue) rail.
- Turquoise wire: from 5j to 17j.
- Purple wire: from 15j to 16j.
-
Connect the battery
- Connect the 9 V battery to its clip: the clip’s red lead to the + (red) rail and the black one to the − (blue) rail. Do this last, once everything else is in place.
-
Test the circuit
- At room temperature the LED should be off. To test without a freezer, put the thermistor in a small closed plastic bag and sink the bag in a glass of ice water (≈ 0 °C), keeping the legs dry: after a few seconds the blue LED lights. Take the thermistor out and, as it warms up, it goes off.
How to read the holes: the letter is the row and the number is the column of the breadboard (for example 7f). The red (+) and blue (−) rails are the two long lines along the edge.
How does it work?
- 1Cold raises the thermistor’s resistance
- 2The base of Q1 rises and Q1 conducts
- 3Q1 pulls down the base of Q2 (PNP) and Q2 conducts
- 4The blue LED lights
R1 (330 kΩ) and the NTC form a voltage divider. When warm the NTC has a low resistance and the base of Q1 stays near 0 V; when cold the NTC’s resistance rises and the base voltage goes up. Above about 0.6 V, Q1 (a BC547, NPN) conducts and, through R3 (22 kΩ), pulls down the base of Q2 (a BC557, PNP), which switches on and lights the blue LED with about 15 mA through R2 (390 Ω). R4 (100 kΩ) keeps Q2 off while Q1 is not conducting. In the simulation the trigger happens between about 3 and 10 °C depending on tolerances and the battery: at 12 °C the LED is still off, and at 0 °C or −15 °C (freezer) it is on. With a single PNP the LED was dim and depended too much on the battery: that is why the NPN is added. It is an experiment: do not use it as a frost warning to protect plants or roads.
Testing & troubleshooting
What you should see
- Mild day (25 °C)
- LED currentunder 1 µA
- Cool (12 °C)
- LED currentunder 1 µA
- Frost (0 °C)
- LED current≈ 15 mA
- Voltage at Q1 base≈ 0.63 V
- Freezer (−15 °C)
- LED current≈ 15 mA
Approximate values, calculated with typical parts. With real parts they can vary by 10 % or more.
If something does not work
The LED is on at room temperature
Check R1: it must be 330 kΩ (orange, orange, yellow). With 330 Ω or 33 kΩ the base of Q1 stays high and the LED is always on. Also check that the NTC is 10 kΩ and sits between the base of Q1 and GND.
The LED does not light in the cold
Check the BC557 (PNP): the emitter goes to the plus, the base to R3 and R4, and the collector to R2; and the blue LED’s long leg towards R2. Also make sure the ice really cools the thermistor: keep it in contact with the ice for half a minute.
Want to automate this circuit with code?
Learn how to program sensors and custom schedules in our e-book “Arduino from Scratch”.