Introduction: LED Blinking Using Arduino

Picture of LED Blinking Using Arduino

Hardware Required:

1) Arduino Uno

2)LED

3)4.7k Resistor

4) Connecting wires

5) Bread Board

Please connect the led to arduino as shown above .

Arduino 3rd pin is connect to +ve pin of LED and -ve end of LED is connect to ground through 4.7k.

Step 1: Program for LED Blinking

void setup() {

// initialize digital pin 03 as an output. //

pinMode(3, OUTPUT);

}

// the loop function runs over and over again forever

void loop()

{

digitalWrite(3, HIGH); // turn the LED on (HIGH is the voltage level)

delay(1000); // wait for a second

digitalWrite(3, LOW); // turn the LED off by making the voltage LOW

delay(1000); // wait for a second

}

Copy and paste the below code in Arduino ide and upload to Arduino UNO.

Thanks,

TechPonder.

Comments

russ_hensel (author)2015-08-15

Quite a bit like https://www.arduino.cc/en/Tutorial/Blink but you use a much larger resistor, any reason?

TechPonder (author)russ_hensel2015-08-16

There is no Specific Reason.

Thanks,

TechPonder

About This Instructable

2,183views

9favorites

More by TechPonder:how to interface LCD (16X2) to arduinoHow to Interface Ultrasonic Sensor (HCSR04) to arduino unoFire  detection  using Arduino and flame sensor
Add instructable to: