Advanced · Project 4
Binary Counter
Watch a chip count in binary, the language of computers. A 555 ticks, a counter chip adds one each tick, and four LEDs show the number in 1s and 0s.
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×4×AA battery holder with wire leadsHolds four AA batteries for 6 volts. Used for the 555 timer chip, which needs a bit more push.
- 4×AA batteryA regular household battery. Each one gives 1.5 volts.
- 1×NE555 timer chipOne of the most famous chips ever made: it makes blinks, beeps and timers from a resistor and capacitor.
- 1×CD4520 dual binary counterTwo counters that count 0 to 15 in binary. Same pins as the CD4518.
- 1×10 kΩ resistor — brown, black, orange, goldColors: brown, black, orange, gold.
- 1×47 kΩ resistor — yellow, violet, orange, goldColors: yellow, violet, orange, gold.
- 1×10 µF capacitor (can-shaped)A small can-shaped capacitor. The striped leg is −.
- 4×5 mm LED (any color) — any colorsA tiny light that only lets current flow one way. The long leg is +.
- 19×Jumper wireA short wire with stiff ends that push into the breadboard.
✨ The finished project
We count with ten digits (0–9). Computers only have two: 0 (off) and 1 (on). That’s binary. In binary, each place is worth double the one to its right:
| 8 | 4 | 2 | 1 | = |
|---|---|---|---|---|
| 0 | 1 | 0 | 1 | 4 + 1 = 5 |
| 1 | 0 | 1 | 1 | 8 + 2 + 1 = 11 |
| 1 | 1 | 1 | 1 | 8 + 4 + 2 + 1 = 15 |
With four LEDs you can count from 0 (all off) to 15 (all on). After 15 it rolls back to 0, like a car’s odometer (the meter that counts how far it has driven).
The chips
- NE555: the same blinker as the 555 Blinker, ticking about 1.4 times a second. Here it’s the clock.
- CD4520: two 4-bit binary counters. Every time its CLK input goes from off to on, the count goes up by one. We use counter 1, and switch counter 2 off.
- Pin 1 · 1CLK — clock in: counts up each time this goes ON
- Pin 2 · 1EN — enable: must be ON for counting
- Pin 3 · 1Q1 — the 1s bit
- Pin 4 · 1Q2 — the 2s bit
- Pin 5 · 1Q3 — the 4s bit
- Pin 6 · 1Q4 — the 8s bit
- Pin 7 · 1RST — reset: ON sets the count to 0 (we keep it OFF)
- Pin 8 · VSS — connect to battery −
- Pin 16 · VDD — connect to battery +
Build it
Rail bridges: red T+29 → B+29 (bottom red + rail, column 29), black T-28 → B-28 (bottom blue − rail, column 28).
The 555 clock (same parts as the 555 Blinker): chip with pin 1 in f5. Red a5 → T+5 (top red + rail, column 5); black j5 → B-5 (bottom blue − rail, column 5); red j8 → B+8 (bottom red + rail, column 8). 10 kΩ a6 → T+7 (top red + rail, column 7); 47 kΩ c6 → c2.
555 hub (column 2): blue b7 → b2; blue e2 → f2; blue i6 → i2. 10 µF capacitor: + a2, striped − T-2 (top blue − rail, column 2).
The counter: CD4520 with the notch on the left, pin 1 in f12. Red a12 (VDD) → T+11 (top red + rail, column 11); black j19 (VSS) → B-19 (bottom blue − rail, column 19).
Counter settings: red j13 (EN) → B+13 (bottom red + rail, column 13); black j18 (RST) → B-17 (bottom blue − rail, column 17). Switch off counter 2 with black wires a13, a18, a19 → top − rail (T-13, T-17, T-19).
Clock wire: yellow h7 (555 OUT) → h12 (counter CLK).
The 8s LED plugs straight into its pin’s column: long leg j17, short leg into the − rail at B-16.
4s, 2s and 1s: orange i16 → i21, LED j21 / B-20. Green h15 → h24, LED j24 / B-23. Blue g14 → g27, LED j27 / B-26. (Long leg always in row j, short leg in the − rail.)
Power: 4×AA red into T+1, black into T-3. It starts at a random number, then counts up!
Watch it count
Read the LEDs left to right as 8, 4, 2, 1 and add up the lit ones. Notice the patterns:
- The 1s LED flips every tick. The 2s flips half as often, the 4s half as often again. Each bit is a “divide by 2” of the one before.
- 7 is 0111. One more tick and all four flip at once to 1000 = 8. That’s the binary version of 0999 → 1000.
The build check clocked the simulated chip 16 times and confirmed every number from 1 to 15, then the roll-over back to 0.
Not working?
- No counting, but the 1s LED is stuck? Check the yellow clock wire and the 555 hub.
- Counts in weird jumps? Check that EN goes to + and RST to −, and counter 2’s three wires.
- One LED never lights? It’s probably backwards: long leg in row j.