loading
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)

Advertisement

<p>This is my second 3x3x3, only this time I put onto a UNO Proto Shield PCD. </p><p>Now to find a clear box to put it all into.</p><p>Thanks for the Tutorial Rui.</p>
<p>how to output names in this 3x3x3 led cube somebody pls help !!!!!!!!</p>
<p>Atlast I made it !! , the effects are cool </p>
<p>hey u can send me code ?</p>
<p>how could i resolve this?</p><p>someone help me out.</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>Hi Rui! <br>Code error. Help me !!!!!!!!!</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>I am also facing same type of problem. Kindly send the accurate/ error free code :(</p>
<p>Do you found any solutions?</p>
<p>maybe you can check local variables. its seems to be variable problem.</p>
<p>Yah. I found the solution.</p>
HI<br>Its very simple by the way.<br>You just have to get potential difference to blink any of the 27 led.<br>Put high on the longer terminal and low on the shorter one while coding. Its very easy if you no the basis of embedded C.
<p>Hi, I have same problem... Can you send me the fixed code????</p>
<p>so simple, thanks. i am change de codes for simple test and many light. its here. <br><br></p><p>void setup() {<br> pinMode(1,OUTPUT);<br> pinMode(2,OUTPUT);<br> pinMode(3,OUTPUT);<br> pinMode(4,OUTPUT);<br> pinMode(5,OUTPUT);<br> pinMode(6,OUTPUT);<br> pinMode(7,OUTPUT);<br> pinMode(8,OUTPUT);<br> pinMode(9,OUTPUT);<br> pinMode(10,OUTPUT);<br> pinMode(11,OUTPUT);<br> pinMode(12,OUTPUT);<br><br>}<br><br>void loop() {<br> for (int kat = 10; kat &lt;= 12; kat++){<br> for(int kolon=1; kolon&lt;=9; kolon++){<br> digitalWrite(kolon,HIGH);<br> digitalWrite(kat,HIGH);<br> delay(50);<br> digitalWrite(kolon,LOW);<br> digitalWrite(kat,LOW);<br> delay(50);<br> }<br> }<br> for (int kat = 10; kat &lt;= 12; kat++){<br> digitalWrite(1,HIGH);<br> digitalWrite(kat,HIGH);<br> delay(100);<br> digitalWrite(1,LOW);<br> digitalWrite(kat,LOW);<br> delay(100);<br> digitalWrite(2,HIGH);<br> digitalWrite(kat,HIGH);<br> delay(100);<br> digitalWrite(2,LOW);<br> digitalWrite(kat,LOW);<br> delay(100);<br> digitalWrite(3,HIGH);<br> digitalWrite(kat,HIGH);<br> delay(100);<br> digitalWrite(3,LOW);<br> digitalWrite(kat,LOW);<br> delay(100);<br> digitalWrite(6,HIGH);<br> digitalWrite(kat,HIGH);<br> delay(100);<br> digitalWrite(6,LOW);<br> digitalWrite(kat,LOW);<br> delay(100);<br> digitalWrite(9,HIGH);<br> digitalWrite(kat,HIGH);<br> delay(100);<br> digitalWrite(9,LOW);<br> digitalWrite(kat,LOW);<br> delay(100);<br> digitalWrite(8,HIGH);<br> digitalWrite(kat,HIGH);<br> delay(100);<br> digitalWrite(8,LOW);<br> digitalWrite(kat,LOW);<br> delay(100);<br> digitalWrite(7,HIGH);<br> digitalWrite(kat,HIGH);<br> delay(100);<br> digitalWrite(7,LOW);<br> digitalWrite(kat,LOW);<br> delay(100);<br> digitalWrite(4,HIGH);<br> digitalWrite(kat,HIGH);<br> delay(100);<br> digitalWrite(4,LOW);<br> digitalWrite(kat,LOW);<br> delay(100);<br> }<br>}</p>
<p>I made it...</p>
<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>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>

About This Instructable

83,530views

130favorites

License:

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: