Introduction: 5x5x5 LED Cube Run on Arduino Uno

Picture of 5x5x5 LED Cube Run on Arduino Uno

Hello friends, this is my take on a 5x5x5 LED cube, lets get started.

The first thing we need to do is get all of our supplies.
We're going to need...:
*125 LEDs (make sure they are red or yellow or the arduino will not be able to run it)
*wire, lots of wire
*5 3-8 line decoders
*5 NPN Transistors
*30 150 Ohm resistors
*a bread board ( preferably 3x 5 inches)
* soldering iron (always wear your safety glasses)
*sponge (for cleaning the soldering iron)
*conductive rods ( you can get 3/64 brass rods in a 6 pack at hobby lobby for about three dollars; get about 6 or7)
* wire cutters
*needle nose pliers
*wire strippers



Step 1: Step 1 Cutting the Rods

Picture of Step 1 Cutting the Rods

The rods at hobby lobby are one foot in length; however, we only need pieces that are 5 inches. we are going to build a frame for the cube then attach the LEDs to the skeleton.

First take your rods and get them all the right length. cutting two inches off every rod then cutting the rest in half to five inch pieces.
once you have all of them cut we can move on to the next step.

Step 2: Step 2 Make the Frame

Picture of Step 2 Make the Frame

once you have all of your pieces cut out take four of them ans put them in a square. make sure that they are at 90 degree angles or the cube will not fit together right. once you have them in place solder the corners. repeat this step four times until you have all five layers together.
Next we need to take three rods for each layer and make the ribs.
take a ruler and a permanent marker to measure out 1 inch increments on two opposite sides of each square. these points are going to be where you solder the ribs to the square, again make sure that they are at a 90 degree angle. you'll also want to measure out one inch increments on each rib, you'll thank me later.
when you're done you should have five squares with three lines running through them.

it should look like this

Step 3: Step 3 Columns

Picture of Step 3 Columns

once you have the layers together the next step is to get the columns.
here's where the rest of the rods come in to play.
again using a ruler and a permanent marker measure out 1 inch segments on each rod.
solder LEDs to each point making sure to attach the longer anode (positive leg) to the rod so the shorter cathode
(negative leg) to the squares you just built. you'll need to make 25 of these

this is what each column should look like

Step 4: Step 4 Completing the Cube

Picture of Step 4 Completing the Cube

Congratulations you're almost there :D
the best thing to do at this point is to take one of the squares and attach a column to each corner. make sure to attach the column to the  square only by the cathode, if the rods touch it could short something out and that's not good at all.
After attaching the four corner columns you should then solder the next square to the LEDs above the ones that you just attached the first layer to. this will make the second layer of the cube. After you have done this to all five squares you will need to attach the rest of the columns moving from one side to the other, his makes it easier on you.
I found that the best way to attach the rest of the columns is to place the column through the bars and hold them in place with the needle nose pliers while using your other hand to solder the cathode to the corresponding layer.
once you have gotten all 25 columns in place we can move on to the next step.
here are a few pictures that might help you understand how to do it. (i know its a lot to do all at once)

Step 5: Step 5 the Breadboard

OK now comes the part where you're gonna have to look at a diagram.
I'm attaching two diagrams, the first is showing how to set up and wire the breadboard and the second is where each wire is connected to the cube. read each carefully and you shouldn't have any problems.

Step 6: Step 6 Programing (dun Dun Duuuuuun)

ok this is probably the easiest part. just plug in your arduino, then copy and paste this code in  sketch and upload. ta da you're done. everything should run properly. i hope you had fun making your cube, good luck

Comments

caolanohara (author)2016-11-10

Does this work? Please send code to caolan_o_hara@hotmail.com

nodoubtman (author)2016-10-03

The schematic is totally wrong ... I have scrapped 2 pcb :(

Mateuza1 (author)2016-09-20

Hi, What transistor are you using?

AswandV (author)2016-03-11

I couldn't find 74HC238 decoder and could you plz help me whether i could use 74HCT238 instead of 74HC238

Toetsenbord (author)AswandV2016-09-06

late answer lol,

but that chips are just the same, so that should not be a problem

Toetsenbord (author)2016-09-06

okay, so I'm a bit struggling, I can't get it to work, because if I run the code, there sometimes flashes one led, or sometimes a collomn, but it doesn't really work. It's not because of the code, I think. I made it like the circuit diagram wich was attached to this instructable. Can someone help me out please?

Thanks!!!

Gabriel EmilianoB (author)2016-04-26

Do someone nows how to fix the code errors?

I don't know if you have your cube running yet, but you could probably use an older (or other) version of the arduino IDE. It might work, but I'm not sure about it.

I already tried an old version but it didnt worked, i think i will try an older one, thanks.

Yes, I think you have to use a really old one, like 1.0.5 :-). I wish you succes!

the code worked, =) but not all the LEDs turn on, they are not red or yellow but i think thats not the reason of the problem, i already checked the soldering work but it is all right does anyone knows hoe to fix it?

cheesecurd1899 (author)2014-02-23

How do you power this?

Just using the 5v output pin on the arduino. You have to connect everything like you can see on the schematics

niemand122 (author)2016-02-23

Please send code to soraschultz@gmail.com

Thanks!

E'mreO (author)2015-12-16

okumusemre19@gmail.com Please send code help

shashi.gupta.39108297 (author)2015-04-19

Please send code on shashigupta323929@gmail.com.

MinhD1 (author)2015-04-12

please send code to email : vuminhduc456@gmail.com Thankyou !!!

shashi.gupta.39108297 (author)2015-03-29

code has many compiling errors....please upload correct code

силиев (author)2014-11-07

I have a problem. I use decoders 74HC238 and I'm not sure but think the problem is in my decoders. Can you tell me which decoders you use?

Cubytus (author)2014-09-15

Same question here. I doubt the Arduino would allow for enough current for the 125 LEDs without burning.

AndaayPhan (author)2014-03-30

Could you post some pictures of the Board and the connections?

TheFlorifant (author)2014-03-23

Could you please take some pictures of the board

About This Instructable

91,654views

39favorites

License:

More by leprecutie:5x5x5 LED cube run on Arduino Uno
Add instructable to: