Projects with a seven-segment display
13 Mokxi projects use a seven-segment display (3 beginner and 10 intermediate). They run on Arduino Uno and ESP32 boards, and 2 need no board at all. Here are all of them, from “Seven-segment digit on pins 4 to 11” to “Digital dice on a 74HC595 (pins 11, 8 and 12)”. Each card says what the project does, the board and parts it needs and its level, and Open in the simulator runs it in your browser in one click, with no account.
How to pick your first one
- Start with “Seven-segment digit on pins 4 to 11”, a beginner project that needs a seven-segment display and a resistor.
- Arduino Uno runs 7 of them, ESP32 2 and 2 need no board at all. Start on the board you have, or on an Arduino Uno if you are buying one.
- The parts used most here are the 74HC595 shift register (7 projects) and the push button (4). With those on hand, most of this list is open to you.
- Before you build one on a real bench, read the seven-segment display wiring guide for your board below. It gives every pin and the voltage notes.
13 projects ready to run

Seven-segment digit on pins 4 to 11
A common-cathode seven-segment display wired straight to the Uno, a on pin 7, b on 6, c on 5, d on 11, e on 10, f on 8, g on 9 and the dot on 4.
- Board
- Arduino Uno R3
- Parts
- Seven-segment display, resistor
- Level
- Beginner

BCD display
Four DIP switches set a number in binary and a CD4511 shows it as a digit on a seven-segment display.
- Board
- No board
- Parts
- 4-way DIP switch, 4-resistor network, CD4511 7-segment driver, seven-segment display, resistor
- Level
- Beginner

Counting display
A CD4026 counts clock pulses and drives a seven-segment display itself, 0 to 9 and round again.
- Board
- No board
- Parts
- Clock, CD4026 counter with 7-segment outputs, seven-segment display, resistor
- Level
- Beginner

Pico W 74HC595 counts 0 to 9 on a digit
MicroPython on a Pico W: a 74HC595 on GP0, GP1 and GP2 drives a common-cathode seven-segment digit that counts 0 to 9, half a second each.
- Board
- Raspberry Pi Pico W
- Parts
- 74HC595 shift register, seven-segment display, resistor
- Level
- Intermediate

Type a digit: serial to a 74HC595 display (pins 11, 8 and 12)
Type a digit from 0 to 9 into the serial monitor and a seven-segment display on a 74HC595 (DS 11, SH_CP 8, ST_CP 12) shows it.
- Board
- Arduino Uno R3
- Parts
- 74HC595 shift register, seven-segment display, resistor
- Level
- Intermediate

MicroPython 7-segment digit on a Pico through a 74HC595
MicroPython on a Raspberry Pi Pico: a 74HC595 on GP18, GP20 and GP21 shows the hex digits 0 to F on a common-anode 7-segment display.
- Board
- Raspberry Pi Pico
- Parts
- 74HC595 shift register, resistor, seven-segment display
- Level
- Intermediate

Cyber dice: seven-segment on pins 2 to 8, button on 9
A common-cathode seven-segment digit with segments a to g on pins 2 to 8 spins through 1 to 6 while the button on pin 9 is held.
- Board
- Arduino Uno R3
- Parts
- Seven-segment display, resistor, push button
- Level
- Intermediate

Dice on an ESP32-C3
A button rolls a die and an ESP32-C3 tumbles the number onto a seven-segment display.
- Board
- ESP32-C3-DevKitM-1
- Parts
- Seven-segment display, resistor, push button
- Level
- Intermediate

Hex digits on a common-anode display (74HC595, pins 11, 12, 13)
A 74HC595 (DS 11, ST_CP 12, SH_CP 13) drives a common-anode seven-segment display through 0 to F, a digit a second.
- Board
- Arduino Uno R3
- Parts
- 74HC595 shift register, seven-segment display, resistor
- Level
- Intermediate

MicroPython 7-segment digit through a 74HC595
MicroPython on an ESP32: a 74HC595 on GPIO 15, 2 and 4 drives a common-anode 7-segment digit through 220 ohm each, counting 0 to F.
- Board
- ESP32-DevKitC V4
- Parts
- 74HC595 shift register, seven-segment display, resistor
- Level
- Intermediate

Electronic dice
A button rolls a die and an Uno tumbles the number onto a seven-segment display.
- Board
- Arduino Uno R3
- Parts
- Seven-segment display, resistor, push button
- Level
- Intermediate

Countdown digit
A 74HC595 on three pins drives a one-digit seven-segment display, counting down from 9 to 0 one number a second.
- Board
- Arduino Uno R3
- Parts
- 74HC595 shift register, seven-segment display, resistor
- Level
- Intermediate

Digital dice on a 74HC595 (pins 11, 8 and 12)
A seven-segment digit on a 74HC595 (DS 11, SH_CP 8, ST_CP 12) spins through the numbers.
- Board
- Arduino Uno R3
- Parts
- 74HC595 shift register, seven-segment display, resistor, push button
- Level
- Intermediate