8x8x8 LED Cube Using Arduino

by DominikElectric in Circuits > Arduino

9375 Views, 52 Favorites, 0 Comments

8x8x8 LED Cube Using Arduino

IMG_20220413_175342-01.jpeg
received_3274881066130927-01.jpeg

I made a 8x8x8 LED cube by myself with using Arduino. It was a big project, it took almost a month to finish it, but it worth every time. The cube has 8 types of flash and you can switch between the modes with a button.

Supplies

1000-Pieces-5mm-Round-LED-Light-Emitting-Diodes-Component-Red-Green-Yellow-White-Blue-LED-Bulb.jpg
Arduino_Uno_-_R3.jpg
pcb5x7.jpg
Hbe3bb0b53a43433c8587eb89467511b3o.jpg
ellenallas-20r-20db-2w-femfoliaellenallas-ellenallasa-1-1r-22m-47r-10r-22r-47r-100r-220r-560r-1k-10k-100k-22-10-22.jpg
b86fd2bf-1138-47ff-aa35-62bdb5790a2d.8e6e3fabbaacc9423803f23ebd2611a6.jpeg
received_224074179712952.jpeg
received_4533138643396502.jpeg
received_278213117493306.jpeg

Components:

  • 512x 5mm LEDs (8x8x8, green, red or blue)
  • 1x large prototyping board (100x100 is enough)
  • 64x resistors (220 Ohm)
  • 9x 74HC595 ICs
  • 9x 16 pin IC sockets
  • 16x PN2222 transistors
  • 1x pushbuttons
  • Arduino Uno
  • A lot of wires
  • Piece of wood for template and base
  • 5v power supply (Personally I used a power bank)

Tools:

  • Solder
  • Soldering Iron
  • Helping Hands
  • Wire cutter
  • Paint (for the box)
  • Fan (for fresh air due soldering)

Test All LEDs

LED test.JPG
LED test2.JPG
100pcs-diffused-5MM-Green-LED-light-emitting-diode-5mm-green-515-520NM-LED-Round-Free-shipping.jpg_Q90.jpg_.jpg

The first step is to test all the 512 LEDs. This step is very important because once you started soldering the LEDs, it will be difficult to remove them.

Using TinkerCAD I attached 2 pictures how you can test the LEDs.

How to Build the Layers

IMG_20220925_160727.jpg
layers.JPG
layers2.JPG

Next step is to create the layers. Each layer is made up of 8×8 LED. Build the layers correctly, draw a net like in the picture (2,5cm between the holes) and take a piece of wood and make holes based on the drawing. Place the LEDs and start soldering all the cathodes together (bend the legs of the cathodes into the next LED). You need to repeat this movement 8 times then you will have 8 piece 8x8 layer.

How to Make Straight Wire

Képkivágás.JPG

Make your LED cube nicer and more stable you need to solder wires into the net, but the wires are not straight when you order it from a shop so you need to straighten it. I attached a picture how you can straighten the wires with using a drill.

How to Build Up the Vertical Layers

IMG_20220925_160304.jpg
IMG_20220925_164039.jpg

When you have all the 8 layers and the straight wires you need to put them together so after that it could be look like a cube. But to reach that result you need a lot of time and patient because this process is time-consuming. You can't really spoil it because the LED cathode legs are already soldered. You need to solder the LED anode legs to a column and repeat it 64x times. The finished structure with 8 layers, will look something like on the picture.

How to Start the Controller

IMG_20220108_182837.jpg
IMG_20220108_182851.jpg

Start by placing the sockets next to each like on the pictures and leave enough place to solder and place wires.

Allocate a common GND and VCC line that will connect to each socket. The black wires are for the common GND line, VCC are the red ones.

Circuit Schematic

kapcs rajz.JPG

I made a circuit schematic for the controller. I made it in TinkerCAD so its very clear and the program has every component that I need. I also marked the wires in different colours so its more easier and convenient to navigate through it.

A small tip from me, start wiring with the GND and with the VCC and use only black and red colours for that.

How to Connect the Controller and the Cube

IMG_20220213_180543.jpg
IMG_20220213_180611.jpg
Snapchat-694951075.jpg
IMG_20220212_140055.jpg

When you are ready with the soldering you can attach the wires to the controller like on the pictures. If it's done you can connect the controller and the cube with each other.

How to Make/Find the Box

received_3274881066130927-01.jpeg

It doesn't really matter what box is this. Personally I used a large keyholder cabinet. I sprayed it with black paint and it's done. As I mentioned I drill the holes like on the sketch in Step 2.

Programming

arduino_logo.png
What-is-arduino-software-IDE-and-how-use-it.png

For programming I used the original Arduino IDE which is not the easiest programming language because it is used C++ and you need to know how to use the programming with C++.

Code

image-asset.png

I made a code for the cube and I attached it but just you have to know there are many codes available in the internet what you can use, and they are different so you can choose from a lot of variations.

Conclusion

IMG_20220413_175355-01.jpeg
received_1210221336408522-01.jpeg

Overall, I am very satisfied with the result. As soon as I finished, it worked well for the first time, I didn't have to fix anything not even the code.

If you have any questions from the project please leave them in the comments below.

By Dominik Bozso