Advanced · Project 5
Two-Digit Counter
Count from 00 to 99 on two bright number displays. Counter chips count, decoder chips turn each count into the segments of a digit, and when the ones go from 9 to 0 the tens go up.
Build this only with an adult present. Before you start, read our safety notice and disclaimer.
🧰 What you need
- 1×Full-size breadboardThe big brother of the half-size board: twice as long, with room for several chips.
- 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.
- 2×CD4518 dual decimal counterTwo counters that count 0 to 9 in binary, then start again. Perfect for driving number displays.
- 2×CD4511 7-segment decoderTurns a number in binary into the right segments of a 7-segment display, and powers them brightly.
- 2×7-segment display (common cathode) — common cathode (CC), not common anodeSeven bar-shaped LEDs (plus a dot) arranged to show any digit 0–9. "Common cathode" means all their − legs are joined.
- 14×330 Ω resistor — orange, orange, brown, goldColors: orange, orange, brown, gold.
- 2×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 −.
- 1×Push button (tactile switch)A little button with 4 legs. It connects its two sides only while you press it.
- 50×Jumper wire — including 3 long onesA short wire with stiff ends that push into the breadboard.
✨ The finished project
↔ Big board! Scroll sideways to see all of it.
🔣 New schematic symbols
This project’s schematic has some symbols you haven’t seen before. Here’s what they mean.
- 7-segment display
A box with one pin for each bar of the number: a to g go round the outside and through the middle, and dp is the little dot. All the bars share one − leg (common cathode).
- Name flag
Flags with the same name are joined, even though no wire is drawn between them. It saves drawing a long wire right across the page.
This is the biggest build on the site so far: five chips, two displays and about 50 wires. Take it one chip at a time, and check each step before moving on.
The parts of a number display
A 7-segment display is seven bar-shaped LEDs, named a to g, plus a dot. Light the right bars and you get any digit: 1 uses just b and c, while 8 uses all seven. Ours are common cathode: all the bars’ − legs are joined inside to one pin.
The chips
- NE555: the clock, ticking about 1.4 times a second (the same circuit as the 555 Blinker).
- CD4518 ×2: decimal counters (they count in tens, like we do). Each counts 0 to 9 in binary on four outputs (1, 2, 4, 8), then rolls back to 0.
- CD4511 ×2: decoders. Each one reads a 4-bit number and lights the right segments for that digit, pushing plenty of current for a bright display.
- Pin 1 · B — the 2s bit
- Pin 2 · C — the 4s bit
- Pin 3 · LT — "lamp test": LOW lights every segment (we hold it high)
- Pin 4 · BL — "blank": LOW turns the display off (we hold it high)
- Pin 5 · LE — "latch": HIGH freezes the display (we hold it low)
- Pin 6 · D — the 8s bit
- Pin 7 · A — number in: the 1s bit
- Pin 8 · VSS — connect to battery −
- Pin 13 · a — segment outputs a–g, each through a 330 Ω resistor to the display
- Pin 16 · VDD — connect to battery +
The carry
The ones counter counts 0, 1, … 9, 0. When it rolls from 9 (binary 1001) back to 0 (0000), its 8s output switches off. That output is wired to the tens counter’s EN input, and the CD4518 counts up when EN switches off. So the tens go up by one exactly when the ones roll over. That’s a carry, just like 19 + 1 = 20 in math!
Build it
It’s a long board, so the steps go left to right. Every chip goes in with its notch on the left.
Rails: red T+13 → B+13 (bottom red + rail, column 13); black T-31 → B-31 (bottom blue − rail, column 31) (it runs between the two displays). If your board’s rails have a break in the middle, bridge those too.
Reset button at the far left: legs in e1, f1, e3, f3. Red a1 → T+1 (top red + rail, column 1). 10 kΩ pull-down j3 → B-3 (bottom blue − rail, column 3).
Tens counter (CD4518): pin 1 in f5. Power and settings: a5 → T+5; j12 → B-13; j5 → B-5; a6 → T-7; a11 → T-11; a12 → T-13.
Tens decoder (CD4511): pin 1 in f14. Power and settings: a14 → T+14; j21 → B-21; j16 → B+16; j17 → B+17; j18 → B-19.
Tens number wires (counter → decoder): g7 → g20; i8 → i14; j9 → i15; j10 → h19. Tens reset (white): h3 → h11.
Displays: the tens display with its top-left pin in d26, the ones display with its top-left pin in d32. Each sits across the gap with pins in rows d and h and the dot at the bottom right. Common − wires: j28 → B-28; j34 → B-34.
Tens segment resistors (7 × 330 Ω, from the decoder’s top pins to the display): f a15 → a27; g b16 → b26; a c17 → c29; b d18 → a30; c c19 → i29; d b20 → j27; e a21 → i26.
Ones decoder (CD4511): pin 1 in f42. Power and settings: b42 → T+41; j49 → B-49; j44 → B+44; j45 → B+45; j46 → B-46.
Ones segment resistors (7 × 330 Ω): f a43 → b33; g b44 → a32; a c45 → a35; b d46 → c36; c a47 → j35; d b48 → i33; e c49 → j32.
Ones counter (CD4518): pin 1 in f51. Power and settings: a51 → T+51; j58 → B-58; j52 → B+52; a52 → T-52; a57 → T-57; a58 → T-58. Number wires to the ones decoder: g53 → g48; h54 → h42; i55 → i43; g56 → i47.
The 555 clock: pin 1 in f60. Wires: a60 → T+59; j60 → B-61; j63 → B+63; b62 → b59; e59 → f59; i61 → i59. 10 kΩ a61 → T+61 (top red + rail, column 61); 47 kΩ c61 → c59; 10 µF capacitor + a59, − T-59 (top blue − rail, column 59). Clock wire (yellow): g62 → g51.
The two long wires: the carry, h56 (ones 8s output) → i6 (tens EN), and the ones reset, g3 → h57. They loop over the middle of the board.
Power: 4×AA red into T+2, black into T-3. Press reset: 00. Let go and watch it count! 🔢
The build check pressed reset, ticked the simulated chips through 01 … 09 → 10 (the carry!), on to 42, then 99 → 00, and checked every segment of both displays at every step.
Not working?
- A display stays dark? Check it’s common cathode, its − wire, and its decoder’s VDD and VSS wires.
- Shows an 8 all the time? That decoder’s LT pin isn’t connected to +.
- Wrong or weird digits? Two number wires are swapped (A, B, C, D), or a segment resistor is in the wrong display pin. Compare against the lists above.
- Ones count, but the tens never change? Check the long carry wire.
- Counts in big jumps or starts at random? Press reset, and check both white reset wires and the pull-down.