In this project we will simply blink an LED using arduino board.
2.LED
3.Connecting Wires.
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++;
}
}
Things Required to built this project:-
1.Arduino Board.2.LED
3.Connecting Wires.
Circuit Diagram:-
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++;
}
}
Thanks for your feed back we will soon reply you EmoticonEmoticon