LED Blinking Programme In Arduino



Blinking The LED:

For any Beginner in Arduino, The First most Program of him is to blink an LED using Arduino UNO.

What Are We Doing:

We are Creating  A Project In which we will be connecting an LED(Light Emmiting Diode) with the Arduino Circuit Board and then Programme the Board to make the LED Blink i.e It will be on for some time and then it will get off.




Materials Required:

1.Red Led`s (1)                             :https://amzn.to/3ixn46B
2.Aruino Board (Arduino UNO):https://amzn.to/2DgCTyJ
                           
                             Or, You can also buy the Full Arduino Kit from the below link where you will get all the components related to Arduino for you to make Big as well as Small Projects.
                                  Buy Link: https://amzn.to/2ZHXzXI




Circuit Diagram:

Connect The LED`s Shorter Lead(kathode[-ve terminal])  with the GND pin and the Longer Lead(Anode[+ve terminal]) with any digital pin . Here we are using the 13 digital Pin.











Code:

const int LED:13;

void setup{
pinMode(LED,OUTPUT);

}

void loop{
digitalWrite(LED,HIGH);
delay(1000);
digitalWrite(LED,LOW);
delay(1000);

}



-----------------------------------------------------------------------------
THANK YOU
----------------------------------------------------





















2 comments:

Powered by Blogger.