Share Info With Your Friends

       
   

Arduino Basic Program LED Blinking 5 Times Using For 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:-

void setup() {
  // put your setup code here, to run once:
 pinMode(13,OUTPUT);

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

Thanks for your feed back we will soon reply you EmoticonEmoticon