Professional Documents
Culture Documents
Abstract— RGB LED lights Circuit is an activity that shows int redPin = 11;
different colors that starts with red, green, blue and such that is int greenPin = 10;
commonly used for different applications like designing and etc. int bluePin = 9;
void setup()
Keywords—Arduino UNO R3, Arduino code, RGB LED,,
Arduino Software IDE {
pinMode(redPin, OUTPUT);
I. INTRODUCTION pinMode(greenPin, OUTPUT);
RGB LED has the function that can light up the red, inMode(bluePin, OUTPUT);
green, and blue using one LED only. It does not only produce }
one color but other color as well. It has four legs or terminals. void loop()
The most common application for this type of circuit are for {
home decorations, stage designing and other applications. setColor(255, 0, 0); // red
delay(1000);
II. OBJECTIVES setColor(0, 255, 0); //green
delay(1000);
A. Objectives setColor(0, 0, 255); // blue
- Use analog signals to control RGB LED in an delay(1000);
Arduino UNO R3 board; setColor(255, 255, 0); // yellow
- Utilize the analogwrite() programming command delay(1000);
to adjust color of RGB LED; and setColor(80, 0, 80); // purple
- Discuss about PWM, signal configuration control delay(1000);
that adjust the output value that an Arduino pin setColor(255, 255, 255); // white
produces. delay(1000);
B. Scope and Limitation } // create a new programming “Function” called setColor
void setColor(int red, int green, int blue)
The laboratory will answer the question on how the {
process will be done with the limiting knowledge regarding analogWrite(redPin, red);
to it. Various research could be done for further analogWrite(greenPin, green);
understanding. analogWrite(bluePin, blue);
III. METHODOLOGY }