This repository documents my journey of building a 4x4x4 LED Cube, including the code, PCB designs, mistakes I made, lessons learned and resources I found along the way. The goal is to use this repository as a learning journal and a reference for others. This project continues to evolve as I improve the design and explore new features.
The 4x4x4 LED Cube consists of 64 LEDs arranged in a 3D matrix, controlled using a microcontroller (Arduino in this case). The goal was to create various light patterns by programming the cube and experimenting with animations.
images/
: Photos of the build progress and final results.4-4-4_led_cube_code/
: Contains the code for programming the LED cube.4-4-4_led_cube_pcb/
: Documentation for all PCB versions.v1.0/
: First version of the PCB, including Gerber files and 3D renderings.v2.0/
: Placeholder for future PCB improvements.changelog.md
: Summarizes changes across PCB iterations.
debugging/
: Notes on issues encountered and how I solved them.
- Open the PlatformIO IDE and in the Home tab , select Open Project option then load the
4-4-4_led_cube_code/
folder. - Select the
main.cpp
file in the location4-4-4_led_cube_code/src/
and build it. - Connect the microcontroller to the computer using a USB cable.
- Upload the code and enjoy the light patterns!
After seeing a lot of videos on led cube and having the interest to make the room a bit colourful with my own creations, I decided to build a 4x4x4 LED Cube.
Firstly, I gathered the materials and then startred working on the cube itself. The first thing I did was made a frame that could hold the led array so that they will be in the same location. Then started soldering the leds after bending their leads. The next step was to add the array to the frame. And after that the cube was done and after the wiring the 4x4x4 cube was ready.
Creating the PCB for this project was an experience in itself. After completing the cube design, I started working on the PCB. I started with the first version of the PCB with the same design as the original prototype design just to make the wiring more neat and the cube more useable.
This is just the beginning! I plan to continue refining the design, adding new features, and maybe even explore wireless control to unlock more creative possibilities.
-
Issue 1: The
Arduino Nano
did not accepted the code.- Solution: Tried uploading via ICSP header and failed but found out recently that the bootloader selection was wrong and should have been set to
Old Bootloader
.
- Solution: Tried uploading via ICSP header and failed but found out recently that the bootloader selection was wrong and should have been set to
-
Issue 2: The light was strobing a lot.
- Solution: Removed the code that was strobing the leds.
- Housing: Develop an improved housing for the cube.
- Battery: Add a battery to the cube to be able to use it without power supply.
- Add control via webserver: Add a webserver to control the cube from a web browser.
- Improved Power Management: Add decoupling capacitors and better trace design.
- More Advanced Patterns: Develop smoother animations and light effects.