Introduction: LED Cube Using Arduino

About: Loves electronics, science fascinates me

In this instructable, we are going to make a led cube (3 * 3 * 3) using arduino uno. In total, we require a total of 27 leds.

Step 1: Things Required

  1. Arduino uno
  2. 27 LEDs
  3. ULN2003
  4. Perfboard
  5. 8 220 ohms resistor
  6. Jumper wires

Step 2: Connections

Make connections as given in the diagram

In 3*3*3 led cube, basically there are three layers. In first layer, ground is common for 9 leds and same for layer 2 and layer 3.
There are 9+3 output pins, 9 for anode and three for 3 layers.

We are using ULN2003 IC, since arduino can't provide enough current to drive all the 27 led simultaneously.Anode pins are connected from pin no. 2 to 10.

Upload the code given below to your arduino board

Download