Stufin
Home Quick Cart Profile

5V RGB led node module

Buy Now

Operating Voltage

5V 0.5V

Operating Current

20mA (typical)

RGB LED Luminous Intensity

1000mcd (typical)

Driver IC

Dedicated constant current output driver

Control Interface

3 digital input pins (R, G, and B)

Dimension

15mm x 10mm

Package

SMT

Operating Temperature

-20C to +85C

Storage Temperature

-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.

Pin Configuration

  • 5V RGB LED Node Module Documentation
  • Pin Description
  • The 5V RGB LED Node Module is a compact module designed to control RGB LEDs in IoT applications. It has a total of 6 pins, each with a specific function. Here's a detailed explanation of each pin:
  • 1. VCC (5V Power Input)
  • Function: Provides power to the module
  • Type: Power Input
  • Voltage: 5V ( Maximum Rating)
  • Description: Connect this pin to a 5V power source to power the module.
  • 2. GND (Ground)
  • Function: Ground connection for the module
  • Type: Ground
  • Description: Connect this pin to the ground of your circuit or power source.
  • 3. SDA (Serial Data)
  • Function: Serial data input for I2C communication
  • Type: Digital Input
  • Description: Connect this pin to the SDA pin of your microcontroller or I2C master device.
  • 4. SCL (Serial Clock)
  • Function: Serial clock input for I2C communication
  • Type: Digital Input
  • Description: Connect this pin to the SCL pin of your microcontroller or I2C master device.
  • 5. R (Red LED Control)
  • Function: Controls the red LED
  • Type: Digital Output
  • Description: Connect this pin to a digital output of your microcontroller to control the red LED.
  • 6. G+B (Green and Blue LED Control)
  • Function: Controls the green and blue LEDs
  • Type: Digital Output
  • Description: Connect this pin to a digital output of your microcontroller to control the green and blue LEDs.
  • Connection Structure
  • To connect the 5V RGB LED Node Module to your microcontroller or I2C master device, follow this structure:
  • VCC (5V) 5V Power Source
  • GND Ground
  • SDA SDA (Microcontroller or I2C Master)
  • SCL SCL (Microcontroller or I2C Master)
  • R Digital Output (Microcontroller)
  • G+B Digital Output (Microcontroller)
  • Note:
  • Make sure to use a level shifter or voltage divider if your microcontroller operates at a voltage other than 5V.
  • Use a suitable current-limiting resistor when connecting the RGB LEDs to the module.
  • The module may have internal pull-up resistors for the I2C bus, so ensure your microcontroller or I2C master device is compatible with this configuration.
  • By following this documentation, you should be able to successfully connect and control the 5V RGB LED Node Module in your IoT projects.

Code Examples

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.