Arduino – Led Blinking

Coding

/*
Arduino LED Blinking
Function: Turn on and Turn off the LED for 1 second continuously
Prepared By: Krishnarajsinh Jadav
Website: http://www.Kraj.in
*/

// Void setup function runs only once when you will press reset switch or turn on the board
void setup()
{
pinMode(13, OUTPUT); // initialize digital pin 13 as an output.
}

// Void loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on
delay(1000); // wait for a second (1000 milliseconds = 1 second)
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second (1000 milliseconds = 1 second)
}

Video Tutorial

Downloads

You May Also Like:

Creating a Custom LED Display with Arduino

Creating a Custom LED Display with Arduino

TheoryThe connection of components for the custom LED display code would depend on the specific components you are using. However, here is a general example of how to connect the components: Connect the anode (positive) of each LED to the corresponding pin specified...

Significance of D.C. series motor as a traction motor

Significance of D.C. series motor as a traction motor

D.C. series motors are commonly used as traction motors in electric vehicles, locomotives and trams because of their high starting torque and simple control characteristics. High Starting Torque: The series connection of the armature and field winding in a D.C. series...

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Pin It on Pinterest