Pandabyte RGB LED Module: Digital and Analog Output Guide
by pandabyte in Circuits > Arduino
21 Views, 0 Favorites, 0 Comments
Pandabyte RGB LED Module: Digital and Analog Output Guide
Pandabyte RGB LED Module is a simple actuator module used for learning digital and analog output control with microcontrollers such as Arduino compatible boards, ESP32, or Raspberry Pi Pico.
The module contains a single Red, Green, and Blue (RGB) LED that can be controlled individually to generate different colors and lighting effects.
A key feature of this module is that it supports two connection methods:
- Traditional 4-pin header for standard jumper-wire connections
- OR
- 4-pin Grove connector for quick plug-and-play prototyping
Important:
- The Grove connector supports only:
- RED color
- GREEN color
- The BLUE color is not available through the Grove connector.
- To use all three colors (RGB), use the male header pins with Dupont cables.
In this guide, you will learn:
- Module pin configuration
- Digital output control
- PWM brightness control
- RGB color mixing
- Circuit connections and Arduino programming examples
Supplies
Hardware:
- PandaByte RGB LED Module
- Development Board (We will use PandaByte xC3m ESP32C3 Dev board)
- Grove Shield/Expansion Board
- Cables: Dupont, USB, and Grove
Software:
- Arduino IDE
Circuit Connections
Do the connection as per the table:
Note:
- Blue LED control is not available through Grove connector.
- Use male headers and Dupont cables for full RGB functionality.
Programming
Program 1: Turn ON Red, Green, and Blue LEDs one by one using digital output.
Program 2: RGB Color Mixing Using PWM Generate multiple colors using PWM brightness control.
Program 3: Smooth Color Fade Effect Generate smooth RGB fading effects using PWM.
Output
Program 1: Digital Output Control
- The RGB LED will switch between:
- RED
- GREEN
- BLUE
using simple ON/OFF digital control.
Program 2: RGB Color Mixing Using PWM
- The RGB LED will generate multiple mixed colors including:
- RED
- GREEN
- BLUE
- YELLOW
- CYAN
- MAGENTA
- WHITE
using PWM brightness control.
Program 3: Smooth Color Fade Effect
- The RGB LED brightness will gradually increase for:
- RED
- GREEN
- BLUE
creating smooth fading transitions.
Important Info
- PWM-capable GPIO pins are required for analog brightness control (Program 2 and 3).
- Digital output can be used for simple ON/OFF color control.
- The Grove connector supports only:
- RED
- GREEN
- The BLUE channel is unavailable through the Grove connector.
- For complete RGB functionality, use the male header pins with Dupont cables.
- Different color combinations can be generated by adjusting PWM duty cycles.