Skip to content

An interactive 4x4x4 LED Cube project with PCB design, code, debugging logs, and lessons learned, documenting my journey and future improvements.

Notifications You must be signed in to change notification settings

alphaseneca/4-4-4_led_cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

4x4x4 LED Cube Project

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.

LED Cube

Project Overview

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.

Repository Structure

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

How to Use the Code

  1. Open the PlatformIO IDE and in the Home tab , select Open Project option then load the 4-4-4_led_cube_code/ folder.
  2. Select the main.cpp file in the location 4-4-4_led_cube_code/src/ and build it.
  3. Connect the microcontroller to the computer using a USB cable.
  4. Upload the code and enjoy the light patterns!

The Journey So Far

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.


Debugging Log

  • 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.
  • Issue 2: The light was strobing a lot.

    • Solution: Removed the code that was strobing the leds.

Future Improvements

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

References


About

An interactive 4x4x4 LED Cube project with PCB design, code, debugging logs, and lessons learned, documenting my journey and future improvements.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages