loading

As someone who is very new to digital electronics this LED cube was fun to make, challenging and a great lesson in soldering. If you have some patience (64 LED's to solder!) and steady hands, this project will be well worth it in the end!

Step 1: Materials & Tools

Materials:
-64 LED's ( I used 3mm ones on my cube)
-16 resistors ( I used 330ohm)
-solid uninsulated wire to connect the rows of LED's together
-Arduino Uno 
-Prototype Shield V.5
-2 six pin headers and 2 eight pin headers
-20 pieces of stranded wire (Using multicolored ones will help keep your wiring organized)
-1 stripboard or prototyping board with copper leads (The ones without leads are fine, the copper leads just save you a step)
-A case to hold your cube( I used this one for mine http://www.amazon.com/gp/product/B007POB8PK/ref=oh_details_o01_s00_i01?ie=UTF8&psc=1)
-Optional: A plastic covering to house your cube( I ordered 5 plastic squares with a two way mirror film from TAP Plastics to make my cover. The mirror element gives the illusion of infinity lights)


Tools:
-soldering iron
-solder
-drill with a 3mm bit( or any other size depending on your LED)
-ruler
-masking tape
-pliers 
<p>Pretty straight forward. However, I altered a few steps and added some for convenience as well as proper operation. First of all, I suggest you use 270 ohm transistors instead of 330 ohm which will make the LEDs light up a bit brighter. Furthermore, the wires need to be soldered to the opposite leads of each resistor instead of the lead to which the LED columns are to be soldered. In your drawings this was done incorrectly. However in the wiring scheme this was done correctly. Failing to do this properly may indeed still have the effect of lighting up the LEDs but this isn't guarenteed and may even cause the LEDs to burn out entirely as they require an interposed resistor in order to cope with the load caused by the electrical current. </p>
<p>Obviously I meant to say resistors instead of transistors.</p>
<p>Pretty straight forward. However, I altered a few steps and added some for convenience as well as proper operation. First of all, I suggest you use 270 ohm transistors instead of 330 ohm which will make the LEDs light up a bit brighter. Furthermore, the wires need to be soldered to the opposite leads of each resistor instead of the lead to which the LED columns are to be soldered. In your drawings this was done incorrectly. However in the wiring scheme this was done correctly. Failing to do this properly may indeed still have the effect of lighting up the LEDs but this isn't guarenteed and may even cause the LEDs to burn out entirely as they require an interposed resistor in order to cope with the load caused by the electrical current. </p>
<p>can i have its circuit diagram please..!</p>
<p>hey can any 1 devlop me the code with b00000 for arduino mega for a 5*5*5 led cube</p><p>mega has got 60+ pins so i can make a 5*5*5 without any 3to8 decoders or shift registers... so please help in this.... mail : pradyum.cool.rocks.cool@gmail.com</p><p>if u help me with the code i will surely give u something</p>
<p>hey can any 1 devlop me the code with b00000 for arduino mega for a 5*5*5 led cube</p><p>mega has got 60+ pins so i can make a 5*5*5 without any 3to8 decoders or shift registers... so please help in this.... mail : pradyum.cool.rocks.cool@gmail.com</p><p>if u help me with the code i will surely give u something</p>
<p>Thanks for tutorial! I made my cube in about 6 hours today. Is not the best cube ever made, but it work really good. </p>
<p>When I copy the code from the link in to the arduino code uploder it says Arduino: 1.6.3 (Windows 7), Board: &quot;Arduino Uno&quot;</p><p>sketch_may09a.ino:10:1: error: 'prog_uchar' does not name a type</p><p>sketch_may09a.ino: In function 'void loop()':</p><p>sketch_may09a.ino:447:23: error: 'PatternTable' was not declared in this scope</p><p>Error compiling.</p><p> This report would have more information with</p><p> &quot;Show verbose output during compilation&quot;</p><p> enabled in File &gt; Preferences.</p><p>Please help I have already built the cube!</p>
<p>Just to update everyone else. (Also mentioned in the comments below)</p><p>For newer versions of the Arduino application.</p><p>Please change (on line 10):</p><p>prog_uchar PROGMEM PatternTable[] = {</p><p>to:</p><p>const char PROGMEM PatternTable[] = {</p>
<p>Brilliant mate! Best guide I've seen for a 4x4x4. Made it today. Here's a vid: https://youtu.be/msLtWIka88U</p><p>Are you also the author of this since it is exactly the same, down to the dropbox code link: http://www.techmadeeasy.co.uk/2013/01/21/make-your-own-4x4x4-led-cube-with-an-arduino</p>
<p>Doesn't soldering the jumper wires directly on top of the anode leg defeat the purpose of the resistor? Why not solder the wire to the resistor head so the current flows through the resistor and up into the anode?</p>
<p>I also don't understand this. Isn't the resistor just hanging there with a single connection not being the path of least resistance? I would understand it if the wire to the arduino came off the other side of the resistor.</p>
<p>Arduino: 1.6.1 (Windows 7), Board: &quot;Arduino Uno&quot;<br><br>sketch_mar29a.ino:10:1: error: 'prog_uchar' does not name a type<br><br>sketch_mar29a.ino: In function 'void loop()':<br><br>sketch_mar29a.ino:447:23: error: 'PatternTable' was not declared in this scope<br><br>Error compiling.<br><br> This report would have more information with<br> &quot;Show verbose output during compilation&quot;<br> enabled in File &gt; Preferences.</p>
<p>code is not wrking</p>
<p>i made an 4*4*4 led cube with ,16 cathodes and 4 anodes but now the issue is only column works perfect and when ,i light an one row ,it also lights up other rows too...could u tell me how to fix this issue.i have not used any transistors in a cube only resistors and leds ..</p>
<p>you probably have a led contact that's in reverse somewhere</p>
<p>Can someone help me. I'm not sure whether to use slow or fast LED's. </p>
<p>I've never heard of a slow LED.</p>
<p>Arduino: 1.6.1 (Windows 7), Board: &quot;Arduino Uno&quot;</p><p>kuba_kods_3.ino:10:1: error: 'prog_uchar' does not name a type</p><p>kuba_kods_3.ino: In function 'void loop()':</p><p>kuba_kods_3.ino:95:23: error: 'PatternTable' was not declared in this scope</p><p>Error compiling.</p><p> This report would have more information with</p><p> &quot;Show verbose output during compilation&quot;</p><p> enabled in File &gt; Preferences.</p><p>vat i need to doo?</p>
<p>Change &quot;prog_uchar&quot; to &quot;const char&quot;. This is a new way to write the code in the new arduino update.</p>
<p>Great intruction, thank you so much</p>
<p>Great intruction, thank you so much</p>
<p>Great intruction, thank you so much</p>
<p>thanks :)</p><p>just add the following link for the understanding of how different patterns can be generated on software.</p><p>http://www.instructables.com/id/3X3-LED-Cube-Programming-tips-Arduino-based/</p>
<p>nice project,but I need help with the coding, could someone help me ?</p>
<p>Works great and the instructions were easy to follow.</p>
<p>what's the code </p>
<p>I have a problem when i check the sketch:</p><p>&quot;10:33: error: variable &lsquo;PatternTable&rsquo; must be const in order to be put into read-only section by means of &lsquo;__attribute__((progmem))&quot;</p><p>can you help me?</p>
I used veroboard as shield board. My first LED cube project. Excellent Instructables. Thanks!
<p>I didnt use any resistors for my cube. Seems to light up no brighter than a single led with a resistor off one pinIn going to ground. In fact, resistors made everything incredibly dim. Should I be particularly worried? </p>
<p>Great instructable! I made one over the weekend. Thanks for posting this!</p>
<p>Superb. A high five!</p>
<p>Hey man, nice instructable!! On my arduino I can't find the ports A13 and A12. I think that they are labeled like this on the shield you put on top of this, but not on the arduino itself. Any idea which ports they would be on the arduino uno itself? </p>
<p>I think it might be digital ports 12 and 13. I may have mislabeled it. Let me know if that works!</p>
<p>Sorry, i have a question, why do a lot of similar project use NPN Transistors and here it isn't necessary?</p>
<p>I believe it is because this one doesn't us an external power source, it's all powered by the arduino</p>
<p>hi Lauren,</p><p>Great Project for long weekends and holidays! I have a question, almost all of the LED's work except 3 of them, they work when i apply power to them directly, but not when attached to the atmega328P(I built a standalone arduino for this.) do you by chance have a solution? the LED's are all in different places. </p>
<p>Hi Lauren,</p><p>Great instuctable, had been thinking about making one of these for a while now but your instructable made me decide to do it. This was my first arduino project, and I just finished making it, but for some reason it is malfunctioning. The LED's are <em>extremely</em> dim, even in a completely dark room are barely visible. If there is any light in the room at all they are not visible. Not even a phone or camera can pick up the light... it's not that the led's are faulty because I tested them beforehand and they worked fine. Any idea's as to what caused this? Could it be that the resistors (which are 330K) have too much resistance for my leds?</p><p>Any help would be much appreciated, and again, this was a fantastic instructable.</p>
<p>Just realised my mistake, I accidentally used 330k resistors instead of 330 ohm...</p>
<p>Hi,</p><p>Thanks. I've been searching for a good LED project and yours fits the bill perfectly.</p><p>Again, thanks</p>
This is awesome, I made this same cube from &quot;techmadeeasy&quot; because his instructions were better than any I've seen on instructables. <br>I was going to do an &quot;ible&quot; just so this site would have it but I never did get around to that, so I'm glad you did!<br>I'm gonna have to try out your added code since our cubes are compatible!<br>Nice work!
Thank you! Yeah, his instructions were great! I only added a few things his tutorial didn't have but all the credit goes to him.
I'm blushing. <br>The original guide that I used on Instructables was great but it was missing a few steps. That's why I wrote the one on Tech Made Easy. <br> <br>Love the drawings on this guide though, miles better than anything I could put together.
I find it easier to lay the cube on it's side while soldering the layers together. I solder the corners first and align it then solder the rest.
Just wanted to query the image 8 in step 5. It shows one of the cathodes on the same bus as a resistor and other 3 cathodes are not linked to a resistor bus. Is this an error in the image or is it meant to be this way? I have completed all of the steps and have a working cube but a selection of LEDs seem to be constantly ON and column A1 does not lit up at all.
Sorry that's an error in my image I'll fix. The cathode shouldn't be in the same column as the resistor since the cathodes don't need resistors. <br> <br>As for your LED's that are constantly on I'm not exactly sure why that is. The only reason I can think of is that there is something in the code that is turning them on or a wire in step 6 might be in the wrong port.
<br> <br>R0y4L says: 1 second agoReply <br> <br>Just wanted to query the image 8 in step 5. It shows one of the cathodes on the same bus as a resistor and other 3 cathodes are not linked to a resistor bus. Is this an error in the image or is it meant to be this way? I have completed all of the steps and have a working cube but a selection of LEDs seem to be constantly ON and column 0 does not lit up at all.
Could we see it running?
Oh sorry about that! I'll post one soon!

About This Instructable

127,839views

533favorites

License:

More by laurenk:4X4X4 LED Cube w/ Arduino Uno 
Add instructable to: