

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 various lighting and display applications.








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 (Max) | 20mA per color channel |
| Power Dissipation | 60mW per color channel |
| Viewing Angle | 120° |
| Operating Temperature | -30°C to +85°C |
The RGB LED typically has four pins: one common pin and three pins for the red, green, and blue channels. The common pin can be either an anode (common anode type) or a cathode (common cathode type).
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | Red | Controls the red LED channel |
| 2 | Common Anode/Cathode | Shared pin for all channels (anode or cathode) |
| 3 | Green | Controls the green LED channel |
| 4 | Blue | Controls the blue LED channel |
Note: Verify the pin configuration in the datasheet for your specific RGB LED model, as it may vary.
Below is an example of how to connect and control an RGB LED using an Arduino UNO:
// Define pins for RGB LED
const int redPin = 9; // Red channel connected to pin D9
const int greenPin = 10; // Green channel connected to pin D10
const int bluePin = 11; // Blue channel connected to pin D11
void setup() {
// Set RGB pins as output
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
}
void loop() {
// Example: Cycle through red, green, and blue colors
setColor(255, 0, 0); // Red
delay(1000); // Wait 1 second
setColor(0, 255, 0); // Green
delay(1000); // Wait 1 second
setColor(0, 0, 255); // Blue
delay(1000); // Wait 1 second
}
// 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)
}
The LED Does Not Light Up:
One or More Colors Are Not Working:
The LED Is Too Dim:
The LED Flickers:
Q: Can I connect the RGB LED directly to a power source without resistors?
A: No, doing so may result in excessive current flow, damaging the LED. Always use current-limiting resistors.
Q: How do I create custom colors with an RGB LED?
A: By adjusting the intensity of the red, green, and blue channels using PWM, you can mix colors to create a wide range of hues.
Q: Can I use an RGB LED with a 3.3V microcontroller?
A: Yes, but ensure the forward voltage of each channel is compatible with the 3.3V supply, and adjust resistor values accordingly.
Q: What is the difference between common anode and common cathode RGB LEDs?
A: In a common anode RGB LED, the common pin is connected to the positive voltage supply, while in a common cathode RGB LED, the common pin is connected to ground.
By following this documentation, you can effectively integrate the Nichia RGB LED into your projects and achieve stunning lighting effects.