°•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
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°•
°• 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•°
The first step is bend the negative terminal of the LED.
°•Making Platform°•
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°•
place LED in the platform and solder all the negative terminal. likewise make all the three layers septatley.
°•constructing the Cube°•
To combine all three layer bend the edges of positive terminal of LED's and solder the first, second & third layer.
°•Circut Connection°•
connect the 22 k ohm resistor in base connection from transistor
•°programming•°
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•°
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.