°•Multicolour 3×3×3 LED Cube With Custom Animation
by hemaraj in Circuits > Arduino
1076 Views, 2 Favorites, 0 Comments
°•Multicolour 3×3×3 LED Cube With Custom Animation
![temp_-148234614.jpg](/proxy/?url=https://content.instructables.com/FSS/U1K6/I3H7H8Z6/FSSU1K6I3H7H8Z6.jpg&filename=temp_-148234614.jpg)
![temp_974408481.jpg](/proxy/?url=https://content.instructables.com/FG7/JS2Q/I3H7H8Z4/FG7JS2QI3H7H8Z4.jpg&filename=temp_974408481.jpg)
Hi to guys and girls.
In this instructable i going to show how to make 3×3 multi colour LED cube using aurdino & also included some animation effects. i used three colours of LED's. [RED, GREEN &WHITE]
In this instructable i going to show how to make 3×3 multi colour LED cube using aurdino & also included some animation effects. i used three colours of LED's. [RED, GREEN &WHITE]
°•Components & Materials Need°•
![temp_-502075396.jpg](/proxy/?url=https://content.instructables.com/FMO/IL7O/I3H54ANR/FMOIL7OI3H54ANR.jpg&filename=temp_-502075396.jpg)
![temp_-974986513.jpg](/proxy/?url=https://content.instructables.com/FKK/1XNR/I3H54B8R/FKK1XNRI3H54B8R.jpg&filename=temp_-974986513.jpg)
![temp_-601616447.jpg](/proxy/?url=https://content.instructables.com/F4K/USC5/I3H54B59/F4KUSC5I3H54B59.jpg&filename=temp_-601616447.jpg)
![temp_1954550741.jpg](/proxy/?url=https://content.instructables.com/FU5/74DN/I3H54B2R/FU574DNI3H54B2R.jpg&filename=temp_1954550741.jpg)
°• LED x 27 (any colour)
°• NPN transistors x3 ( BC547 or 2N3904 or 2n2222)
°• Resistors x 9 (220 ohm)
°• Resistors x 3 (22 k ohm)
°• Aurdino x 1
°• PCB x 1
°• NPN transistors x3 ( BC547 or 2N3904 or 2n2222)
°• Resistors x 9 (220 ohm)
°• Resistors x 3 (22 k ohm)
°• Aurdino x 1
°• PCB x 1
•°Configuring LED•°
![temp_413634088.jpg](/proxy/?url=https://content.instructables.com/F8S/IXN0/I3KBVBVN/F8SIXN0I3KBVBVN.jpg&filename=temp_413634088.jpg)
The first step is bend the negative terminal of the LED.
°•Making Platform°•
![temp_-1708525353.jpg](/proxy/?url=https://content.instructables.com/FMT/Z0BP/I3KBVCJA/FMTZ0BPI3KBVCJA.jpg&filename=temp_-1708525353.jpg)
![temp_1465406241.jpg](/proxy/?url=https://content.instructables.com/FBW/MTJ2/I3KBVCMA/FBWMTJ2I3KBVCMA.jpg&filename=temp_1465406241.jpg)
![temp_-1855254246.jpg](/proxy/?url=https://content.instructables.com/FY5/XGO8/I3KBVCMQ/FY5XGO8I3KBVCMQ.jpg&filename=temp_-1855254246.jpg)
To construct the LED layers we need an platform. Take a piece of chart & thermocol. place chart above the thermocol. Then draw a square of 5x5 in chart make hole at all the edges.
°•Bulding LED Layer°•
![temp_-1393711573.jpg](/proxy/?url=https://content.instructables.com/FV9/BH3C/I3KBVDML/FV9BH3CI3KBVDML.jpg&filename=temp_-1393711573.jpg)
![temp_1234340718.jpg](/proxy/?url=https://content.instructables.com/FKE/5V4P/I3KBVDRQ/FKE5V4PI3KBVDRQ.jpg&filename=temp_1234340718.jpg)
place LED in the platform and solder all the negative terminal. likewise make all the three layers septatley.
°•constructing the Cube°•
![temp_686792651.jpg](/proxy/?url=https://content.instructables.com/F32/P25P/I3H54MC1/F32P25PI3H54MC1.jpg&filename=temp_686792651.jpg)
![temp_296381431.jpg](/proxy/?url=https://content.instructables.com/F7R/URCC/I3H54PU9/F7RURCCI3H54PU9.jpg&filename=temp_296381431.jpg)
![temp_-1182313693.jpg](/proxy/?url=https://content.instructables.com/FP4/H8MF/I3H54YHG/FP4H8MFI3H54YHG.jpg&filename=temp_-1182313693.jpg)
To combine all three layer bend the edges of positive terminal of LED's and solder the first, second & third layer.
°•Circut Connection°•
![temp_-1059555247.jpg](/proxy/?url=https://content.instructables.com/F1K/D5DN/I3H550HL/F1KD5DNI3H550HL.jpg&filename=temp_-1059555247.jpg)
![temp_1095101535.jpg](/proxy/?url=https://content.instructables.com/FVY/0FL0/I3H5546H/FVY0FL0I3H5546H.jpg&filename=temp_1095101535.jpg)
connect the 22 k ohm resistor in base connection from transistor
•°programming•°
![temp_313047106.jpg](/proxy/?url=https://content.instructables.com/FIZ/H13J/I3KBVW5I/FIZH13JI3KBVW5I.jpg&filename=temp_313047106.jpg)
JUST COPY & PLACE THE BELOW CODE.
//glow all the lights in LED cube
voidsetup()
{
pinMode(2,OUTPUT);pinMode(3,OUTPUT);pinMode(4,OUTPUT);pinMode(5,OUTPUT);pinMode(6,OUTPUT);pinMode(7,OUTPUT);pinMode(8,OUTPUT);pinMode(9,OUTPUT);pinMode(10,OUTPUT);pinMode(11,OUTPUT);pinMode(12,OUTPUT);pinMode(13,OUTPUT);
}
voidloop()
{
//set pin 11-13 high so as to light all the layers
digitalWrite(11,HIGH);digitalWrite(12,HIGH);digitalWrite(13,HIGH);digitalWrite(6,HIGH);
//set the middle column ON throughout//light the other columns on andoff in a sequence
for(inti=2;i{
if(i==6)
{
}
else
{
digitalWrite(i,HIGH);
delay(100);
digitalWrite(i,HIGH);
}
}
}
//glow all the lights in LED cube
voidsetup()
{
pinMode(2,OUTPUT);pinMode(3,OUTPUT);pinMode(4,OUTPUT);pinMode(5,OUTPUT);pinMode(6,OUTPUT);pinMode(7,OUTPUT);pinMode(8,OUTPUT);pinMode(9,OUTPUT);pinMode(10,OUTPUT);pinMode(11,OUTPUT);pinMode(12,OUTPUT);pinMode(13,OUTPUT);
}
voidloop()
{
//set pin 11-13 high so as to light all the layers
digitalWrite(11,HIGH);digitalWrite(12,HIGH);digitalWrite(13,HIGH);digitalWrite(6,HIGH);
//set the middle column ON throughout//light the other columns on andoff in a sequence
for(inti=2;i{
if(i==6)
{
}
else
{
digitalWrite(i,HIGH);
delay(100);
digitalWrite(i,HIGH);
}
}
}
°•connection•°
![temp_1359763329.jpg](/proxy/?url=https://content.instructables.com/FF4/E9JH/I3KBVYMR/FF4E9JHI3KBVYMR.jpg&filename=temp_1359763329.jpg)
![temp_-1081904924.jpg](/proxy/?url=https://content.instructables.com/F68/PBYZ/I3KBVZNI/F68PBYZI3KBVZNI.jpg&filename=temp_-1081904924.jpg)
digitalWrite(i,HIGH);
delay(100);
digitalWrite(i,HIGH);
you can see the code in the programme just change it by.
digitalWrite(i,HIGH);
delay(100);
digitalWrite(i,LOW);
it will make some animation effect
After the programme connect pins from cube to aurdino digital pin as per the circuit diagram.
delay(100);
digitalWrite(i,HIGH);
you can see the code in the programme just change it by.
digitalWrite(i,HIGH);
delay(100);
digitalWrite(i,LOW);
it will make some animation effect
After the programme connect pins from cube to aurdino digital pin as per the circuit diagram.