LED Sequential Control using Arduino Uno R3

preview_player
Показать описание
LED Sequential Control using Arduino UNO R3. get details of LED diode. How to identify the LED anode and cathode. How can we safeguard LED using resistor. How to make connections to LED is explained. The Arduino IDE and a simple program is explained.

Buy all the materials required for this experiments:

Program CODE for anyone to use....

int LED1=11;
int LED2=12;
int LED3=13;

void setup() {
// put your setup code here, to run once:
///Material required
//Arduino UNO R3 , bread board , 3 resistors of 220 oham , 3 LED , jumper wires
//pin connections are as follows
//Give grnd from arduino to breadboard and connect one terminal of the resistors directly in to grnd on breadboard upperline
//Connect negative terminal of all the diode to the respective resistor and the other terminal of the anode to pin 11, 12 1nd 13 to take the output left led to 11, middle to 12 and right to 13
//Connect the board to the computer.
pinMode(LED1,OUTPUT);
pinMode(LED2,OUTPUT);
pinMode(LED3,OUTPUT);

}

void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED1,HIGH);
delay(500);
digitalWrite(LED2,HIGH);
delay(500);
digitalWrite(LED3,HIGH);
delay(500);
digitalWrite(LED1,LOW);
delay(600);
digitalWrite(LED2,LOW);
delay(600);
digitalWrite(LED3,LOW);
delay(600);
}
Рекомендации по теме