All paths

Build a 4x4x4 LED cube

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

Arduino Uno R3Free3 lessons3 h1 chapter944 XPMaker · Intermediate+150 XP

0 of 3 done

Start the course freeEight outputs from three pinsBuild it as a kitRetails for about $52, free on Mokxi.Lesson plan for teachers
What you will build

One project, built step by step

3 lessons in 1 chapter, about 3 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

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.

Open it in the simulator
The map

Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

Shift, multiplex, animate

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

  1. Open205 XP

    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.

    0 of 5 steps

  2. Locked205 XP

    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.

    0 of 5 steps

  3. ProjectLocked534 XP

    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.

    0 of 7 steps

Syllabus

Every lesson in the course

All 3 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

Shift, multiplex, animate

  1. Eight outputs from three pinsA 74HC595 shift register turns three Uno pins into eight outputs. The cube needs sixteen columns, so this is where it starts.
  2. One layer at a timeThe real cube, with its trick slowed down. Sixteen columns, four layer transistors, and the moment the layers start switching faster than your eye.
  3. Bring the cube to lifeThe 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.
Keep going

The next course on your track

Build a 4x4x4 LED cube is part of the maker track, a ladder of courses from zero to expert.

Next course

Build a balance bot

Three lessons on a two-wheel self-balancing robot: read its tilt, see what the wheels do to it, and write the PID that stands it up.

Open the next course
Track

Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.

See every course on the track
Kits

Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

The kit for this course

LED Cube Kit

Sixty-four LEDs, two shift registers and four layer transistors: a 4x4x4 cube.

Open the kit
Have a kit already?

Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.

See every kit
Questions

About Build a 4x4x4 LED cube

Is Build a 4x4x4 LED cube free?

Yes. All 3 lessons of Build a 4x4x4 LED cube are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build a 4x4x4 LED cube take?

About 3 hours: 3 lessons in 1 chapter, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: Bring the cube to life.

Where do I start?

With "Eight outputs from three pins", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.