Counting display
A CD4026 counts clock pulses and drives a seven-segment display itself, 0 to 9 and round again. There is no microcontroller in it: the simulator solves the 4 parts as a circuit, so it runs the moment you press Run, and nothing needs compiling.
Teaching? Assign it to your class in one click.
Beginner Runs in your browser. Free, and no account needed.
The parts retail for about $6.25. On Mokxi they're free.
How it works
There is no microcontroller in this one, so nothing is compiled: the simulator solves the circuit itself. The file in the editor is the notes that come with it.
// A counter you can see: a CD4026 driving a 7-segment display.
//
// Every rising edge of the clock counts one, 0 to 9 and round again, and the
// chip lights the segments of the count itself. Its 6 and 9 have tails.
//
// The control pins tied off here:
// INH (pin 2) low - high freezes the count.
// DEI (pin 3) high - low turns the display off; the chip still counts.
// RST (pin 15) low - high sends the count back to 0.
//
// CO (pin 5) rises each time the count rolls over from 9 to 0. Wire it to a
// second CD4026's clock and that one counts the tens.
Parts list
6 parts, plus the jumper wires. They retail for about $6.25; on Mokxi they're free.
- 1 × Full-size breadboard
- 1 × Power, 5 V
- 1 × Clock
- 1 × CD4026 counter with 7-segment outputs
- 1 × Seven segment display
- 1 × Resistor, 100 Ω
How it is wired
11 connections, pin by pin, read from the circuit itself. Each line is one set of pins joined together, by a jumper wire or a breadboard strip.
- 5 V: CD4026 counter with 7-segment outputs pin DEI; CD4026 counter with 7-segment outputs pin VDD
- Ground: CD4026 counter with 7-segment outputs pin INH; CD4026 counter with 7-segment outputs pin VSS; CD4026 counter with 7-segment outputs pin RST; Resistor, 100 Ω pin 2
- Clock pin OUT; CD4026 counter with 7-segment outputs pin CLK
- CD4026 counter with 7-segment outputs pin f; Seven segment display pin F
- CD4026 counter with 7-segment outputs pin g; Seven segment display pin G
- CD4026 counter with 7-segment outputs pin d; Seven segment display pin D
- CD4026 counter with 7-segment outputs pin a; Seven segment display pin A
- CD4026 counter with 7-segment outputs pin e; Seven segment display pin E
- CD4026 counter with 7-segment outputs pin b; Seven segment display pin B
- CD4026 counter with 7-segment outputs pin c; Seven segment display pin C
- Seven segment display pin COM1; Resistor, 100 Ω pin 1
Change it and keep it
Open it in the editor, change the circuit or the code, and keep your version in a free account.