Build Your Own 4x4x4 RGB LED Cube

103,690

442

121

Introduction: Build Your Own 4x4x4 RGB LED Cube

About: Awesome Electronics Tutorials, Projects and How To´s

LED Cubes are awesome. The first one I created was a 8x8x8 blue led cube. It still works like a charm. But being able to display every colour in the spectrum is much more spectacular. Let's start with a small and simple 4x4x4 RGB LED Cube.

Step 1: Watch Part 1 of the Video Series!

As you might have noticed, part 1 concentrates on the cube itself and the case. No electronics yet. The video should already give you plenty of details. But I will give you a short list of parts that you will need to build the cube itself.

Step 2: Order the Parts for the Cube!

Here you can find a parts list with example seller (affiliate links):

Ebay:

RGB LEDs Common Anode: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Silvered Copper Wire (Bridge Wire):http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Solder: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Ribbon Cable:http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Amazon.de:

RGB LEDs Common Anode: http://amzn.to/1cjetjZ

http://amzn.to/1lHSJ48

Silvered Copper Wire (Bridge Wire):http://amzn.to/1cjeHaH

Solder: http://amzn.to/1lHSJ48

Ribbon Cable: http://amzn.to/1m8P3JA

Aliexpress:

RGB LEDs Common Anode: https://s.click.aliexpress.com/e/_dZ2unDY

Silvered Copper Wire (Bridge Wire): https://s.click.aliexpress.com/e/_d6ClzWi

Solder: https://s.click.aliexpress.com/e/_dTGclAw

Ribbon Cable: https://s.click.aliexpress.com/e/_dXkghb4

Step 3: You Finished the Cube and Case!

Congrats on your finished cube and case. It should now look a little bit like mine in the picture. Go ahead and test all connections with a power supply. If everything works fine you can go ahead and build the electronics in the next steps.

Step 4: Watch Part 2 of the Video Series!

The video gives you plenty of info on how to build the controller for the cube. In the next step I will give you the schematic for the circuit and the part list.

Step 5: Order the Parts for the Controller and Solder It!

Here you can find a parts list with example seller (affiliate links)

Ebay:

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

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

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

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

TLC5940:http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Resistor Kit:http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Power Supply (5V, 2A):http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

IRF9540N P-Channel MOSFET:http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Capacitor Kit:http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Prototyping PCB: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Amazon.de:

DC Jack:http://amzn.to/1Ed1hrt

Switch: http://amzn.to/1vi1UsA

Potentiometer (10k): http://amzn.to/1nRws1J

Arduino Nano: http://amzn.to/1d4H1w1

TLC5940: http://amzn.to/1rVmQZC

Resistor Kit: http://amzn.to/1gt9XPf

Power Supply (5V, 2A): http://amzn.to/1rUJuQN

Capacitor Kit: http://amzn.to/1yE71u3

Prototyping PCB: http://amzn.to/1rVpcI9

Aliexpress:

DC Jack: https://s.click.aliexpress.com/e/_d6cVZVl

Switch: https://s.click.aliexpress.com/e/_d9dxPD5

Potentiometer (10k): https://s.click.aliexpress.com/e/_dX83GAF

Arduino Nano: https://s.click.aliexpress.com/e/_dULoNXh

TLC5940: https://s.click.aliexpress.com/e/_d7bKqAI

Resistor Kit: https://s.click.aliexpress.com/e/_dTPpXjt

Power Supply (5V, 2A): https://s.click.aliexpress.com/e/_d7d5TO6

Capacitor Kit: https://s.click.aliexpress.com/e/_dU4FEsB

Prototyping PCB: https://s.click.aliexpress.com/e/_dXx2Zv5

Step 6: Upload the Arduino Code and Test the Cube!

Download the code for the LED Cube. This is already my updated version of the code which I showed in part 3 of the video series. Be sure to watch this part as well to get an idea how the code works.

Step 7: Watch Part 3 of the Video Series!

This time it is all about optimisation. You may get a better understanding of the code if you watch the video carefully.

Step 8: New Animations!

Here you can get some new animations which were created by a viewer.

Visit his channel here:

Step 9: Success!

You did it. You just finished your own 4x4x4 RGB LED Cube. Feel free to develope the code in more creative ways than I did. And feel free to share those new creations.

Feel free to check out my Youtube channel for more awesome projects.
https://www.youtube.com/user/greatscottlab

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

https://twitter.com/GreatScottLab

https://www.facebook.com/greatscottlab

Featured Author Contest: Tarun Upadhyaya

Participated in the
Featured Author Contest: Tarun Upadhyaya

15 People Made This Project!

Recommendations

  • Battery Powered Contest

    Battery Powered Contest
  • Plywood Challenge

    Plywood Challenge
  • Plastic Contest

    Plastic Contest

121 Discussions

0
cloud112
cloud112

7 days ago

I recently succeeded in my build of this cube and wanted to share a few things I learned for those of you struggling in the comments:

This thing was frikin obnoxious with all the trouble shooting that had to be done.

Things to note:
1) Make sure you look through the library archive that is being uploaded by the Arduino and ensure you are using the right pins!!! Cant tell you how obnoxious this was as I tried to get a Teensy 2.0++ setup to run the cube. At first, I thought the whole thing was a bust till I realized that the pinouts were different across devices.
2) Don't use sockets. Period. Not even the ones Scott uses. They caused me a lot of headaches for nothing. I removed the sockets and suddenly had fewer headaches (I'll take what I can get but they were a major source of error).
3) Use multidimensional arrays for your pinouts.
4) Scotts' code is outdated BUT, with a little tweaking, still perfectly functional (I had to remove some old libraries and from what I remember it was minimal effort for a even a noob like me).

0
Bluestreekcustoms
Bluestreekcustoms

Question 1 year ago

i made a rgb led matrix cube, i downloaded the charliecube code but can't get it to work, it has many different types of .h files, when i try to compile code it gives me, (whichever .h file) an error of, " ---.h file, no such file or directory,,, I've tried downloading many.h file readers I've tried downloading all the files themselves, I've tried rearranging them in my Arduino file, i just cant get it to work, what am i doing wrong or missing? how do i get my IDE to find the file or directory?

0
mr.botche
mr.botche

Question 1 year ago

this is my first time using an aduino and when i ran the code it had errors compiling. can you help with setting up the aduino maybe i did something wrong

0
Bigcity1960
Bigcity1960

Answer 1 year ago

Hello, can you tell me the error Messages?

0
mr.botche
mr.botche

Reply 1 year ago

Tlc was not declared in this scope

0
Bigcity1960
Bigcity1960

Reply 1 year ago

Hello, can you give me your e-mail address so. I can send you the instruction to compile the code

0
Bigcity1960
Bigcity1960

Reply 1 year ago

Send you an e-mail with installatie instructions

0
Aviyoyo
Aviyoyo

1 year ago

hey scott can you help me my cube is not working

0
Bigcity1960
Bigcity1960

Reply 1 year ago

Hello Aviyoyo, I can help you, what’s Your problem.

0
Electronicsguyharry

Hey greatscott! I was wondering, do you have a Gerber file of this schematic? If so, could you please provide me with it? It's urgent.

0
adrianalin
adrianalin

Question 2 years ago on Step 5

Scott i'm fallowing your gidlins and i'v don a scheci but dont realy know if this is rowat or not ? can you pls take a luck at the wiering ?

0
gmadx
gmadx

2 years ago

Hello GreatScott! First thanks for the videos and content you provide us, keep on! I have almost finished the cube but when I turn it on I see a dim flash and that is it. The animation is running but no brightness... I used IRF9530 mosfet, there is the apeshit, right?

0
Aviyoyo
Aviyoyo

3 years ago

HEY IS TARTED TO MADE IT BUT CAN U TELL HOW THE 0 AND THE 16 IN THE IC OUTPUT ARE TO BE PLACED .

0
tomi942
tomi942

3 years ago

Lovely thing GreatScott. I just started to do this :D

0
Chauhan Vivek R
Chauhan Vivek R

4 years ago

If i want to make just one color cube, i have to need just one ic and 4 MOSFET?

0
tomi942
tomi942

Reply 3 years ago

four mosfets for 4 anode layers :D

0
JoshF79
JoshF79

4 years ago

Has anyone made a 3D (qube) infinity mirror with from this concept??

0
andyosoriol
andyosoriol

4 years ago

It would work if I do it with arduino uno? instead of the arduino nano