Skip to content

04_RGB_Matrix

GitHub Actions edited this page Jun 1, 2026 · 3 revisions

04 RGB Matrix

Development Board

Development Board

Overview

The Addressable RGB LEDs matrix included in your UNIT DevLab: Multi Hub Shield features 25 addressable LEDs, perfect for creating visual effects, animations, and various other applications. These are RGB LEDs that can be individually controlled via serial communication in a daisy-chain configuration, simplifying the wiring and control of multiple units.

Key Technical Specifications

Parameter Description Min Max Unit
$V_{DD}$ Operation Voltage 3.3 5.5 V
$V_{IN}$ Input Logic Voltage -0.5 - $V_{DD}$ + 0.5 V

Pinout

RGB matrix pinout

RGB matrix pinout


Features

  • 25 Addressable LEDs: Features a 5x5 matrix of 25 smart LEDs, each with a unique address. This allows for independent software control of brightness and color for every individual LED.

  • Single-Pin Control (Data Bus): Utilizing the serial protocol powered by Addressable RGB LEDs technology, the entire matrix can be controlled using just one digital pin on the microcontroller, optimizing hardware resource usage.

  • 24-Bit RGB Color Gamut: Each LED can produce up to 16.7 million colors by mixing its three internal channels (Red, Green, and Blue), each offering 256 levels of intensity.

  • Daisy-Chain Architecture: The design allows the data signal to flow sequentially from one LED to the next, making it easy to create visual effects, animations, or scrolling text.

Use Examples

Connections

The image illustrates the required connections, which only need a single digital pin acting as a user-configurable digital output, and its nedeed to be connected in the last connector with the label of Addressable RGB LEDs in your shield, because is the pin with assign of the data in pin for work with the Addressable RGB LEDs matrix.

Pin Connections

Pin Connections

Example Code

Load the example code in your board .

/** @file Addressable RGB LEDss.ino
* @brief UNIT Devlab Multi Hub Shield – Modulo Addressable RGB LEDs
*
* Este modulo implementa el uso basico de pines digitales
* para el uso y funcionamiento de la matriz Addressable RGB LEDs de tu
* Multi Hub Shield con animaciones predefinidas en la biblioteca animations
*
*
* @author UNIT Electronics
*
*
*/
#include "animations.h"


#define DELAYVAL   50
void setup() {
    setupAnimSetting(pixels);
}


void loop() {

    delay(500);
    //colorWipe(pixels, pixels.Color(255, 0, 0), DELAYVAL );
    //confetti(pixels,30);
    //theaterChase(pixels,pixels.Color(127,127,127),DELAYVAL);
    quetzalcoatlEffect(pixels,60);
    delay(500);
    pixels.clear();
    pixels.show();
    delay(1000);
}

Clone this wiki locally