loading

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.

<p>Quite a bit like <a href="https://www.arduino.cc/en/Tutorial/Blink" rel="nofollow">https://www.arduino.cc/en/Tutorial/Blink</a> but you use a much larger resistor, any reason?</p>
<p>There is no Specific Reason. </p><p>Thanks,</p><p>TechPonder</p>

About This Instructable

1,750views

8favorites

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