Source: https://mokxi.com/teachers/plans/build-led-cube
Updated: 2026-11-11

Lesson plan

# Build a 4x4x4 LED cube lesson plan

Sixty-four LEDs from twenty wires in three builds: a shift register, multiplexing slowed down, then a cube full of animations.

1 chapter, 3 lessons, about 3 hours, on the Arduino Uno R3. Every lesson runs in the browser, with nothing to install.

Start a class from this course

The unit

## Objectives and materials

### By the end, students can

- Get eight outputs from three pins, light the cube a layer at a time, then make it dance.

### Materials for the whole unit

- 74HC595 shift register x 2
- Arduino Uno R3
- Full-size breadboard x 3
- LED x 64
- Pushbutton
- Resistor x 20
- Transistor (NPN or PNP) x 4

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 3 h 5 min

## Shift, multiplex, animate

Get eight outputs from three pins, light the cube a layer at a time, then make it dance.

Lesson | Time | What students do

Eight outputs from three pins A 74HC595 shift register turns three Uno pins into eight outputs. The cube needs sixteen columns, so this is where it starts. | 55 min

- Three wires in
- One clock tick, one bit
- The latch
- A full bar
- Two chips, sixteen columns

One layer at a time The real cube, with its trick slowed down. Sixteen columns, four layer transistors, and the moment the layers start switching faster than your eye. | 55 min

- Columns and layers
- The top layer
- A transistor per layer
- Faster than your eye
- All four at once

Bring the cube to life The finished cube: a frame of four 16-bit numbers, a refresh that never stops, and four animations, rain, a plane sweep, a spiral and sparkle. | 75 min

- Ready
- The refresh
- Rain
- Plane sweep
- A full floor
- Spiral
- Sparkle

### Materials

- 74HC595 shift register x 2
- Arduino Uno R3
- Full-size breadboard x 3
- LED x 64
- Pushbutton
- Resistor x 20
- Transistor (NPN or PNP) x 4

### Check for understanding

Each student finishes "Bring the cube to life" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Sparkle".

Your class

## Teach this unit as a class

Start a class from this course and its 3 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.

Start a class from this course See the demo class

More units

## Other lesson plans

Electronics basics 20 lessons, about 10 h. Embedded on the Arduino Uno 16 lessons, about 12 h. Embedded on the ESP32-C3 13 lessons, about 11 h. Embedded on the Raspberry Pi Pico 7 lessons, about 6 h. Build your own fight stick 5 lessons, about 4 h. Embedded on the STM32F411 6 lessons, about 6 h. C++ on a board 13 lessons, about 10 h. Digital logic and memory 4 lessons, about 4 h. Interactive devices on the Uno 9 lessons, about 8 h. From gates to a computer 23 lessons, about 16 h. Build a claw machine 8 lessons, about 6 h. Every unit All the courses as ready-made units, on the teachers page.
