[Project 6] – RGB LED Control With Arduino

In this project we will make RGB LED Control With Arduino. To understand this project  you should know working prencible RGB (RGB: Red Green Blue; LED: Light Emitting Diode ) I will use arduino uno in the circuit design program. I use usually arduino mega 2560.  You can use the other arduino cards. This project for beginners. Good Luck.[Project 6] - RGB LED Control With Arduino

Schema:


[Project 6] - RGB LED Control With Arduino schema

RGB LED Pins:


rgb_led_picture

Materials:


Arduino UNO / Other Arduino Cards        x 1
Breadboard                               x 1
330 ohm resistor                         x 3 
RGB LED                                  x 1  
Jumper Cable

 

Program:


// letsarduino.com
// [Project 6] - RGB LED Control With Arduino

const int BlueLed=10;
const int GreenLed=9;
const int RedLed=8;


void setup()
{
pinMode(BlueLed,OUTPUT);
pinMode(GreenLed,OUTPUT);
pinMode(RedLed,OUTPUT);

}

void loop()
{
  
digitalWrite(BlueLed,HIGH);  
digitalWrite(GreenLed,HIGH);  
digitalWrite(RedLed,LOW);  
delay(1500);
  
digitalWrite(BlueLed,HIGH);
digitalWrite(GreenLed,LOW);  
digitalWrite(RedLed,HIGH); 
delay(1500);
  
digitalWrite(BlueLed,LOW);  
digitalWrite(GreenLed,HIGH);  
digitalWrite(RedLed,HIGH);  
delay(1500);

digitalWrite(BlueLed,LOW);  
digitalWrite(GreenLed,LOW);  
digitalWrite(RedLed,LOW); 
delay(1500);
}

Project Related Images:


 

rgb ledrgb led greenrgb led blue



 

You may also like...