O'Reilly logo

Arduino BLINK Blueprints by Utsav Shah, Samarth Shah

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Programming a 4*4*4 LED cube

Having done the hard part of soldering, let's get into Arduino connection and programming. Before connecting the positive leads, connect four negative layers to Arduino analog I/O ports A2 (bottom layer) through A5 (top layer). After that, 16 LED control pins needs to be connected to the Arduino board. Connect the first 14 pins to Arduino digital I/O ports 0 to 13. The remaining pins 15 and 16 need to be connected to Analog pins A0 and A1. See the following diagram for connection reference:

Programming a 4*4*4 LED cube

There are a few things that you should understand before programming your cube:

  • To address a single LED use a plane (layer) number ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required