PerfBoardSign in

This LED tells you how dead your battery is

A light for a 12V lead acid battery: green when it's healthy, yellow when it's getting low, red when it's nearly flat.

Component side layout of This LED tells you how dead your battery is on a perfboard 15 by 29 holes
15 × 29 holes · 13 parts · 17 wires

Free build sheet

The parts, every wire with its length and bend points, a bend guide, both sides of the board and checkboxes to track your progress. Print it or keep it open at the bench.

Open the build sheet

What you need

13 parts on a perfboard 15 × 29 holes, plus hookup wire.

QtyPartWhere to buy
1
Ceramic Cap100nF
C1
Buy Ceramic Cap on Amazon
1
Diode (axial)1N4733A
D1
1
Screw Terminal 2P (5.08mm)
J1
1
RGB LED (common anode)
Q1
Buy RGB LED (common anode) on Amazon
1
Resistor (axial)1.5k
R1
Buy Resistor (axial) on Amazon
1
Resistor (axial)30k
R2
Buy Resistor (axial) on Amazon
1
Resistor (axial)11k
R3
Buy Resistor (axial) on Amazon
1
Resistor (axial)24k
R4
Buy Resistor (axial) on Amazon
2
Resistor (axial)2.2k
R5, R7
Buy Resistor (axial) on Amazon
1
Resistor (axial)43k
R6
Buy Resistor (axial) on Amazon
1
Resistor (axial)1.8k
R8
Buy Resistor (axial) on Amazon
1
DIP-8
U1

Check every pin against the datasheet of the exact part in your hands before wiring.

As an Amazon Associate I earn from qualifying purchases.

Cut list

17 wires, 461 mm (18.1 in) in total, in the order the build sheet cuts them. Wire numbers match the build sheet. Each length includes 5 mm per end to go through the hole.

WireColour and netLength
12
BlackVBAT
K18 → E22
34mm
6
BlackTH_LOW
H13 → J22
38mm
5
BlueTH_HIGH
E18 → G19
18mm
17
BlueGND
G16 → I19
23mm
11
BlueVBAT
L7 → L19
40mm
4
GreenRED_DRV
D22 → E20
18mm
10
GreenVBAT
F7 → J7
20mm
16
GreenGND
D7 → H17
40mm
13
RedVBAT
F23 → G26
19mm
1
RedGRN_DRV
L22 → G23
25mm
7
RedVSENSE
J11 → H19
35mm
9
WhiteVBAT
E6 → E4
15mm
3
WhiteGRN_A
L26 → H26
20mm
15
WhiteGND
I4 → M6
25mm
2
YellowRED_A
D26 → F26
15mm
14
YellowGND
C6 → H3
30mm
8
YellowVSENSE
K12 → H23
46mm

About this build

This light tells you how much is left in a 12V lead acid pack. Green above about 12.4V, yellow between 11.8V and 12.4V, red below 11.8V.

One LM393 dual comparator does the work. A resistor divider scales the battery down to a sense voltage, and a 1N4733A 5.1V zener sets a stable reference. A second divider off that reference makes two thresholds, one per comparator, and each comparator decides whether its colour is on. Yellow is just red and green lit together.

The LM393 outputs are open collector, so they can only pull down. That's exactly what a common anode RGB LED wants: each output sinks current out of one colour, and no pull ups are needed. Eight resistors, a 100nF ceramic and a 2 pin screw terminal for the battery leads round it out.

More builds

See all builds