In this tutorial I’ll show how you can create your own LED Cube 3x3x3. I’m sure you already saw some similar projects to this one but you never took action and made your own. Now it’s time to make your own!

By the way you can find more project here: http://randomnerdtutorials.com/

Watch this Demo Video of my project:

Step 1: All Parts Required

  • 1x Arduino Board
  • 27x LED’s
  • 1x Stripboard
  • 3x 22k ohm Resistors
  • 9x 220 ohm Resistors
  • 3x NPN Transistors (for example: 2N2222, BC547, 2N3904)
  • Wires
(I included a picture with all the parts)
<p>Hello, I'm very new to the entire Arduino &amp; Maker movements so forgive me for my inexperience but I am confused about one portion of the schematic and would greatly appreciate some assistance.</p><p> In the instance of the two black jumper wires leading from the layer 2 &amp; 3 transistors they appear to meet at the layer 1 transistor which I understand then leads its own wire to the Arduino board. However in the video tutorial the creator shows that on the PCB board all three of the jumper wires meet at the layer one transistors input, the question is, do I solder all three of these wires and the transistor input together? </p><p>Thank you. </p>
<p>hi</p><p>while compiling i am getting error as</p><p>&quot;</p><p>ledcube.pde: In function 'void loop()':<br>ledcube:49: error: taking address of temporary array<br>ledcube:50: error: taking address of temporary array<br>ledcube:51: error: taking address of temporary array<br>ledcube:52: error: taking address of temporary array<br>ledcube:53: error: taking address of temporary array<br>ledcube:54: error: taking address of temporary array<br>ledcube:55: error: taking address of temporary array<br>ledcube:56: error: taking address of temporary array<br>taking address of temporary array</p><p>&quot;</p><p>how to resolve</p><p>i am using latest arduino on windows</p>
<p>can anybody give me a code that lights up all the led's in the cube</p>
OMG! this is incredible Im new in this app and I wanna do everything! haha I like your project. Good job.
thanks so much for your feedback! Let me know if this project worked also for you :) I already had some subscribers trying and sending me pictures of their projects. <br>randomnerdtutorials.com/feedback
<p>hey question... do you use 3 different resistors? </p>
<p>U can use three different resistors the only difference it makes is the intensity of the LED glow...If u increase the resistance the intensity decreases...</p>
<p>I made it....</p><p>Took about 10 hours over two days to construct. I modified the placement of the transistors and the construction went very smooth (with a lot of checking and double checking). The only problem I had was with the IDE not recognising my NHDuino UNO. Once I updated the CH340G USB drivers, it run like a dream. </p><p>Next is to build a UNO shield for this to plug straight into the top and then box it up.</p><p>Many thanks for the instructible, it is a great design, library and code.</p>
<p>Hi.. can i use tip 9013g instead of one of those you have in the parts list? i'm really new to this stuff..just got my first arduino start kit..</p>
<p>new 3x3x3</p>
<p>Great project :)</p>
<p>I finally made it. It took almost a week to done this progress... It was totally worth it tho :D here is a pic of it :D if you wanna see working i can always upload it to youtube :D </p>
It's working :)
<p>hello,the arduino code is write by yourself?</p>
<p>it works but i had to use a diffent code yours since it was giving me an error this is a pic of it i am going to solder an at mega on my stripboard later this is just temporary to see if it would work</p>
<p>and here it is finished</p>
<p>i didnt quite follow the tutorial so much as i used the diagram to get pin outs and kinda wired it my own way, i still think this is a great tutorial for anyone trying to get into led cubes... for mine i soldered the resistors and transistors right to the cube and then soldered jumper wires to the ends (i dont have perfboard handy) the code is easy to change and add new patterns with the webpage code builder. overall this was a fun relaxing midnight project to put together.</p>
<p>First arduino project, 5 hours of work, and it is alive!!!!!! Great instructable, Thank You!</p>
<p>Hey.. I made your project and it's running but there is little bit problem with it. These LED are not producing so much light. some times if your room light is on you can't see the LED is glowing or not </p>
<p>It works on Arduino Mega Board as well. Thanks for sharing.</p>
<p>Hi Rui,</p><p>I am ordering parts to make a led cube, and I was wondering what size wire you used.</p><p>Thanks,</p><p>Ben</p>
The program doest work to me. What is the problem with code?
<p>question ... do you use 3 different transistors? </p>
<p>question where does the </p><ul> <br><li>3x 22k ohm Resistors go ? </ul>
<p>Note to good friend in Saudi Arabia, You have come to the correct instructable. Give yourself a pat on the back!</p>
<p>It works!!! I spent 2 days building my cube and I'm so happy to say that it works! Thanks for the video tutorial. It made it a breeze to follow and build. It may not look perfect but I love it. Thanks again!</p>
<p>the code are wrong and i got 1 column wont light up</p>
<p>Where do the 3 22k resistors go, they dont apppear to be on the schematic</p>
<p>though i am assuming they are put on the gate of the transistors to prevent a short, right?</p>
<p>Thank You !!! ,Its Works Sooo Goood... :-)</p>
<p>i am a filipino 14 years old.</p>
<p>hi im john caesar . plz make a instraction step by step for me i like your work and i like it to present in our school project.</p>
<p>Hi there, </p><p>This was one of the most helpful guide to a led cube. I made every thing but now I'm stuck at the coding part. When I bring the led cube example you gave us to the ardunio desktop, it don't let me transfer it to the board because it has bunch of errors. The Errors are:</p><p>ledcube:15: error: 'LedCube' does not name a type</p><p>ledcube.pde: In function 'void loop()':</p><p>ledcube:48: error: 'cubeFrame' was not declared in this scope</p><p>ledcube:48: error: 'f' was not declared in this scope</p><p>ledcube:48: error: expected primary-expression before ']' token</p><p>ledcube:48: error: expected primary-expression before '{' token</p><p>ledcube:48: error: expected `;' before '{' token</p><p>ledcube:195: error: expected `}' at end of input</p><p>I'm making this for a school project and is due in a week so your help would be very nice. Please reply back....</p><p>P.S you guides are some of the best one, with a lot of help and details. </p>
<p>I have the same problem, how did you solve it?</p>
<p>I don't know if it helps but I had the same problem until I loaded the program on a windows 7 computer. I don't know how it works differently but, I can verify that it does work. For the windows 8 computer I had to write my own (very sloppy) program. It works though (kind of). </p>
<p>Thanks,</p><p>This was pretty much my first project away from the tutorial books. </p><p>worked out fantastic, I ended up putting some header pins at the front to connect everything up.</p>
<p>hai RuiSantos.<br>I have problems during the process of uploading the source code to the Arduino, how do I fix it?</p>
<p>Nice Work Men. It works without problems. THX!!!</p>
The final cube.
<p>Made it! :D</p>
<p>I followed the instructions strictly but only the top layer works. Is it the program? Urgent HELP PLEASE!!</p>
<p>It's possible your bottom 2 layers aren't properly soldered together or ground right, or perhaps you have the wrong connection on your transistors</p>
<p>Awesome and works great!</p>
<p>thank you man , i made it its awesome but i checked all the LED's while installing but later in the topmost layer 5 leds fused and is not lighting , i must look onto it, otherwise an awesome project</p>
<p>Ok quick question. This is my first electric prototyping project so forgive me if what I ask is a stupid question. I understand that from the 220 ohm resistors they go to each of the bottom nine anodes(since all three layer's anodes are connected to each other) but what are the yellow wires going to the resistors going to. Digital outputs on the arduino uno? Also what goes to and from the transistors and where are the 22k ohm resistors? Final question is it okay if i use 330 ohm resistors instead of the 220's?</p>
A little credit would be nice. ;) <br>http://www.instructables.com/id/LED-Cube-and-Arduino-Lib/ <br> <br>Official code location is: <br>https://github.com/gzip/arduino-ledcube
Hi gzip!<br>I'm sorry I never saw your instructable I've found your code on github while searching there.<br><br>All the credits in the code go for you I didn't change anything.<br>I'll make sure I update my insctructable though to give you the proper credit then. I just made a direct download link because some people don't know exactly how github works, that's all<br><br>Sorry again,<br>All the best,<br>Rui
I am having some trouble downloading the code, so is there another way I can get it? <br>

About This Instructable


105 favorites


Bio: Author, Blogger, Electronics Enthusiast and Entrepreneur. For complete Electronics Projects and Tutorials go to: http://randomnerdtutorials.com/start-here
More by RuiSantos: ESP8266 Web Server (Without Arduino) Arduino Simple Memory Game Arduino – Datalogger with Temperature Sensor and Photoresistor
Add instructable to: