Basic LED blinking using Arduino UNO

Basic LED blinking using Arduino UNO

Introduction :

The Arduino UNO is perfect for beginners. A common first project is making an LED blink, introducing you to Arduino programming and hardware. Let’s light up your path into electronics with this simple first experiment

 

Hardware needed :

  1. Arduino UNO (with cable)
  2. LED light 

Connection : 

  1. Connect your laptop and UNO board using the UNO cable
  2. Open a blank IDE and configure your UNO to the IDE
  3. Connect the Longer pin of the LED to the digital pin 13
  4. The shorter end of the led to the GND present next to  pin13Arduino UNO R3 SMD Atmega328P – Indian Hobby Center

Connection diagram : 

 

Bad Tutorial? Connect an LED directly to pin 13 without resistor? - Website and Forum - Arduino Forum

CODE : 

void setup() {                         //Initialization
  pinMode(13, OUTPUT);  // change pin accordingly
}
void loop(){                                   // working loop
  digitalWrite(13,HIGH);          // High = On
  delay(1000);
  digitalWrite(13,LOW);          // Low = OFF
  delay(1000);
}
OUTPUT :