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

745

2

3

About: I am an electrical student living at chennai i love electronics very much.

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]

Step 1: °•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

Step 2: •°Configuring LED•°

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

Step 3: °•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.

Step 4: °•Bulding LED Layer°•

place LED in the platform and solder all the negative terminal. likewise make all the three layers septatley.

Step 5: °•constructing the Cube°•

To combine all three layer bend the edges of positive terminal of LED's and solder the first, second & third layer.

Step 6: °•Circut Connection°•

connect the 22 k ohm resistor in base connection from transistor

Step 7: •°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);
}
}
}

Step 8: °•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.

Make it Glow!

Participated in the
Make it Glow!

Share

    Recommendations

    • Backyard Contest

      Backyard Contest
    • Growing Beyond Earth Maker Contest

      Growing Beyond Earth Maker Contest
    • Classroom Science Contest

      Classroom Science Contest

    3 Discussions