LED Blinking Using Arduino
by bipul kumar gupta in Circuits > Arduino
1196 Views, 2 Favorites, 0 Comments
LED Blinking Using Arduino
In this instructable, I am going to show you how to Blink LED using Arduino with very simple code and program in Embedded C language.
Component Required
1 x LED
1 x Arduino board
1 x USB cable
1 x Computer with Arduino software installed
LED Connection
Here is simple LED connection with Arduino, We can connect LED positive terminal to any digital pin which is PIN-2-13 depend on program, Here it is connected with Pin Number 13 and other terminal of LED is connected with GND pin of Arduino.
Circuit Diagram
Here is very simple circuit for LED blinking, We connect the Positive terminal to Pin-13 and Negative ternimal of LED to GND pin, We can also use a resistor in series.
Program
Here is .ino file for this instructable.
int led = 13;
void setup()
{
pinMode(led, OUTPUT);
}
void loop()
{
digitalWrite(led, HIGH);
delay(500);
digitalWrite(led, LOW);
delay(500);
}
Downloads
Uploading Program
Here is IDE, ones write code then verify the code and after then upload this code by press the upload button in IDE, one more thing in program is delay time, this is the function which is use for provide delay between LED ON & OFF.
www.bipulgupta.com