Creative Commons License
arduino led cube

Hello there! recently, i was looking forward to change the decoration and theme of my desk, i wanted to add personal touch to my desk, which matched my channel theme too( which happens to be Electronics 😉 ) Luckily i had lots of LEDs laying around from a previous project, Hence I decided to build a Mesmerizing LED CUBE using an Arduino Nano, so in this instructable, we will learn how to Make this arduino LED Cube in simple steps!

Supplies for arduino led cube:

1. Electronics

2. Tools

  • Soldering iron.
  • and Soldering wire.
  • Soldering flux.(OPTIONAL).
  • Scissors.
  • Screw driver.
  • Ruler scale.
  • Hot Glue Gun (OPTIONAL)
  • 3D printer (OPTIONAL)
  • PCB Etcher (OPTIONAL)

3. Misc

  • Cardboard.
  • pencil.
  • eraser.

Step 1: Watch the Video! ( Arduino led cube)

Step 2: Check All the Leds

Before we start making our LED cube and solder everything, it’s a good idea to test the LEDs, our LEDs operate at 3.3V, 20mA, we could easily test them using any 3.3v battery, in my case, i used a Lithium-Ion battery to test the LEDs.


  • the Longer lead is Positive and shorter one is Negative
  • DON’T! reverse bias LED, you might damage it.
  • DON’T use 5V power supply to test LED.

Step 3: Prepare Template for arduino led cube

Once we are done with testing the led’s, we need to prepare a template on which the LED’s can easily be soldered on and they retain uniformity, we can either use Cardboard, acrylic or directly 3D print the design of the template on a 3D printer, with the designs attached in this step! but unfortunately, we don’t own a 3D printer, so we used a piece of cardboard to complete this step.

we took a 70 mm by 70 mm cardboard sheet. Since we are making a 4 x 4 x 4 LED cube, we will need 16 LEDs in a layer, so we will keep a separation distance of 15 mm between each LED, and complete the square.

you can directly take a printout of the template, and stick it on cardboard to use it for reference to plot holes ( please save paper don’t be so lazy to draw few line 😛 )

Our LED is 3mm in diameter, so I will use a normal Philips head screwdriver which measures around 3mm in diameter to draw holes in this template, you can use a pencil or any pointed object to draw holes in this cardboard.


  • use Thick material of cardboard
  • and use 3D printed Template if possible.
  • use drill-bit for accurate holes.
  • don’t apply too much pressure while using screwdriver for holes.

Step 4: Fold the LEDs ( MOST IMPORTANT!)

this is the most IMPORTANT step of this entire build! so carefully follow the instructions in this step!

  1. hold the LED with Positive lead that is the LONG lead on the left and short lead on the right side.
  2. Carefully fold the shorter lead toward you.
  3. Identify the Notch
  4. fold the longer lead towards left from the notch.
  5. adjust the Angle of leads, when viewed from top, it should make a 90 degree angle Once this is done,
  6. repeat for all 64 L.E.D’s.

Step 5: Place the LED’s on the Template

take the template that we made in Step3 and place the L.E.D.’s that we folded in Step4place them in template, with negative lead facing towards right and positive lead facing downwards, as show in picture.

this arrangement of 16 L.E.D’s on this template is called one Column Layer. place the entire column and prepare it for soldering.

Step 6: Solder LED Column Layer (For arduino led cube)

if you are not very confident about soldering, check out this instructables in which i cover the basics to soldering.

now that you are geared to solder, follow these steps to solder column layer.

  • take the template from the last step.
  • start soldering with Negative leads.
  • complete one row at time.
  • solder the positive leads.
  • remove the Column from Template.
  • Repeat this process for rest 3 Column Layers


  • use Flux for perfect solder joints.
  • DON’T heat lead for more than 5 Seconds, you might damage the L.E.D.
  • check for Dry Solder joints.

Step 7: Connect Columns Together

we made 4 individual column layers in last step, now its time to connect all the 4 column layers and complete this LED cube.

follow these steps to complete the LED Cube.

  • place the template flat on your workbench.
  • insert the positive lead pins from Column layer which we made in last step inside the Template.
  • fold the negative leads of each layer towards you, with cube facing you.
  • solder the negative layer pins.
  • collect Leftover metal leads from other components or projects (if you don’t have any, cut the leads of extra LEDS ).
  • solder the Metal Leads to same layers, ensuring strength and proper power distribution.


  • DON’T short two layer’s negative pins (i.e Layer1 should not be shorted with Layer 2,3 or 4)
  • make sure each positive Layer is connected with each layer.
  • Add leads to Columns to add strength, but don’t short negative of one layer with other while adding leads.

why this configuration?

the way this LED cube works is that we will command the positive of the required position along with required layer, to switch ON that LED, for example, if i want to switch ON the LED at position (1,1,1), i will connect the positive of power supply to (1,1) and then i will ground the layer 1. so basically our circuit will activate 4 grounds and 16 Positive leads to create animations on LED cube. so we need to make a common ground from individual layers and common 16 Positive pins.

arduino led cube

Step 8: Solder the PCB

this is quite a complicated circuit, if you are beginner, i would strongly recommend you to download the Gerber files and simply order the PCB from any PCB service and if you are experienced, or would like to try making this circuit on a General purpose board, follow these steps.


  1. place the Arduino Nano with Female Headers on the pcb board.
  2. solder Female Headers on pcb board.
  3. and solder LED cube on PCB.
  4. solder 4- 100Ω resistors at A3,A2,A1,A0 (i.e. Layer Pins).
  5. and solder Column pins to cordinate locations using wire (1,1)-D13 (1,2)-D12 (1,3)-D11 (1,4)-D10 (2,1)-D9 (2,2)-D8 (2,3)-D7 (2,4)-D6 (3,1)-D5 (3-2)-D4 (3-3)-D3 (3,4)-D2 (4,1)-D0 (4,2)-D1 (4,3)-A4 (4,4)-A5, as shown in picture above.
  6. solder each layer pins to A3,A2,A1,A0 via Resistors using wire.


  • use solder flux.
  • and use solder fume extractor as exposing to solder fumes for long time is harmful.
  • use flux for better solder joints.
  • take your time and avoid short circuits.
  • once you solder female headers on pcb, remove arduino and then perform soldering of remaining paths.

Step 9: Upload the CODE

for arduino code, i modified the code from this post which was posted by forte1994, it was originally written on processing IDE software, which i converted and edited to make it work for my project, according to the pin-outs used for PCB design.

code is fairly simple, where in we create animation using binary data streams which forms patterns and we simply push that data on column and layer pins, i have provided proper commenting in required allocations, just in-case if you want to modify the code, if you like to understand the code, please download it and read it! also suggest any changes that might help optimize the code and make a better animation!

arduino led cube

Step 10: Prepare the Enclosure

this is such a beautiful application, but this floating circuit deserves a Mesmerizing Box Enclosure too right? so i designed a box enclosure on the Autodesk’s Fusion 360 CAD software which was build keeping in mind the P.C.B. dimension and other all other factors, you can download the 3D files of this enclosure box attached in this step or click here for grabcad link. i made this enclosure a 2 element box so that we can easily remove the circuit and fix any problems with arduino or circuit over time.

i made this enclosure design, but i don’t have a 3D printer so i will settle down with a Cardboard replica of this same enclosure, with same dimensions, i have attached the 3D files, if you wish to make same enclosure with same dimensions, download the file and cut cardboard pieces according to the cad design and use a bit of hot glue to hold the pieces together, and we are good to go!


  • Be Careful while cutting the Cardboard.
  • don’t be ashame to ask for help from your parents if you are not comfortable handling scissors or blade.
  • try to be Careful with Hot Glue gun, you might accidentally hot glue yourself
arduino led cube

Step 11: And Enjoy the Colorful Animation!

now we have completed all the steps and successfully built a LED Cube using Arduino Micro-Controller!

so now after this energetic build, its time to sit back and enjoy the mesmerizing result of our hard work!

Step 12: Connect With Us on Social Handles!

so say hello to us or tag us if you make similar project, we would love to hear any suggestions/ idea too!


arduino led cube

Write A Comment


A Market Place for your Innovations