MuTech Robotics
Join
Kids OK with adultESP32Level 3/3

512 LEDs in a Cube You Can Draw On in 3D

An 8×8×8 cube of addressable RGB LEDs. One ESP32 drives all 512 from a single data wire and draws waves, rain, spheres and a beating heart in 3D.

Sign in to save
512 LEDs in a Cube You Can Draw On in 3D
Kids OK, with an adult

DIY project. Children must build this only with an adult (16+ years) beside them at all times. Not suitable for children under 8 years.

An adult handles the soldering iron and the mains-powered 5 V supply. 512 LEDs can draw a lot of current, so use a 5 V supply rated 10 A or more and keep the brightness capped.

Strictly follow the description given with this video.

Video

How it works

  1. The 512 LEDs are chained one after another, so a single data line reaches every one.
  2. Each LED has an X, Y and Z position; the code turns that position into its place in the chain.
  3. The ESP32 data goes through a 3.3 V→5 V level shifter and a 330 Ω resistor into the cube, with a 1000 µF capacitor across the 5 V supply.
  4. Patterns are just maths in 3D: a sine wave, falling drops, a growing sphere, a spiral and a heart.

Parts you need

  • ESP32 development board (30-pin)ESP32 development board (30-pin)₹518× 1Buy
  • Addressable RGB LEDs (WS2812B), 512 pcs× 1
  • Logic level shifter× 1
  • 330 Ω resistor330 Ω resistor₹0.57× 1Buy
  • 1000 µF capacitor1000 µF capacitor₹12× 1Buy
  • 5 V 10 A supply× 1

Wiring

Level shifterABLVESP32GPIO53V3cube DIN(330 Ω)Across 5 V andGND1000 µF capacitorCommon GNDAll grounds
PowerGroundSignal
#FromConnect to
1 SignalESP32 GPIO5Level shifter A (LV side)
2 SignalLevel shifter B (HV side)330 Ω → cube DIN
3 PowerESP32 3V3Level shifter LV
4 Power5 V supplyCube +5V, level shifter HV, ESP32 VIN
5 Power1000 µF capacitorAcross 5 V and GND
6 GroundAll groundsCommon GND

3D print files

This project has no 3D-printed parts.

Code

Get the code