Introduction: 4x4 LED CUBE- BASED ON ARDUINO

About: Innovative Electrical Engineer with a proven track record of evaluating electrical systems and applying knowledge of electricity and materials in a beneficial way. Adept in carefully diagnosing and assessing i…

Hello !

In this Instructables we shall learn how to make a 4x4x4 LED Cube using Arduino. I have explained the making of the cube step by step in a sequence. The total cost of this project is 500 Rupees.


Step 1: Things You Need to Build!

Arduino UNO

Diffused LED

4mm (64 nos)

100 ohm resistor x 4

Soldering kit ( Iron,Solder,Flux..)

General Purpose PCB


Wire stripper

Terminal Strip

Hot Glue Glue

Step 2: Preparation of Jig to Place the LED

The jig helps to place the LEDs in place and helps in soldering.

Find some Ply-Wood and use a marker to mark the position of LEDs. The LEDs should be placed 1 inch apart. Use a Drilling machine to drill 4mm holes in the marked places.

Step 3: Placing the LED's on the Jig and Soldering

Testing the LED about its working/Faulty pieces and polarity before placing to the jig is necessary.

Use a 3 volt cell to check the working of LEDs before proceeding.


Place 16 LEDs on the jig placed on a table. Bend the positive leads of the LEDs to interconnect the Positive terminals of all the LEDs. The leads facing upwards towards you will be Negetive. You need not worry if you did the opposite way. You will only have to make small changes in Arduino code.

Apply small portion of flux on each joint and solder the joints to interconnect all the positive leads (Bent leads) . This is your first layer. You will have to make similar 4 of these.

Step 4: Solder the 4 Layers and Placing It Carefully Into the PCB

Let's name the four layers as A,B,C and D.


In this step we shall attach the four layers. Now we will have to connect the vertical pins(Negative Polarity) of each layer. Start by soldering the corner pins of each layer one after the other. Apply required amount of flux and solder the vertical terminals. Insert the Cube into the PCB and Solder the pins.

Strip the insulation of a single strand wire. Connect these wires on to four layers(Positive Terminals) and the other end is connected to PCB. Connect 100 ohm resistors to these 4 layer connections.

Step 5: Wiring the LED Cube

Before wiring it is essential to know the terminal names.

Imagine holding the cube and seeing from the top. Consider a corner LED and that is your reference. Corner towards right becomes your 'x' axis and the other becomes 'y'axis.

I have named the pins and terminals after connecting on PCB.(Refer to the image)

Step 6: Wiring the LED Cube to the Arduino UNO

The following is the connection details.

Example: Pin Name (1,1) goes to Digital pin 13 on Arduino.


















Layers [Layer-Pin]





Step 7: Let's Program the Arduino With Arduino Software.

Note: The code uploaded here is not Designed by me. View the Original Code HERE.

Download the Code and open it in Arduino software.

Connect the arduino to your PC USB port.

Select the Correct Port and your Arduino Board.

Upload the code and your done!

You can power your Arduino using a mobile phone charger.

The Link for the Code from the Creator


Step 8: Final Step!

After Programming the Arduino UNO, Just detach the data cable and supply 5v power through a adapter.


You made yourself a Cool looking LED CUBE to place on a corner of your Desk..!

Watch the Full working video from here.