

The RGB LED, manufactured by Nichia (Part ID: RGB LED), is a versatile light-emitting diode capable of emitting red, green, and blue light. By adjusting the intensity of these three primary colors, the RGB LED can produce a wide spectrum of colors, making it an essential component in modern lighting and display technologies.








Below are the key technical details for the Nichia RGB LED:
| Parameter | Value |
|---|---|
| Manufacturer | Nichia |
| Part ID | RGB LED |
| Forward Voltage (Red) | 2.0V - 2.4V |
| Forward Voltage (Green) | 3.0V - 3.4V |
| Forward Voltage (Blue) | 3.0V - 3.4V |
| Forward Current (typical) | 20mA per color channel |
| Maximum Current | 30mA per color channel |
| Wavelength (Red) | 620nm - 630nm |
| Wavelength (Green) | 515nm - 530nm |
| Wavelength (Blue) | 460nm - 475nm |
| Operating Temperature | -30°C to +85°C |
| Package Type | 4-pin or 6-pin (common cathode or anode) |
The RGB LED typically comes in a 4-pin configuration (common cathode or common anode). Below is the pinout description:
| Pin | Description |
|---|---|
| Pin 1 | Red LED Anode (R+) |
| Pin 2 | Common Cathode (or Anode) |
| Pin 3 | Green LED Anode (G+) |
| Pin 4 | Blue LED Anode (B+) |
Note: Ensure you verify whether your RGB LED is common cathode or common anode before connecting it to a circuit.
Below is an example of how to control an RGB LED using an Arduino UNO:
// Define RGB LED pins
const int redPin = 9; // Red LED connected to PWM pin 9
const int greenPin = 10; // Green LED connected to PWM pin 10
const int bluePin = 11; // Blue LED connected to PWM pin 11
void setup() {
// Set RGB pins as output
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
}
void loop() {
// Example: Cycle through colors
setColor(255, 0, 0); // Red
delay(1000);
setColor(0, 255, 0); // Green
delay(1000);
setColor(0, 0, 255); // Blue
delay(1000);
setColor(255, 255, 0); // Yellow
delay(1000);
setColor(0, 255, 255); // Cyan
delay(1000);
setColor(255, 0, 255); // Magenta
delay(1000);
setColor(255, 255, 255); // White
delay(1000);
}
// Function to set RGB LED color
void setColor(int redValue, int greenValue, int blueValue) {
analogWrite(redPin, redValue); // Set red intensity (0-255)
analogWrite(greenPin, greenValue); // Set green intensity (0-255)
analogWrite(bluePin, blueValue); // Set blue intensity (0-255)
}
LED Not Lighting Up
Incorrect Colors Displayed
LED Flickering
Overheating
Q: Can I use the RGB LED without a microcontroller?
A: Yes, you can use switches or potentiometers to manually control the color channels, but a microcontroller provides more precise control.
Q: How do I create custom colors?
A: Adjust the intensity of each color channel (Red, Green, Blue) using PWM signals to mix colors.
Q: What is the difference between common cathode and common anode RGB LEDs?
A: In a common cathode LED, all cathodes are connected to ground, while in a common anode LED, all anodes are connected to the positive voltage.
By following this documentation, you can effectively integrate the Nichia RGB LED into your projects and achieve stunning lighting effects!