Interfacing "RGB Led" with Arduino Uno
Materials Required-:
- 1- Arduino Uno
- 2-Bread Board
- 3-Jumper wires
- 4-RGB Led
- 5-220 ohm resistor
In this project I have used 4 RGB Led .Connection is very simple as shown below . You can use Led as per your choice, but u have to connect Led in parallel .If you have any doubts or you want me to make a project based on your idea , just let me know in the comment section or you can contact me through email.
HAPPY LEARNING!
Circuit Diagram-:
Arduino Code-:
int redPin = 13;
int greenPin = 12;int bluePin = 11;
void setup() {pinMode(redPin,OUTPUT);pinMode(greenPin,OUTPUT);pinMode(bluePin,OUTPUT);
}
void loop() { setColor(255,0,0); // red delay(1000); setColor(0,255,0); //green delay(1000); setColor(0,0,255); //bluecolor delay(1000); setColor(255,255,255); //white color delay(1000); setColor(170,0,255); //purple color delay(1000); }
void setColor(int redValue, int greenValue, int blueValue){ analogWrite(redPin,redValue); analogWrite(greenPin,greenValue); analogWrite(bluePin,blueValue); }
For any queries contact me on -:tombriddle28@gmail.com
YouTube Channel-: Omnific{If this post helps you please do subscribe my YouTube channel too ,It's only a click for you but it means a lot to me.}
For any queries contact me on -:tombriddle28@gmail.com
YouTube Channel-: Omnific{If this post helps you please do subscribe my
YouTube channel too ,It's only a click for you but it means a lot to me.}

Comments