Two-digit BCD counter, 00 → 99
Two 74LS90 decade counters in BCD mode count pulses from an NE555 one-shot. Two CD4513 decoders turn each 4-bit BCD value into segments on a pair of 5161AS displays. Press the COUNT button or any button on an IR remote and the number goes up by one. RESET returns it to 00. Everything runs on 5 V from USB-C, on one 80 × 55 mm FR2 perfboard.
Schematic
Bench
The simulator runs on the real timing. Each count lands when the 555 pulse ends, because the 74LS90 counts on the falling edge.
t = 1.1 · R2 · C1 (C1 = 1 µF)
Iseg ≈ (VOH
− VLED) / 330 Ω
Readouts
- Display
- 00 counts since reset: 0
- BCD tens · units
- 0000 0000 D C B A on each 74LS90
- One-shot
- 0.24 s swallows bounce and IR bursts
- Remote held
- 3.1 /s auto-repeat rate (NEC)
- Segment current
- – per lit segment
- Board current
- – now, 14 segments max
Validation
Running the netlist check…
Chip pinouts · top view
Seen from above with the legs in the board, notch at the top: pin 1 is top-left and the numbers run down the left side and back up the right. Each pin shows where it goes in this build.
Perfboard layout · 80 × 55 mm
Rows A–T × columns 1–30 on the FR2 board, the same grid as the LED chaser. Bare wire along row B is the +5 V rail and along row S the ground rail. Most signal wiring is insulated wire on the solder side. Flip the view to see it, drawn mirrored the way you see the board turned over. Hover a row in the wire table to highlight that wire.
Decoder part: use the CD4513BE (DIP-18). Display check: 5161AS = common cathode, which is what the CD4513 needs. A 5161BS won't light. Supply: 5 V only, from the same kind of USB-C breakout as the chaser. Never use a higher supply: the 74LS90s are rated 7 V absolute maximum.
Component side: parts as you place them. Faint dashed lines are bare links underneath.
Insulated wires · solder side
Parts and holes
Build order
- Rails. On the solder side, lay bare tinned wire along row B and row S (columns 1–30). Solder it every few holes.
- Bare links. Switch to the solder view and make every silver line: bare wire for the long ones, a solder bridge for neighbouring pads. The +5 V links are column 1 (B–K), row K (1–11), column 11 (K–R) and row P (12–29). Several run under the sockets, so do them before fitting the sockets.
- C1 first. It's the SMD electrolytic and lives under U1 on the solder side: + on E11, − (striped end) on G11.
- Sockets. U1 DIP-8 with pin 1 at D9, notch toward row A. U3 and U2 DIP-14 with pin 1 at L1 and L6, notch toward row A. U4 and U5 DIP-18 lying sideways with pin 1 at R12 and R22, notch toward column 1.
- Resistors. Fit R2 flat, R1/R3/R26 and the eight 4.7 kΩ pull-ups standing up, then the fourteen 330 Ω segment resistors flat in columns 13–19 and 23–29 (rows J–N).
- Capacitors. C2 10 nF, C3, C4, C5 and C7 100 nF ceramics. C6 10 µF: + in G1, stripe in G2.
- Buttons and displays. COUNT at E4/E7/G4/G7 and RESET at C27/C30/E27/E30, each wired on its diagonal legs. Displays with pin 1 at I15 and I21: the decimal point sits bottom-right.
- Solder-side wiring. Work through the wire table group by group: power and control first, then BCD, then segments. Tick each one off.
- Off-board. USB-C breakout VBUS → B1, GND → S1, with 5.1 kΩ from CC1 and CC2 to GND on the breakout. IR module + → C5, OUT → C7, − → G3. Match the silk on your module, because pin orders differ.
- Test before the chips. No beep between rails B and S. Power up, then check 5 V at U1-8, U2-5, U3-5, U4-18 and U5-18 sockets and at U4-3/4 (LT/BI). Power off, insert the chips, power on: you should see 00.