- Arduino and ESP32 Compatible Suitable for microcontroller-controlled lighting projects.
- Compact PCB Black circuit board with two mounting holes for convenient installation.
Technical Specifications
Applications
1. Arduino RGB Lighting Projects
Create colour-changing LEDs using an Arduino microcontroller. The red, green and blue channels can be controlled separately to produce different colours.
DIYGH stocks the Arduino Uno R3 Board with USB Cable for learning electronics, programming and circuit development.
2. Colour Mixing Experiments
Demonstrate how red, green and blue light combine to create additional colours.
This is particularly useful for STEM lessons on additive colour mixing, LED operation and Pulse Width Modulation (PWM).
3. Electronic Status Indicators
Use different colours to indicate the operating state of an electronic system.
For example:
- Green – Normal operation
- Red – Error or warning
- Blue – System activity
- Yellow – Waiting or standby
4. Robotics Projects
Add programmable lighting to robots, model vehicles and automated systems to display operating modes or provide visual feedback.
5. Decorative Lighting
Create simple colour-changing lighting effects for miniature models, display panels, electronics enclosures and other low-power projects.
6. ESP32 and IoT Projects
Integrate colour indicators into smart home prototypes, IoT controllers and connected electronics systems.
How the RGB LED Module 5mm Works
The module contains three individual LEDs in one transparent package.
Each LED produces a different primary colour:
- R (Red) Controls the red light.
- G (Green) Controls the green light.
- B (Blue) Controls the blue light.
- GND Common ground connection.
By switching the individual channels ON or OFF, the module can display different colour combinations.
For more precise colour control, a microcontroller uses PWM to vary the brightness of each channel.
The appearance of mixed colours depends on the relative brightness of each LED channel.
RGB LED Module Pin Connections
Follow the labels printed on the module when making connections.
Connecting the RGB LED Module to Arduino Uno
A simple PWM-controlled lighting project can use the following connections:
Use suitable current-limiting resistance for each LED channel. For initial 5V experiments, 220Ω to 330Ω external resistors per channel provide a conservative starting point.
DIYGH stocks 1/4W Carbon Film Resistors in selectable resistance values.
For easy prototyping, connect the module using Male-to-Female Jumper Wires and a Solderless Breadboard MB-102 830-Hole.
Important Usage Information
- Connect the common GND pin to the controller’s ground.
- Use suitable current-limiting resistance to protect the LED channels.
- Do not connect the module directly across a high-voltage power supply.
- Observe the output-current limits of the controlling microcontroller.
- Use PWM-capable pins when adjustable brightness and smooth colour transitions are required.
- The module is intended for visual indication and decorative effects, not high-power lighting.
- Check the RGB pin markings before wiring.
Package Includes
- 1 x RGB LED Module 5mm 4-Pin (Full Colour)
Arduino board, jumper wires and additional resistors are not included.
Available from DIYGH Tech Hub, Apatrapa Junction, Kumasi, Ghana , for Arduino projects, robotics, electronic indicators, lighting experiments and STEM education.