Arduino LED Blinking

In this tutorial, we will learn how to blink led using arduino. Blinking  LED  is like a “Hello world” program for every beginner. You must want to start your first arduino project by “Arduino LED Blinking”. I have added the following video to make the Arduino project easier.


Light Emitting Diode (LED) has a good capability of blinking with no delay. It easily can respond with arduino signal. Only a few line code is required to blink an LED with required delay.


  1. 1x – Breadboard
  2. 1x – Arduino board with USB cable
  3. 2x – Male to male jumper wire
  4. 1x – LED (i used blue led)
  5. 1x – resistor(100 ohm/330ohm/1k anyone can be used)


  1. Connect LED with arduino as shown in the schematic. During this, be conscious about LED polarity. That means LED will light up only when it is correctly connected to the power. The tall leg is positive pin which should be connected to PIN12 of Arduino , other one should be to GND.
  2. Connect your Arduino board (UNO) with your personal computer.
  3. Copy the following arduino code to Arduino IDE. Download IDE , If you don’t have it.
  4. Compile the  code & upload it to the arduino board.
  5. If successfully uploaded, Enjoy the blinking.
  6. If not uploaded, please check the port settings & arduino.


led blinking

blink led

arduino code:

void setup() {
pinMode(12, OUTPUT); // Define digital pin 12 as an output.
void loop() {
digitalWrite(12, HIGH);   // turn the LED on
delay(2000);              // light will remain ON for two seconds
digitalWrite(12, LOW);    // turn the LED off
delay(1000);              // light will remain OFF for a second


Leave a Reply

Your email address will not be published. Required fields are marked *