4x4 LED CUBE- BASED ON ARDUINO
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.
-------------------------------------------------------------
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
Wires
Wire stripper
Terminal Strip
Hot Glue Glue
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.
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.
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.
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)
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.
[(x,y)-Pin]
(1,1)-13
(1,2)-12
(1,3)-11
(1,4)-10
(2,1)-9
(2,2)-8
(2,3)-7
(2,4)-6
(3,1)-5
(3-2)-4
(3-3)-3
(3,4)-2
(4,1)-1
(4,2)-0
(4,3)-A5
(4,4)-A4
Layers [Layer-Pin]
a-A0
b-A1
c-A2
d-A3
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
Final Step!
After Programming the Arduino UNO, Just detach the data cable and supply 5v power through a adapter.
----------------------------------------------------------------
Congratulations!!
You made yourself a Cool looking LED CUBE to place on a corner of your Desk..!
Watch the Full working video from here.