Low Battery Indicator (1 LED)
A red LED that lights only when the 9 V battery is almost flat. A Zener diode acts as a voltage “gauge” and two transistors turn it into a warning.
Bill of materials
Everything you need to build it, with the reference you will see on the schematic.
| Qty | Part | Ref. |
|---|---|---|
| 1 | 1 kΩ resistor (brown-black-red) | R1 |
| 1 | 6.2 V Zener diode | DZ1 |
| 2 | 10 kΩ resistor (brown-black-orange) | R2, R3 |
| 2 | BC547 NPN transistor | Q1, Q2 |
| 1 | 4.7 kΩ resistor (yellow-violet-red) | R4 |
| 1 | 470 Ω resistor (yellow-violet-brown) | R5 |
| 1 | red LED | D1 |
| 1 | 9 V battery with snap clip | BT1 |
| 1 | Breadboard (400 tie-points or more) | |
| 8 | 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
- 1 kΩ resistor R1 (bands: brown, black, red, gold): one leg in 3f and the other in 6f (either way round).
- 6.2 V Zener diode DZ1: the black stripe (cathode) in 6g and the other end (anode) in 9g.
- 10 kΩ resistor R2 (bands: brown, black, orange, gold): one leg in 9f and the other in 12f (either way round).
- BC547 transistor Q1 with the flat face (the one with the text) towards you, left to right: collector (C) in 10h, base (B) in 11h, emitter (E) in 12h.
- 10 kΩ resistor R3 (bands: brown, black, orange, gold): one leg in 3i and the other in 8i (either way round).
- 4.7 kΩ resistor R4 (bands: yellow, violet, red, gold): one leg in 13f and the other in 16f (either way round).
- BC547 transistor Q2 with the flat face (the one with the text) towards you, left to right: collector (C) in 15h, base (B) in 16h, emitter (E) in 17h.
- 470 Ω resistor R5 (bands: yellow, violet, brown, gold): one leg in 21f and the other in 18f (either way round).
- red LED D1: the long leg (+, anode) in 18h and the short leg (−, cathode, flat side) in 19h.
-
Add the jumper wires
- Red wire: from 3j to the + (red) rail.
- Red wire: from 21j to the + (red) rail.
- Orange wire: from 9j to 11j.
- Black wire: from 12j to the − (blue) rail.
- Black wire: from 17j to the − (blue) rail.
- Turquoise wire: from 13j to 8j.
- Purple wire: from 13i to 10j.
- Pink wire: from 15j to 19j.
-
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
- With a new 9 V battery the LED should be off. To see the warning without waiting for the battery to run down, power the circuit from 4 AA batteries in series (about 6 V) or from an adjustable supply below 6.5 V: the LED lights. With the good 9 V battery it must stay 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?
- 1The battery supplies its voltage
- 2With a good battery the Zener conducts and turns Q1 on
- 3Q1 keeps Q2 and the LED off
- 4With a weak battery the Zener stops and the LED lights
The 6.2 V Zener diode only lets current through when the voltage reaching it is above that value. With a good battery (9 V, or even 8 V) the voltage exceeds the 6.2 V plus the roughly 0.7 V of the base: the Zener conducts, the current through R1 and the Zener enters the base of Q1 (R2 only holds the base at 0 V when the Zener is not conducting), and Q1 closes like a switch. With its collector almost at 0 V, the base of Q2 gets nothing and Q2 and the LED stay off. When the battery falls below about 6.5 to 7 V, the Zener no longer conducts, Q1 switches off, its collector rises through R3 and R4 and makes Q2 conduct: now about 8 mA flows through the LED. The exact threshold varies a little with the Zener and the transistors.
Testing & troubleshooting
What you should see
- Fresh battery (9 V)
- LED currentunder 1 µA
- Voltage at Q1 collector≈ 0.01 V
- Used but acceptable battery (8 V)
- LED currentunder 1 µA
- Low battery (5.5 V)
- LED current≈ 7.5 mA
- Voltage at Q1 collector≈ 2.24 V
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 with a new battery?
Check the Zener orientation: the band (cathode) goes towards R1 and the battery + side. Reversed, it conducts like an ordinary diode and the circuit thinks the battery is low. Also check R2 (10 kΩ).
It never lights?
Test the LED on its own (long leg + towards R5) and check that R3 and R4 are in the right places. With a new battery that is expected: the warning only appears when the battery is almost flat.
Want to automate this circuit with code?
Learn how to program sensors and custom schedules in our e-book “Arduino from Scratch”.