Picture of 5x5 LED Cube (Arduino Uno)

This is a step by step explanation of how to build a 5x5 LED cube using an arduino. I did this project for my undergraduate electronics class and it took me about 2 weeks to complete.

Note: Apparently, some of the links for the supplies and code aren't working, if you need them send me an email at

You can find a video of the working LED cube on youtube here:

And here's another:

Remove these adsRemove these ads by Signing Up

Step 1: Supplies

I used and to order my materials for this project. The main parts needed are:
-125 LEDs
-30x 150 Ohm resistors
-5x 3-8 Line Decoders
-5 NPN Transistors

The manufacturer numbers and prices can be found in the attached document though the cost was about $40.

Additional required materials:
-Arduino uno
-Soldering iron
-Sturdy wire (for structure of cube)
-Insulated wires
-sockets (for decoders)

Step 2: Cube Construction

Picture of Cube Construction
Unfortunately, I have not perfected the construction of the cube.  I found this portion of the project both frustrating and painful (hot wires!). 

I began by assembling the 5 layers or planes of the cube.  This involved connecting all the cathodes of the LEDs together.  Id did this by poking 25 LEDs (about 1 inch apart) into a piece of styrofoam.  I bent all the anodes out of the way and soldered the LEDs in 5 columns and then two rows on the end (see picture). Be careful when soldering because the entire wire becomes hot and I accidently burned myself multiple times by touching the end of one of the wires.

The next step in cube construction is even trickier.  You need to connect the anodes of the LEDs in 25 vertical columns without letting any of them (or their connecting wire) touch the cathode planes.  The way I did this was leaving the top plane in the styrofoam and placing ~6 inch wires next to the anodes. I used needlenose pliers to curl the anodes into loops so that it was easier to solder. Alternate the directionality of the wires of the cathode planes for stability. See photos.
1-40 of 150Next »


I am also atempting this project and need access to your code.

Can you send to my email -

Thanks in advance.


zainulislam1 month ago
hi i want to learn arduino and its programing so can you help me to learn it i search every thing on google but eventually i came here and found this site so please help me to learn arduino my gmail id is
my skype id
my phone no is
thanks in advance .......
krashton11 year ago
I'm having troubles with this circuit. I have wired everything up exactly as you have said to do it but when I go to run the cube, all the outputs from all the decoders are high/ This gives me limited control but only over layers. All coloums are high but I can still control the transistors. I'm not sure where to go from here but I'm stuck. Any
never mind, I found out the problem to be that I just ordered any old 3 to 8 line decoders, but the ones I ordered work in reverse to these ones. They have 8 active high pins and using A0,A1,A2, you can set one of those pins to low. Make sure when buying parts, make sure you know exactly what it does.


So we used 74LS138N's, guess that's why we can't control individual pins. What one pin does, they all do and several columns will not light up at all. :/

icky_unicorn (author)  janet.gordon.758392 months ago

Yeah you need to make sure the logic tables match up. Can you replace your decoders?

sifu1112 months ago

Could You please send me the final code? Thanks in advance.

АлексейМ2 made it!6 months ago

Hi! I have problems with programming, you could send an email with your code please. My email:

"Privet!" from Russia :)


nice job. I am using this design for a college class project. Could you share your GREAT PCB DESIGN with us. (CAD files, did you use EagleCAD?)

Thanks so much for this instructable! Can you please send me the final code?

I built 5x5x5 led cube using arduino uno and decoders(74ch138).proper circuit and

cube model I built but when I write program and uploaded it on arduino many errors found .please send code to

because I am exciting to see my led cube glowing...pleae send the code

MinhD12 months ago

Could You please send me the final code? Thanks in advance.

My email:

PritomH2 months ago need the the way,your information on this project is very usefull.....5*5*5 audrino powered led

parths13 months ago

can you send me the code and parts list please


thanks in advance

rochebox3 months ago

Awesome project! Trying to build -- can you please send the code? Thanks !

jurij.radchenko made it!4 months ago

Could You please send me the final code? Thanks in advance.

My email:

ace6754 months ago

Could you please send the code to

thanks in advance

kabi.lan.7125 months ago

please send the code

JussiK7 months ago

Greetings from Finland! Could You please send me the final code? Thanks in advance.

Email me at

Hi, i'm from Brazil! I'm doing the project for my high school, can you send me your code? I need so much! please!

JohnP157 months ago

Hi I'm trying to do the same project, can you send me the code and supply list the website is restricting it, thanks! email:

AndreiM17 months ago

Before, (2 years ago) I made LED CUBE 8*8*8 on ATmega 16, but without programm =( Now, made this video.

AndreiM1 made it!7 months ago

Hi, I have problems with programming, you could send an email with your code please.

my email:

p/s Hello from Russia =)

mildanah7 months ago

Can you send me the code plz?

TonyL27 months ago

hi im trying to program my cube too can u send it to ? thanks

Awesome project! Hi I'm From indonesia,Can you send me the code,schematic diagram and parts list please, I want to build it for my school project. thanks

AparV8 months ago

Please send the code at .

WivenM9 months ago

awesome project!! would you please send me the code?

oyes muy bueno Estoy tratando de construirlo. ¿Podria favor del por enviarme el Código?

y el diagrama porfa mi correo es

caleb3609 months ago

Hey, Thanks for this cool project. I am trying to build it. Would you please send me the code?

jasonkh11 months ago

Can you please email me the code for this project? Thanks

bboden1 year ago
I followed your instructable and made the cube. It works beautifully, and I have been using other peoples code, but I would like t use yours. Can you email me the code docx pleas?
AndaayPhan1 year ago

Can you send me the code as well?

hi, can I get the code ?

please send me the code to my ymail id

thank you

azamanta1 year ago

hi, can I get the code of the project led cube,

This e-mail me,

thank you

Fredaow1 year ago

Hi, would you mind emailing to me the supplies list as well as the code. Unfortunately the docx files are not accessible.



my email:

atyagi21 year ago
Hey, Thanks for this cool project. I am trying to build it. Would you please send me the code?
Dan861 year ago


This is a really neat project.

Can you please send me the code and a parts list with the exact decoder you used?



jdato1 year ago

I'm building this cube for my wife for valentines day can you please send me the code to Great project can't wait to get this up and running.

rrawat21 year ago

madam please send this project code in my gmail id .I request you to madam because i submit this project on tomorrow.

1-40 of 150Next »