3-LED Water Level Indicator
Three LEDs (green, yellow and red) show whether the container is a third full, two thirds full or full. Three probes at different heights, each driving its own transistor.
Bill of materials
Everything you need to build it, with the reference you will see on the schematic.
| Qty | Part | Ref. |
|---|---|---|
| 3 | Water probe (two bare copper wires) | PR1, PR2, PR3 |
| 3 | 10 kΩ resistor (brown-black-orange) | R1, R2, R3 |
| 3 | BC547 NPN transistor | Q1, Q2, Q3 |
| 3 | 470 Ω resistor (yellow-violet-brown) | R4, R5, R6 |
| 1 | green LED | D1 |
| 1 | yellow LED | D2 |
| 1 | red LED | D3 |
| 1 | 9 V battery with snap clip | BT1 |
| 1 | Glass or container of tap water (tool) | |
| 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
- 10 kΩ resistor R1 (bands: brown, black, orange, gold): one leg in 12i and the other in 9i (either way round).
- BC547 transistor Q1 with the flat face (the one with the text) towards you, left to right: collector (C) in 8f, base (B) in 9f, emitter (E) in 10f.
- 470 Ω resistor R4 (bands: yellow, violet, brown, gold): one leg in 3f and the other in 6f (either way round).
- green LED D1: the long leg (+, anode) in 6g and the short leg (−, cathode, flat side) in 7g.
- 10 kΩ resistor R2 (bands: brown, black, orange, gold): one leg in 20i and the other in 17i (either way round).
- BC547 transistor Q2 with the flat face (the one with the text) towards you, left to right: collector (C) in 16f, base (B) in 17f, emitter (E) in 18f.
- 470 Ω resistor R5 (bands: yellow, violet, brown, gold): one leg in 11f and the other in 14f (either way round).
- yellow LED D2: the long leg (+, anode) in 14g and the short leg (−, cathode, flat side) in 15g.
- 10 kΩ resistor R3 (bands: brown, black, orange, gold): one leg in 27i and the other in 24i (either way round).
- BC547 transistor Q3 with the flat face (the one with the text) towards you, left to right: collector (C) in 23f, base (B) in 24f, emitter (E) in 25f.
- 470 Ω resistor R6 (bands: yellow, violet, brown, gold): one leg in 19f and the other in 22f (either way round).
- red LED D3: the long leg (+, anode) in 22h and the short leg (−, cathode, flat side) in 23h.
-
Add the jumper wires
- Red wire: from 3j to the + (red) rail.
- Red wire: from 11j to the + (red) rail.
- Red wire: from 19j to the + (red) rail.
- Orange wire: from 7j to 8j.
- Black wire: from 10j to the − (blue) rail.
- Black wire: from 18j to the − (blue) rail.
- Black wire: from 25j to the − (blue) rail.
- Turquoise wire: from 15j to 16j.
-
Connect the probes
- Water probe (PR1): one wire to the + rail and the other wire to 12j.
- Water probe (PR2): one wire to the + rail and the other wire to 20j.
- Water probe (PR3): one wire to the + rail and the other wire to 27j.
-
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 the container empty nothing lights. Add water slowly: at the first probe the green LED lights; at the second the yellow joins it; at the third the red joins in. As you empty it they go out in reverse order. Dry the wires when you finish.
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?
- 1Water rises and touches the first probe
- 2The green LED lights
- 3At the second probe the yellow joins it
- 4At the third (full) the red joins in
Each probe is two bare wires, with its own transistor and LED, and the three work independently. The three wires that go to the battery plus can be a single long common wire reaching the bottom; the other three end at different heights. When the water reaches one of the level wires it closes the path between the common wire and the base of its transistor (through a 10 kΩ resistor), the BC547 conducts and its LED lights with about 14.5 mA through its own 470 Ω resistor. So as the water rises the green LED lights first, then the yellow and, when full, the red as well; with all three on the battery supplies about 44 mA. If the level drops they go out in reverse order.
Testing & troubleshooting
What you should see
- Water up to the first probe
- Green LED current≈ 15 mA
- Water up to the second probe
- Yellow LED current≈ 14 mA
- Water up to the third probe (full)
- Red LED current≈ 15 mA
- Current drawn from the battery≈ 44 mA
Approximate values, calculated with typical parts. With real parts they can vary by 10 % or more.
If something does not work
An LED lights before the water gets there
Two wires of that probe touch or there is a drop between them. Separate and dry them, and check each probe is at its own height. It can also be a transistor whose base touches the + rail: check that column.
One LED does not light although the water is at its probe
Join the two wires of that probe with a jumper: if the LED lights, the water is not making good contact (clean the wires or add salt). If it does not, check the LED’s long leg (+ towards the 470 Ω resistor) and the BC547 of that column.
Want to automate this circuit with code?
Learn how to program sensors and custom schedules in our e-book “Arduino from Scratch”.