Instructables
loading
loading
Picture of Arduino – LED Cube 3x3x3
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:

 
Remove these adsRemove these ads by Signing Up

Step 1: All Parts Required

Picture of 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)

Step 2: Video Tutorial + Schematics

Picture of Video Tutorial + Schematics
If you follow my video tutorial I think you'll understand how you can finish each step! If you have any problem please leave a comment below. (I also included my schematics in the pictures)

Step 3: Upload Source Code

Picture of Upload Source Code
Download the library here.

Be sure to download the library and unzip it to libraries. If everything is correct you should find an example in the Arduino IDE software under File > Examples > LedCube > ledcube.

Upload that ledcube example!

Step 4: Final Product

Picture of Final Product
That's the final product!

Did you enjoyed this project? 

Make sure you share this project and leave a comment below... It helps me a lot!



P.S. If you enjoyed this tutorial perhaps you might like my next ones. (Make sure you visit my website for more projects just like this one)
1-40 of 48Next »
onderyilmaz made it!2 months ago
It's working :)
temp_-1771190693.jpgtemp_-1112886053.jpg

hello,the arduino code is write by yourself?

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

20150424_140422.jpg

and here it is finished

20150427_012812.jpg
theheartbeatsbass made it!1 month ago

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.

62495b2c-5d4e-4009-89f5-836c13c93c38.png
rickental1 month ago

First arduino project, 5 hours of work, and it is alive!!!!!! Great instructable, Thank You!

Sandy651 month ago

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

BerkayY12 months ago

It works on Arduino Mega Board as well. Thanks for sharing.

c4s63 months ago
BenG63 months ago

Hi Rui,

I am ordering parts to make a led cube, and I was wondering what size wire you used.

Thanks,

Ben

The program doest work to me. What is the problem with code?
OMG! this is incredible Im new in this app and I wanna do everything! haha I like your project. Good job.
RuiSantos (author)  Charlie fl 1 year ago
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.
randomnerdtutorials.com/feedback

hey question... do you use 3 different resistors?

question ... do you use 3 different transistors?

question where does the


  • 3x 22k ohm Resistors go ?
eshan.wells3 months ago

Note to good friend in Saudi Arabia, You have come to the correct instructable. Give yourself a pat on the back!

botgames4 months ago

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!

crazyjohn.neji made it!4 months ago

the code are wrong and i got 1 column wont light up

10928081_921982267820125_1979810156_n.jpg
eshan.wells4 months ago

Where do the 3 22k resistors go, they dont apppear to be on the schematic

though i am assuming they are put on the gate of the transistors to prevent a short, right?

linusnelson007 made it!4 months ago

Thank You !!! ,Its Works Sooo Goood... :-)

20150101_171338.jpg
KevinsL14 months ago

i am a filipino 14 years old.

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.

UsernameCheck712 months ago

Hi there,

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:

ledcube:15: error: 'LedCube' does not name a type

ledcube.pde: In function 'void loop()':

ledcube:48: error: 'cubeFrame' was not declared in this scope

ledcube:48: error: 'f' was not declared in this scope

ledcube:48: error: expected primary-expression before ']' token

ledcube:48: error: expected primary-expression before '{' token

ledcube:48: error: expected `;' before '{' token

ledcube:195: error: expected `}' at end of input

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.S you guides are some of the best one, with a lot of help and details.

I have the same problem, how did you solve it?

arduino.png

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

JasonR46 months ago

Thanks,

This was pretty much my first project away from the tutorial books.

worked out fantastic, I ended up putting some header pins at the front to connect everything up.

hai RuiSantos.
I have problems during the process of uploading the source code to the Arduino, how do I fix it?

arduino.png
dheidrich10 months ago

Nice Work Men. It works without problems. THX!!!

The final cube.
temp_1373862476.jpg
andree19 made it!1 year ago

Made it! :D

IMAG0714.jpg
_sugan_1 year ago

I followed the instructions strictly but only the top layer works. Is it the program? Urgent HELP PLEASE!!

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

tekteach11 year ago

Awesome and works great!

kiranrs1 year ago

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

bresser1 year ago

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?

gzip1 year ago
A little credit would be nice. ;)
http://www.instructables.com/id/LED-Cube-and-Arduino-Lib/

Official code location is:
https://github.com/gzip/arduino-ledcube
RuiSantos (author)  gzip1 year ago
Hi gzip!
I'm sorry I never saw your instructable I've found your code on github while searching there.

All the credits in the code go for you I didn't change anything.
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

Sorry again,
All the best,
Rui
1-40 of 48Next »