0% found this document useful (0 votes)
21 views7 pages

RGB Light Led Model

The document outlines an Arduino project involving an RGB LED module, detailing the materials needed, including an Arduino board, RGB LED module, breadboard, jumper wires, and a USB cable. It provides step-by-step instructions for connecting the module, uploading code, and testing the LED colors. The conclusion highlights the versatility of RGB LEDs in various applications, such as displays and special lighting effects.

Uploaded by

adxana12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views7 pages

RGB Light Led Model

The document outlines an Arduino project involving an RGB LED module, detailing the materials needed, including an Arduino board, RGB LED module, breadboard, jumper wires, and a USB cable. It provides step-by-step instructions for connecting the module, uploading code, and testing the LED colors. The conclusion highlights the versatility of RGB LEDs in various applications, such as displays and special lighting effects.

Uploaded by

adxana12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

ARDUINO PROJECT: RGB LED MODULE

Materials Needed:

1. Arduino board (e.g., Arduino Uno)


2. RGB LED module
3. Breadboard
4. Jumper wires
5. USB cable for connecting Arduino to your computer

Microcontroller
(e.g.,Arduino):

Serves as the brain of the robot,


controlling its functions based on
programmed instructions.

Breadboard:

Provides a platform for building


and
testing circuits without soldering.
RGB LED MODULE: The RGB LED Module is an
exciting component that allows
you to control the color and
brightness of light using red,
green, and blue LEDs.

Jumper Wires: Conduct electricity and connect


components on a breadboard.

USB CABLE: Use to connect Arduino Uno to


the computer.

Procedure for RGB LED Module Light:


Step 1: Parts Needed

Step 2: Connecting the Module:


Plug in the module in your breadboard, I'm using a mini one. We
need to connect 4 pins - one for common ground (GND) and one
for each of the 3 basic colors - red, green, blue.
The following 34pins are as follows:
Red (R) > Pin 11
Green (G) > Pin 9
Blue (B) > Pin 10
- >GND
* You can change the pin numbers in the code that I've provided
below.
Step 3: Uploading the Code and Testing.

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() {

// Red color (full red, no green, no blue)


analogWrite(r_led, 255);
analogWrite(g_led, 0);
analogWrite(b_led, 0);
delay(1000);

// Green color (no red, full green, no blue)


analogWrite(r_led, 0);
analogWrite(g_led, 255);
analogWrite(b_led, 0);

delay(1000);

// Blue color (no red, no green, full blue)


analogWrite(r_led, 0);
analogWrite(g_led, 0);
analogWrite(b_led, 255);

delay(1000);

// Purple color (full red, no green, full blue)


analogWrite(r_led, 255);
analogWrite(g_led, 0);
analogWrite(b_led, 255);

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.

You might also like