5V 0.5V
5V 0.5V
20mA (typical)
1000mcd (typical)
Dedicated constant current output driver
3 digital input pins (R, G, and B)
15mm x 10mm
SMT
-20C to +85C
-40C to +125C
Applications
IoT and embedded systems
Smart lighting systems
Wearables and fashion electronics
Robotics and automation
Advertising and signage displays
Notes
The module is not designed to be used as a standalone device and requires an external power source and control interface.
The module is sensitive to electrostatic discharge (ESD) and should be handled with care.
The module should be operated within the specified temperature range to ensure reliable operation.
5V RGB LED Node Module Documentation
Overview
The 5V RGB LED node module is a compact, easy-to-use module that allows users to control RGB LEDs with a microcontroller or other digital devices. The module features three integrated 5V RGB LEDs, each with a separate anode and cathode, allowing for individual control of each color.
Technical Specifications
Operating Voltage: 5V
RGB LED Type: 5mm Through-Hole
LED Color: Red, Green, Blue
LED Brightness: Adjustable
Interface: Digital (3-pin for each LED)
Dimension: 20mm x 15mm x 5mm
Pinout
The module has three 3-pin connectors, each corresponding to one of the RGB LEDs. The pinout for each connector is as follows:
| Pin | Function |
| --- | --- |
| 1 | LED Anode (VCC) |
| 2 | LED Cathode (GND) |
| 3 | Digital Control Signal (0-5V) |
Code Examples
### Example 1: Controlling RGB LED with Arduino
In this example, we will demonstrate how to control the 5V RGB LED node module using an Arduino Uno board.
```c++
const int redPin = 9; // Pin for Red LED
const int greenPin = 10; // Pin for Green LED
const int bluePin = 11; // Pin for Blue LED
void setup() {
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
}
void loop() {
// Set RGB LED to Red
digitalWrite(redPin, HIGH);
digitalWrite(greenPin, LOW);
digitalWrite(bluePin, LOW);
delay(1000);
// Set RGB LED to Green
digitalWrite(redPin, LOW);
digitalWrite(greenPin, HIGH);
digitalWrite(bluePin, LOW);
delay(1000);
// Set RGB LED to Blue
digitalWrite(redPin, LOW);
digitalWrite(greenPin, LOW);
digitalWrite(bluePin, HIGH);
delay(1000);
}
```
### Example 2: Controlling RGB LED with Raspberry Pi (Python)
In this example, we will demonstrate how to control the 5V RGB LED node module using a Raspberry Pi and Python.
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO mode
GPIO.setmode(GPIO.BCM)
# Define GPIO pins for RGB LEDs
redPin = 17
greenPin = 23
bluePin = 24
# Set up GPIO pins as outputs
GPIO.setup(redPin, GPIO.OUT)
GPIO.setup(greenPin, GPIO.OUT)
GPIO.setup(bluePin, GPIO.OUT)
try:
while True:
# Set RGB LED to Red
GPIO.output(redPin, GPIO.HIGH)
GPIO.output(greenPin, GPIO.LOW)
GPIO.output(bluePin, GPIO.LOW)
time.sleep(1)
# Set RGB LED to Green
GPIO.output(redPin, GPIO.LOW)
GPIO.output(greenPin, GPIO.HIGH)
GPIO.output(bluePin, GPIO.LOW)
time.sleep(1)
# Set RGB LED to Blue
GPIO.output(redPin, GPIO.LOW)
GPIO.output(greenPin, GPIO.LOW)
GPIO.output(bluePin, GPIO.HIGH)
time.sleep(1)
except KeyboardInterrupt:
GPIO.cleanup()
```
Note: In both examples, ensure that the digital control signals are connected to the corresponding GPIO pins on the microcontroller or Raspberry Pi. Additionally, make sure to use a 5V power source and a suitable current-limiting resistor for the LEDs.