loading

In this project I will show you how to build a simpler version of a 5x5x5 RGB LED Cube. The driver circuit only consists of an Arduino Nano and the programming is rather simple due to the FastLED library. Let's get started !

Step 1: Watch the Videos!

The videos give you the mandatory information you need to build this project. In the next steps though I will give you some additional helpful advice.

Step 2: Order Your Parts!

Here you can find a list of all the necessary electrical parts to build the cube:

Amazon.com:
1x Arduino Nano: http://amzn.to/1XrlQJy

150x PL9823 8mm LED: -

1x Veroboard: http://amzn.to/1XrlQJy

3x PCB terminal: http://amzn.to/1XrlQJy

2x Female header: http://amzn.to/1XrlQJy

1x Toggle Switch: http://amzn.to/1XrlQJy

1x 10k Potentiometer: http://amzn.to/1XrlQJy

1x DC Jack: http://amzn.to/1XrlQJy

Silvered Copper wire: http://amzn.to/1XrlQJy

1x 5V Power Supply: http://amzn.to/1XrlQJy

Amazon.de:

1x Arduino Nano: http://amzn.to/1k2lfiB

150x PL9823 8mm LED: http://amzn.to/1k2lfiB

1x Veroboard: http://amzn.to/1k2lfiB

3x PCB terminal: http://amzn.to/1k2lfiB

2x Female header: http://amzn.to/1k2lfiB

1x Toggle Switch: http://amzn.to/1k2lfiB

1x 10k Potentiometer: http://amzn.to/1k2lfiB

1x DC Jack: http://amzn.to/1k2lfiB

Silvered Copper wire: http://amzn.to/1k2lfiB

1x 5V Power Supply: http://amzn.to/1k2lfiB

Ebay:

1x Arduino Nano: http://rover.ebay.com/rover/1/711-53200-19255-0/1...

150x PL9823 8mm LED: http://rover.ebay.com/rover/1/711-53200-19255-0/1...

1x Veroboard: http://rover.ebay.com/rover/1/711-53200-19255-0/1...

3x PCB terminal: http://rover.ebay.com/rover/1/711-53200-19255-0/1...

2x Female header: http://rover.ebay.com/rover/1/711-53200-19255-0/1...

1x Toggle Switch: http://rover.ebay.com/rover/1/711-53200-19255-0/1...

1x 10k Potentiometer: http://rover.ebay.com/rover/1/711-53200-19255-0/1...

1x DC Jack: http://rover.ebay.com/rover/1/711-53200-19255-0/1...

Silvered Copper wire: http://rover.ebay.com/rover/1/711-53200-19255-0/1...

1x 5V Power Supply: http://rover.ebay.com/rover/1/711-53200-19255-0/1...

Aliexpress:

1x Arduino Nano: http://s.click.aliexpress.com/e/QBqzZvFEQ

150x PL9823 8mm LED: -

1x Veroboard: http://s.click.aliexpress.com/e/QBqzZvFEQ

3x PCB terminal: http://s.click.aliexpress.com/e/QBqzZvFEQ

2x Female header: http://s.click.aliexpress.com/e/QBqzZvFEQ

1x Toggle Switch: http://s.click.aliexpress.com/e/QBqzZvFEQ

1x 10k Potentiometer: http://s.click.aliexpress.com/e/QBqzZvFEQ

1x DC Jack: http://s.click.aliexpress.com/e/QBqzZvFEQ

Silvered Copper wire: http://s.click.aliexpress.com/e/QBqzZvFEQ

1x 5V Power Supply: http://s.click.aliexpress.com/e/QBqzZvFEQ

Step 3: Create the Cube and the Wiring!

Here you can find a couple of pictures on how the wiring should look like and the .svg files for the cube.

Step 4: Upload the Code!

Don't forget to include the FastLED library in your Arduino folder before trying to upload the code!

FastLED library: https://github.com/FastLED/FastLED

And here you can also find two example codes with a couple of animations.

Step 5: Success!

You did it. You successfully built your own simple 5x5x5 RGB LED Cube.


Feel free to check out my YouTube channel for more awesome projects:

http://www.youtube.com/user/greatscottlab

You can also follow me on Facebook, Twitter and Google+ for news about upcoming projects and behind the scenes information:

https://twitter.com/GreatScottLab

https://www.facebook.com/greatscottlab

<p>Hi guys,<br><br>Can someone help me to figure out what I done wrong?<br>here to videos what I&rsquo;m getting when I&rsquo;m using colorPalette and Animation code:<br><br>colorPalette: <a href="https://vimeo.com/173495387" rel="nofollow">https://vimeo.com/173495387</a><br><br>animation: <a href="https://vimeo.com/173495386" rel="nofollow">https://vimeo.com/173495386</a></p>
<p>I also have the same problem. Did you find a solution?</p>
<p>Yes, problem was that some of led was soldered badly. So check each led to be soldered well.</p>
<p>all I can say is make sure all LEDs work, the voltage is about 5.5 volts and that the data wire isn't corrupted anywhere. Any of these can cause the LEDs to freak out like that.</p>
Hi<br>I have the same problem did you find a solution?
<p>Here's my version with some notes on how the wiring is done:</p>
<p>Hi, Great instructions. At the Moment i builded the cube and with the example Programm it works fine. But i don`t know how to create my one Animation. Has anyone of you a good example with notes or knows a tutorial? Thx</p>
<p>Hi i was wondering if you had a wiring diagram that could help</p>
<p>Hi everyone,</p><p>can someone give me links/sites with animation/programms for this cube ?</p>
<p>Hi everyone,</p><p>I am a noob at this but I had a slightly different idea to &quot;Great Scott&quot;.</p><p>I decide to make changes in the way was constructed by building jig, instead of measuring each LED on its place.</p><p>I<br> had various ideas regarding the jig, my first one was made from window <br>putty...it was a total failure!!!......(does not dry quick enough it <br>takes several weeks, if not months).</p><p>Then I used wall filler because it dries within matter of hours.</p><p>Then<br> I decided Made a box out of cardboard and filled it with the wall <br>filler, then I made a stencil, as per measurements in the tutorial which<br> I placed on the wall filler and placed the LED's on the stencil and <br>soldered all joints.</p><p>But then had another idea what if I wanted to change the program? And there is no in put for the data!</p><p>I<br> found 2 cables, on one end has micro &quot;USB&quot; and the other cable has <br>&quot;A-Female socket&quot;, joint the two and placed them on the acrylic box.</p><p>........It was just ideas that I wanted to share with everyone else ......</p>
<p>Do you need to use this power supply? could you use just a regular USB plug, like from a computer, or a wall transformer that plugs into the jack?</p>
<p>you can use a regular power supply, make sure it can deliver the right amps. But do not use just the USB plug, that would lead to overdischarge.</p>
Can I use 5mm rgb led
<p>you could use these ws2811, p9823 or apa106 LEDs, they all function about the same. Here's the eBay listing:</p><p>http://www.ebay.com/itm/WS2811-APA106-P9823-F5-5mm-F8-8mm-Round-RGB-LED-chipset-Full-color-LED-Chip-5V-/262557174771?var=&amp;hash=item3d21a08bf3:m:m8T47ldvZXsC047otS-x2Jw</p>
<p>No</p>
<p>pls tell me why </p>
<p>you could not controll it just by conecting it to the arduino. it would be to much for one arduino. he acually did a version where you can use rgb leds, but you would need couple more parts.</p>
<p>cant find the LEDs that you recommend. would it be fine if i used 5mm common anode RGB LEDs instead?</p><p>if not could you please recommend some other options that could be used?</p><p>Thanks! @GreatScottLab </p>
<p>you can't use regular rgb leds, the construction will not come out the same. You could try the ws2811 LEDs, or those APA106, but they all function about the same. Here's and eBay listing:</p><p>http://www.ebay.com/itm/WS2811-APA106-P9823-F5-5mm-F8-8mm-Round-RGB-LED-chipset-Full-color-LED-Chip-5V-/262557174771?var=&amp;hash=item3d21a08bf3:m:m8T47ldvZXsC047otS-x2Jw</p>
<p>what are the connections for arduino mega 2560 rather then nano?</p>
<p>for a mega, just use the same data pin and analog pin, and set the programmer to arduino mega. Everything else is the same.</p>
Any substitute for PL9823?
<p>theres a cheaper one $12.80 for 50 pcs http://www.ebay.com/itm/301798006159</p>
Actually this is not available where I live. That's why I was asking if there are some other IC's available of this kind.<br>Thanks. :)
<p>What was the length x width and hight of the case you made?? i want to 3D cut a box for my own build.</p>
<p>Hey Scott, from rewatching the video many times and scratching my head looking at the pictures, can you tell me if this is how it's wired. So the Nano goes to the Din of the first layer. Then, Dout of the first layer goes into the Din of the 2nd layer. This keeps going until it reaches the 5th at the top. Hence, you hide the Din to Dout connection between the layers using an extra wire buried inside the case, since doing the connection outside is not appealing. Can you confirm this?</p>
<p>Hey Scott, from rewatching the video many times and scratching my head looking at the pictures, can you tell me if this is how it's wired. So the Nano goes to the Din of the first layer. Then, Dout of the first layer goes into the Din of the 2nd layer. This keeps going until it reaches the 5th at the top. Hence, you hide the Din to Dout connection between the layers using an extra wire buried inside the case, since doing the connection outside is not appealing. Can you confirm this?</p>
Can I use 5mm rgb led
Can I use 4mm rgb led
<p>No</p>
Can I use arduino pro mini with the same pins and connections
<p>Yes</p>
<p>can i see the wiring of electric</p><p>tanks</p>
<p>There are pictures available. </p>
<p>can i see the wiring of electric</p><p>tanks</p>
can I use a chip instead of an auduino nano if yes wich chip should I use
<p>Where can I find the details for making the acrylic base? Apart from the pictures in the video there are no actual plans. I am hoping to use this as a project in school.</p><p>Great use for an arduino. Many thanks</p>
<p>I added a .zip archive which contains them. </p>
<p>Thank you for the guide. I've ordered the leds and the arduino nano from aliexpress. I have a question: the leds need 5V but how many amps? I want to make a bigger cube (8x8x8) but I don't know which power supply I need. </p><p>I think that this way of soldering the leds is quite difficult and not really precise. I found a good way ( http://www.hownottoengineer.com/projects/rgb-led-cube.html ). Basically, they create some panels and then they connect them to each others. In this way it should be easier. I'll let you know when I'll be finish with the cube.</p>
<p>Hello,when i open animation .ino i have that :</p><p>#include &lt;FastLED.h&gt;</p><p>#define DATA_PIN 2</p><p>#define LED_TYPE WS2812</p><p>#define COLOR_ORDER GRB</p><p>#define NUM_LEDS 125</p><p>#define analogin A0</p><p>CRGB leds[NUM_LEDS];</p><p>int BRIGHTNESS;</p><p>int i;</p><p>int x;</p><p>int y;</p><p>void setup() {</p><p> FastLED.addLeds&lt;WS2812, DATA_PIN, RGB&gt;(leds, NUM_LEDS);</p><p> x=0;</p><p> y=200;</p><p>}</p><p>void loop() {</p><p> BRIGHTNESS=map(analogRead(analogin),0,1023,0,255);</p><p> FastLED.setBrightness(BRIGHTNESS);</p><p> FastLED.clear();</p><p> for (i=(0+x);i&lt;(25+x);i++){</p><p> leds[i] = CRGB::Red;}</p><p> FastLED.show();</p><p> x=x+25;</p><p> if (x&gt;=125){</p><p> x=0;</p><p> y=y-10;}</p><p> if(y==10){y=200;}</p><p> delay(y);</p><p>}</p><p>And the message is : redefinition of 'void setup()'</p><p>What must i do ?Thank you.</p>
<p>To preface this comment, I would like to thank you for this great project, it was very fun to build the cube. However, I am having some issues with data corruption when trying even the most basic programs. Most animations work fine for the first two layers (50 LED's) but after that, the colors become mixed up and are all funky looking. I have re-watched the videos several times to ensure that my cube has the correct wiring, and I have tested for shorts. Every LED works properly by itself, and there is even voltage distribution throughout the cube. If anyone has any information on why this may be happening that would be awesome.</p>
<p>would this work with an arduino uno?</p>
<p>Yes.</p>
<p>Enjoyed this a lot and would like to see the programming video. I have a 5x5x5 that I bought some time ago and am working on a video editor for it. The idea is to have an editor that simulates the LED patterns on the PC, doing away with the need to upload to test the patterns.</p>
<p>yes. do make a video on how to program custom animations. Great work!!</p>
I have tried to but am facing some difficulty please help me more
<p>Very nice, I'm making one! :)<br>Could you include the inkscape files, like you mentioned in the video? ;)</p>
<p>Correct. I forgot that. I will upload them soon. </p>
<p>Would you be able to do a similar video using arduino and 3x3x3?</p>
<p>I think it would be very much the same as this one, but when programming the arduino- you must tell it you only have 3x3x3 (27) LEDS instead of 5x5x5 (125). The number of LEDs is defined in the software using something like this: </p><p>#define NUM_LEDS <br><br>Maybe <a href="https://www.instructables.com/member/GreatScottLab" rel="nofollow">GreatScottLab</a> can confirm this.</p><br>

About This Instructable

54,862views

441favorites

License:

Bio: Awesome Electronics Tutorials, Projects and How To´s
More by GreatScottLab:Make Your Own Tesla Coil DIY Arduino Soldering Station Make Your Own GPS SMS Security Tracking System 
Add instructable to: