Projects with an LED bar graph
12 Mokxi projects use a 10-segment LED bar graph (4 beginner, 7 intermediate and 1 advanced). They run on Arduino Uno, Raspberry Pi Pico and ESP32 boards. Here are all of them, from “LED bar graph on pins 3 to 12” to “Spaceship control panel”. 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 “LED bar graph on pins 3 to 12”, a beginner project that needs an LED bar graph and a resistor.
- Arduino Uno runs 4 of them, Raspberry Pi Pico 4 and ESP32 3. 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 (2 projects), the LED arcade button (1) and the joystick (1). With those on hand, most of this list is open to you.
- Before you build one on a real bench, open the 10-segment LED bar graph part page for its pins and what each one does.
12 projects ready to run

LED bar graph on pins 3 to 12
A ten-segment LED bar graph with a 220 ohm resistor a bar on pins 3 to 12: one bar lights at a time and runs up the graph and back down.
- Board
- Arduino Uno R3
- Parts
- 10-segment LED bar graph, resistor
- Level
- Beginner

MicroPython flowing light on a Pico’s LED bar graph
MicroPython on a Raspberry Pi Pico: a ten-bar LED graph on GP16 to GP22 and GP26 to GP28 lights one bar at a time, along the graph and back.
- Board
- Raspberry Pi Pico
- Parts
- 10-segment LED bar graph, resistor
- Level
- Beginner

Pico W LED bar graph fills and empties
MicroPython on a Pico W: a ten-segment LED bar on GP6 to GP15, a 220 ohm on each segment, fills up one segment at a time and then empties.
- Board
- Raspberry Pi Pico W
- Parts
- 10-segment LED bar graph, resistor
- Level
- Beginner

MicroPython flowing light on a ten-segment LED bar
MicroPython on an ESP32: a ten-segment LED bar on GPIO 15, 2, 0, 4, 5, 18, 19, 21, 22 and 23 lights one segment at a time, up the bar and back.
- Board
- ESP32-DevKitC V4
- Parts
- 10-segment LED bar graph, resistor
- Level
- Beginner

MicroPython 74HC595 flowing light on an LED bar
MicroPython on an ESP32: a 74HC595 on GPIO 14, 12 and 13 walks one lit segment along eight bars of an LED bar graph and back.
- Board
- ESP32-DevKitC V4
- Parts
- 74HC595 shift register, 10-segment LED bar graph, resistor
- Level
- Intermediate

Level meter
A potentiometer on A0 and a ten-segment LED bar graph with a resistor a bar.
- Board
- Arduino Uno R3
- Parts
- 10-segment LED bar graph, potentiometer, resistor
- Level
- Intermediate

MicroPython meteor light on a Pico’s LED bar, PWM
MicroPython on a Raspberry Pi Pico: PWM on all ten pins of an LED bar graph draws a bright head with a fading tail that runs along it and back.
- Board
- Raspberry Pi Pico
- Parts
- 10-segment LED bar graph, resistor
- Level
- Intermediate

Lie detector, science fair style
Skin response and heart rate against a calm baseline on a ten-segment stress bar. A science demo of how the body reacts, not a real lie detector.
- Board
- Arduino Uno R3
- Parts
- 10-segment LED bar graph, resistor, galvanic skin response sensor, push button, MAX30102 pulse oximeter
- Level
- Intermediate

Engine tachometer with shift light
Engine pulses on an interrupt pin become rpm on a 16x2 LCD, timed by the period between pulses.
- Board
- Arduino Uno R3
- Parts
- Clock, resistor, 10-segment LED bar graph, I2C LCD
- Level
- Intermediate

MicroPython meteor light on eight PWM bar segments
MicroPython on an ESP32: eight segments of an LED bar on PWM pins, a bright head with a fading tail that sweeps up the bar and back.
- Board
- ESP32-DevKitC V4
- Parts
- 10-segment LED bar graph, resistor
- Level
- Intermediate

MicroPython 74HC595 flowing light on a Pico
MicroPython on a Raspberry Pi Pico: a 74HC595 on GP18, GP20 and GP21 walks one lit LED along eight bars of an LED bar graph and back.
- Board
- Raspberry Pi Pico
- Parts
- 74HC595 shift register, 10-segment LED bar graph, resistor
- Level
- Intermediate

Spaceship control panel
Arm three systems, pass the go/no-go poll, lift the safety and launch.
- Board
- Arduino Mega 2560 R3
- Parts
- Slide switch, LED arcade button, TM1637 four-digit display, piezo speaker, WS2812 NeoPixel LEDs, +7 more
- Level
- Advanced