RGB Light Led Model
RGB Light Led Model
Materials Needed:
Microcontroller
(e.g.,Arduino):
Breadboard:
int r_led= 9;
int g_led = 10;
int b_led = 11;
void setup() {
pinMode(r_led, OUTPUT);
pinMode(g_led, OUTPUT);
pinMode(b_led, OUTPUT);
}
void loop() {
delay(1000);
delay(1000);
delay(1000);
}
Connection Diagram:
Ouptut:
Conclusion:
They are utilized in televisions, computer monitors, and smartphone
screens to display images. By adjusting the intensity of each RGB LED,
these devices can generate millions of different colors. Moreover, RGB
LEDs are also used in photography and videography to create special
lighting effects.