Introduction: 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.
Step 1: Component Required
1 x LED
1 x Arduino board
1 x USB cable
1 x Computer with Arduino software installed
Step 2: 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.
Step 3: 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.
Step 4: 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);
}
Attachments
Step 5: 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