Instructables

Arduino – LED Cube 3x3x3

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)
kiranrs12 days 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

bresser2 months 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?

gzip3 months 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)  gzip3 months 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
mathesen10974 months ago
I am having some trouble downloading the code, so is there another way I can get it?
Here you are:
http://www.failai.lt/f965m6vo4gtc/arduino-ledcube-master_(1).zip.htm
donce164 months ago
Very good tutorial!
donce16 donce164 months ago
Hmm, little question, where you add 22k ohm Resistors?
Okay, so I have constructed the cube, and am ready to program. However when I do a simple test of the 3 column in the the third layer, the 2 other Leds light up. I am not using the recommended resistors because i have not had the chance to buy some. Could this be the cause of my troubles?
RuiSantos (author)  cheesecurd18995 months ago
Thanks for trying my project!
Sorry for taking so long to answer I was really busy for the past days.

Check all the connections again and see if it's everything soldered properly.
(you can use the diode feature on the multimeter) to see the connection.

Which resistor are you using... if they are much higher that can be a problem....

So 3 problems:
-> wrong resistors
-> LED's polarity
-> some connections missing
I have trouble shooted(shot?) and have figured out what is wrong, thank you for the reply though!
RuiSantos (author)  cheesecurd18995 months ago
Awesome! I'm glad it worked :)
Charlie fl 6 months ago
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 6 months 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
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!