Share Info With Your Friends

       
   

Arduino Basic Program For LED Blinking 5 times Using While Loop

In this project we will simply blink an LED using arduino board.

Things Required to built this project:-

1.Arduino Board.
2.LED
3.Connecting Wires.

Circuit Diagram:-

Arduino Basic Project Blinking of LED

Code to built this project:-

int i=0;
void setup() {
  // put your setup code here, to run once:
 pinMode(13,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  while(i<5)
  {
    digitalWrite(13,HIGH);
    delay(1000);
    digitalWrite(13,LOW);
    delay(1000);
    i++;
  }
}
Previous
Next Post »

Thanks for your feed back we will soon reply you EmoticonEmoticon