DSCN0065.JPG
DSCN0063.JPG
P1010199.JPG
P1010195.JPG
Overview:

     This instructable will cover the building process of an 4x4x4 LED Cube. I will be using an Arduino to control the LEDs.  Since the Arduino (Freeduino) has a total of 20 pins (including the analog pins) we will not need to have any multiplexing or shift registers.  I will take you though what i did in order to build the cube and create some designs of your own.



 
Remove these adsRemove these ads by Signing Up

Step 1: Bill of Materials

Bill of Materials

 For this project I used the freeduino Arduino. Because the Freeduino has a total of 20 I/O pins (with using the analog pins) we will not need and multiplexing or shift registers. So all we will need for our project is:

1. LED x 64
2. Resistors x 16
3. Arduino x 1
4. Perforated PCB
5. Soldering Iron
6. Drill (for the jig)
7. Piece of wood (for a jig)

Vendors:

   I have found sparkfun.com and digikey.com to be good suppliers of small electronic components in general and are currently the only two that I have purchased anything from.





1-40 of 48Next »
boxman117 says: May 2, 2013. 3:32 PM
are you soldering to the anodes or cathodes
boxman117 says: Apr 25, 2013. 5:07 PM
i am wondering what PCB i should get
Phogie7 (author) in reply to boxman117Apr 25, 2013. 7:50 PM
Any that the holes are not already connected. :)
369ben says: Jan 4, 2013. 11:51 AM
Is This called multiplexing where all the cathodes of each layer are soldered together and the anodes of each column are soldered ?

Also why weren't any transistors used as I have seen in other tutorials?

Thanks
Ben
Phogie7 (author) in reply to 369benJan 21, 2013. 6:13 PM
It sure is.

If you don't want to use your micro controller pins as a power source you can use transistors. :). You can also control the layer grounds using transistors.
WGY says: Dec 29, 2012. 7:46 AM
I made my cube and all of the lights work, however, there seems to be a problem with the wiring. Whenever I address a single LED in 6 of the columns, The whole column lights up. This does not happen in 2 columns where the LED's light up individually.
Help would be appreciated!
Thanks!
Phogie7 (author) in reply to WGYJan 21, 2013. 6:04 PM
Sounds like you are grounding out each layer for those columns. Make sure in the code you are only have one layer ground on at a time. Somehow those 4 layers for the 6 columns are getting grounded make sure the wiring/soldering did not get crossed somehow.
glen247 says: Dec 21, 2012. 12:02 PM
Hey thanks a lot for the work i have created 4x4x4 led cube looking at you tutorial. 
telonics says: Nov 25, 2012. 10:15 AM
here's my effort using the UNO board.

http://youtu.be/SeKxOYz2ri8
Thanks Phogie!
glen247 says: Oct 25, 2012. 10:05 PM
Hey thanks for the information. i studied and did the same cube
below is the link for the same

http://youtu.be/-8lJ8YVt6cI
taattooed3 says: Aug 8, 2012. 5:43 AM
Got my first cube done,waiting on proto board and a few components to actually finish the project but the cube is done and running on an arduino uno R3. Thanks everyone for all instructibles,questions,answered questions and most of all your time and patients. http://youtu.be/QjRBElq4a-8
Phogie7 (author) in reply to taattooed3Aug 9, 2012. 6:49 PM
Congrats!! Always feels good to finish a project!
schembri_andrew says: Jun 17, 2012. 1:49 AM
Are you sure that an arduino can handle that current? although, only one led should be on any given time, I am still concerned that i could mess up the code, and end up drawing something like an amp from an arduino pin ( .....) . Do you think I should use darlington transistor arrays to the output pins and supply voltage from an external powersupply? many thanks andrew.
Phogie7 (author) in reply to schembri_andrewJul 10, 2012. 8:39 PM
I think most arduinos are 40mA. If you want to live on the save side I would run them off transistors and a different power supply. Its really up to you I just decided to take the risk. My arduino still works I am sure i messed up the code a time or two but can not say for sure. I just remember the LEDs slowly getting more dim toward the top and i unpluged it as soon as possible. Could also set up functions in the code to handle the grounds. Four functions each one turns on a layer and off the others.

Best of Luck!!
ma7moodz says: Mar 8, 2012. 11:02 AM
Okay Im pretty much stuck here..
Where do I connect the the layer's negative control wires to? (the black wires)
Note: Im very new to arduino
Phogie7 (author) in reply to ma7moodzMay 21, 2012. 6:26 PM
I added a diagram step number 8. I hope that helps if not let me know.
ma7moodz in reply to Phogie7May 22, 2012. 4:29 AM
It worked!
and here is my result
http://youtu.be/VWYiD5FnHZc
Phogie7 (author) in reply to ma7moodzMay 27, 2012. 3:26 PM
Wooo Hoooo!! Looks good!
DeNuzio says: Feb 29, 2012. 3:22 AM
Great instructable :) Here is my results.
http://www.youtube.com/watch?v=lVW64nfY2PE
I used forte1994 arduino's program
Phogie7 (author) in reply to DeNuzioMay 21, 2012. 6:31 PM
Awesome! It looks good! Not as bent up as mine got hahaha.
argentinoloco87 says: Feb 28, 2012. 6:03 PM
hey. ive read your instructions, but im not sure where to connect the leads from the resistors to the arduino? Im not sure what ports to use
Phogie7 (author) in reply to argentinoloco87May 21, 2012. 6:26 PM
I added a diagram step number 8. I hope that helps if not let me know.
stringstretcher says: Mar 12, 2012. 4:21 AM
I just posted an instructable on programming a 3x3x3 cube with an Arduino. It *might* be possible to adapt that to a 4x4x4 and give us even more programming possibilities. One would need to change the pin setup, but that is about all, I think.
earton says: Feb 6, 2012. 3:08 AM
I have followed your instructions, definitely the best instructable to help a beginner! I see your map for the columns, but can you tell me which cathode goes to which ground, for the layers?
Much appreciated :)
Phogie7 (author) in reply to eartonFeb 12, 2012. 8:39 PM
Thanks! It was my first one so its a little rough around the edges. I wrote a note down to get a circuit diagram up. In the code i set up pins 16-19 up as the ground pins. Those should be analog 2-5. Does that help?
Pizzapie500 says: Jan 29, 2012. 6:22 PM
Hi! I finished the cube, but I'm not sure where to attach the 16 columns of positive diodes, to the Arduino. Also I don't know where to put the negative ones either. Can you tell me which one goes to which pin number (like if the first one goes to A0, or like D3)? Sorry i'm new to Arduino, and the other instuctables used too many pieces. Thanks!
Phogie7 (author) in reply to Pizzapie500Feb 12, 2012. 8:34 PM
This would be from looking down onto the cube. Hope it helps! Each number represents a column of the cube and corresponds to an port on the arduino. Let me know if that works and ill add it to the tutorial!

----Back----

3 7 11 15
2 6 10 14
1 5 9 13
0 4 8 12

-----Front----

Yeah this was my first tutorial and i realized that I did not explain the connections very well.

On the freeduino i was using use the digital outputs for 0-15 and the analog next. So analog 0 corresponds to column 14 and analog 1 corresponds to column 15. Analog 2-5 will be the negative or ground for the 4 layers.

If you need anything else let me know.
AndreD. says: Jan 21, 2012. 3:30 PM
Hey Sir...

Can you please explain how you write some letters in your 4x4x4 Cube?
Phogie7 (author) in reply to AndreD.Feb 12, 2012. 8:21 PM
I may have to watch the video again but I do not think there are any letters. If you want to write letters i would suggest building a bigger cube. A 4x4x4 does not give much room to create letters or numbers.
Bruno Silva Pinheiro says: Jan 12, 2012. 4:28 AM
Oh, and if you have the electronic circuit, would be great.

Thank you.

Great project, congratulations!
Phogie7 (author) in reply to Bruno Silva PinheiroFeb 12, 2012. 8:18 PM
Thanks! Ill make a note to create a circuit and let you know once i get it posted. :)
kelsorj says: Nov 16, 2011. 8:03 AM
Great project! I played around with different colors on each layer and it makes for some fun patterns.

http://www.youtube.com/watch?v=fXeoowp5JtE
Phogie7 (author) in reply to kelsorjDec 26, 2011. 2:23 PM
Nice! I do like the different colors! I would like to do a RGB one sometime just have to wait for a rainy day to spend some more on the LEDs.
iinzunza says: Nov 16, 2011. 10:29 PM
I have a project for a subject, and I decided to do this Cube but I have one condition... I need to use transistors, so my question is... How can I design the circuit using my arduino and transistors???
Phogie7 (author) in reply to iinzunzaDec 26, 2011. 2:21 PM
You could use transistors to control when a specific layer is grounded. Instead of grounding the layers to the arduino you would have each layer go to a transistor. Then you can control the transistor with the arduino and chose when to ground out that layer. So in other words connect the ground for a layer to the collector of a NPN transistor and the arduino to the base and the ground to the emmitter. Then you can control that layers ground by setting that arduino pin on and off.
Brunomaster says: Oct 27, 2011. 7:58 PM
Por que está chueco? sabes soldar?
Phogie7 (author) in reply to BrunomasterNov 1, 2011. 7:18 PM
My cube got abused.... it got smashed by a drunk friend and a backpack! I was able to almost bend it back when i put it in the case.

I hope Google Translate is accurate :)

Mi cubo se abusa .... que se estrelló por un amigo borracho y una mochila! Fui capaz de casi lo doble de nuevo cuando lo pongo en el caso.
Jiax says: Nov 1, 2011. 6:12 AM
I don't get how you connect wires to arduino.
My leds will just blink as random and not in order when I use the code. 'Cause I wired them up just randomly. Which ports should I be using?

There is something I do wrong, but I don't know what. Please help!
Phogie7 (author) in reply to JiaxNov 1, 2011. 7:14 PM
Hmmm I should have put that in there, my bad. I can see how it would be useful to know how to connect everything :). This would be from looking down onto the cube. Hope it helps! Each number represents a column of the cube and corresponds to an port on the arduino. Let me know if that works and ill add it to the tutorial!

----Back----

3 7 11 15
2 6 10 14
1 5 9 13
0 4 8 12

-----Front----
Michael Dean says: Oct 18, 2011. 7:42 AM
Does anyone know where to get an Arduino (i.e. the Uno) for less than what I'm finding them for? I can't really justify paying $30 for one (even tho it is very programmable), when I can get a pair of 556 relay timers for ~$.50 a piece that would perform a similar function; with the right capacitor/resistor setup.
1-40 of 48Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!