|
Getting your Trinity Audio player ready...
|
Two-digit event counter — no microcontroller, just logic ICs
This is a 0–99 counter built entirely from two CMOS counter/decoder chips, two 7-segment displays, and passive components. No microcontroller, no software — every count, carry and reset is handled by the chips' internal logic. Press the count button to advance the units digit; on the ninth-to-zero rollover it automatically carries into the tens digit. A separate button clears both digits back to zero.
Schematic
Flags with matching text (like U1a or +5V) are the same electrical node — they're labeled instead of wired across the page to keep the drawing readable. Ground symbols (the three shrinking bars) are all common as well.
Parts list
| Ref | Part | Qty |
|---|---|---|
| U1, U2 | CD4026 decade counter / 7-segment driver | 2 |
| DISP1, DISP2 | Common-cathode 7-segment display | 2 |
| RN1, RN2 | 330Ω isolated resistor network, 7 elements (or 7 loose 330Ω resistors each) | 2 |
| R1, R2 | 100kΩ resistor (pull-down) | 2 |
| C1 | 100nF ceramic capacitor (count-button debounce) | 1 |
| C2, C3 | 100nF ceramic capacitor (supply decoupling, one per IC) | 2 |
| SW1, SW2 | Momentary pushbutton, normally open | 2 |
| — | 5V supply (regulated wall adapter or 4×AA) | 1 |
How it works
Each CD4026 is a Johnson decade counter with a built-in 7-segment decoder, so one chip both counts and drives a display directly — no separate logic gates needed. SW1 pulses the clock input of U1; every press advances the units digit by one. R1 holds the clock line low between presses, and C1 filters the switch contact's mechanical bounce so one press reliably registers as one count rather than several.
U1's carry-out pin goes high once per ten counts, right as the units digit rolls from 9 back to 0. That pulse is wired directly to U2's clock input, so the tens digit advances automatically on every rollover — the same cascading trick used inside multi-digit counter ICs and calculators. SW2 ties both chips' reset pins high at once, clearing the whole display to 00 regardless of the current count.
The clock-inhibit and display-enable pins are simply tied to ground and +5V respectively to keep both chips permanently counting and permanently displaying — this project doesn't need to pause counting or blank the display, so those control inputs are fixed rather than driven.
Build notes
- Any 5–15V CMOS-compatible supply works; 5V is the easiest match for common 7-segment displays' current draw with 330Ω segment resistors.
- Confirm your displays are common cathode — a common-anode display will light every segment except the ones you intend, since the CD4026's outputs drive segments high, not low.
- If you want a third digit (hundreds), U2's spare carry-out pin cascades to a third CD4026 exactly the same way U1 feeds U2.
- Socket the ICs rather than soldering them directly — it makes debugging a dead display or a miscounting stage far less painful.
- Both decoupling capacitors should sit as close to their IC's power pins as your layout allows, which keeps the counter immune to noise from the switch contacts.
