Introduction: Arduino Color Tracking LED Matrix | ChromaMatrix AI

About: Bringing Fiction to Reality.

ChromaMatrix AI is an engaging web application that uses artificial intelligence to interpret images (colors) from a webcam and controls an LED matrix via Bluetooth based on the video feed analysis. This interactive project combines web development, machine learning, and hardware integration to create a dynamic visual experience.

Difficulty Level: ⭐⭐⭐

Follow us on Instagram for more projects: www.instagram.com/random_stuff_we_make

Supplies

All the material mentioned here is easily available in your local market as well as online stores.

  1. Cardboard Sheet
  2. Masking Tape
  3. Bluetooth Enabled Controller Board (ESP32 or Arduino Nano 33 BLE sense)
  4. WS2812b Addressable LED Strip
  5. 18 AWG Hookup Wire
  6. Jumper Cables
  7. Female DC Power Jack
  8. DC adapter 5 volt 10A (Optimal current required for full white is 9A)
  9. Webcam (If using PC)

Step 1: Designing the LED Matrix

  1. First, you need to cut your cardboard sheet in the size of 12 x 12 inches. Then you need to mark 10 points/holes on your cardboard with a pen/pencil/marker on top & bottom points to make guide markers for LED strip & holes for the wires. You can place the LED strip on cardboard & mark on 1st LED & 15th LED (image 3).
  2. The Next step is to cut the LED Strip in 10 pieces. Each piece should be 15 Pixels/LEDs long.
  3. Then stick the pieces on the cardboard with some adhesive glue. (Refer to the image 4).
  4. Refer to the connections from the circuit (Image 6).
  5. Connect GND/0V of each LED strip piece.
  6. Connect VCC/+5V of each LED strip piece.
  7. Connect Data Out of 15th LED in each strip piece to the Data In of 1st LED in the next strip.
  8. Connect two wires for each Positive & Negative Connection & one wire for Data In of 1st LED of 1st strip.
  9. At last, connect a Female DC jack to one pair of Positive & Negative wires for power injection.
  10. General Precautionary Measures(Optional):
  11. Stick the masking tape on the backside of the cardboard to secure the connection wires. (Image 3).
  12. Use a plastic tie to secure the input wires (Image 4).
  13. Note: Double-check the connections before powering up the device.
  14. Correction: The LED strip in the circuit image is 10 LED long, Please Consider it to be 15 LED long. Thanks for your cooperation.

Step 2: Arduino Code

  1. Upload this code to ESP32 using Arduino IDE.
  2. Make connections according to the code.

Github Repo Link : https://github.com/randomstuffwemake/ColorTrackingLEDMatrix/


NOTE: This project utilizes Google Teachable Machine for AI Model. You can also create your model and use the same with this project. However you need to make minor changes in the JS file.

Step 3: Working

  1. Open this webpage: ChromaMatrixAI
  2. Connect your device.
  3. Have fun with the project.


If you like this project and want to learn more please subscribe us on youtube & follow us on Instagram : www.instagram.com/random_stuff_we_make

Colors of the Rainbow Contest

This is an entry in the
Colors of the Rainbow Contest