°•Multicolour 3×3×3 LED Cube With Custom Animation

by hemaraj in Circuits > Arduino

1071 Views, 2 Favorites, 0 Comments

°•Multicolour 3×3×3 LED Cube With Custom Animation

temp_-148234614.jpg
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]

°•Components & Materials Need°•

temp_-502075396.jpg
temp_-974986513.jpg
temp_-601616447.jpg
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

•°Configuring LED•°

temp_413634088.jpg
The first step is bend the negative terminal of the LED.

°•Making Platform°•

temp_-1708525353.jpg
temp_1465406241.jpg
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
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
temp_296381431.jpg
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
temp_1095101535.jpg
connect the 22 k ohm resistor in base connection from transistor

•°programming•°

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);
}
}
}

°•connection•°

temp_1359763329.jpg
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.