Blink, Blink, Revolution



 A Fun and easy Project 

Hi guys, welcome to the world of Arduino.

This is our second article about Arduino, in this article we perform a project of blinking LED. A simple project to understand Arduino for beginners. 

Circuit 

Make circuit, connect positive leg of led with digital pin 13 and negative leg to ground of Arduino.

Circuit is completed.


Code

Now move to Coding part. Open Arduino IDE and go to write new sketch.

Now start code 

void setup () 

{

pinMode(13, OUTPUT);

}

void loop ()

{

digitalWrite(13,HIGH);

delay(1000);

digitalWrite(13, LOW);

delay(1000);

}


Code is completed in void loop LED will be on and then at delay part it remains on for 1000mili seconds or 1 second and then it will turn OFF for one second. This will be repeated over and over.

Upload code and check your led.

Conclusion 

Hence we are successful in our simple project.

We can also change the time of blinking by writing in delay. For example delay(500) for half secod.

A very simple approch. Please try it and tell mn in comments. Next we will discuss about leds blinking, more than one led. 

Have a nice day.

Best of luck.

Comments

Popular posts from this blog

Taking LED sequencing to Next Level with Arduino

Code, Create and Innovate