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:

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)
1-40 of 53Next »
Lance_Tronic made it!1 month ago

I made it....

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.

Next is to build a UNO shield for this to plug straight into the top and then box it up.

Many thanks for the instructible, it is a great design, library and code.

My 3x3x3.JPG
GlennL11 month ago

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

AuI1 made it!1 month ago

new 3x3x3

2015-07-13 22.12.02.jpg
Komeniusz made it!2 months ago

Great project :)

2015-06-26 15.52.18.jpg2015-06-26 17.02.21.jpg2015-06-26 18.00.59.jpg2015-06-26 20.31.26.jpg2015-06-27 16.00.21.jpg2015-07-01 19.21.10.jpg2015-07-01 19.21.21.jpg
ahmetcanack made it!2 months ago

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

onderyilmaz made it!5 months ago
It's working :)

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


and here it is finished

theheartbeatsbass made it!4 months 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.

rickental4 months ago

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

Sandy655 months 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

BerkayY16 months ago

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

c4s66 months ago
BenG66 months ago

Hi Rui,

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



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.

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.wells7 months ago

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

botgames7 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!7 months ago

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

eshan.wells7 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!8 months ago

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

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

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?


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

JasonR410 months ago


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.

agung69pambudi10 months ago

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

dheidrich1 year ago

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

The final cube.
andree19 made it!1 year ago

Made it! :D

_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

1-40 of 53Next »