How to Blink an LED with Arduino? [FOR BEGINNERS]

Arduino UNO

How to Blink an LED with Arduino? [FOR BEGINNERS]

Are you new to the world of Arduino and looking for some very simple project to begin with ?

Here is a small hobby project which can be made by anyone following some very simple instructions.
So let’s begin! 

You can also find step by step procedure on Instructables, click here.

Items Required

Arduino UNO board 

How to Blink an LED with Arduino?

connecting cables 

How to Blink an LED with Arduino?

220Ω Resistor 

How to Blink an LED with Arduino?

breadboard 

How to Blink an LED with Arduino?

USB cable  

How to Blink an LED with Arduino?

A "Hello World" project for beginners ! 

Click to Tweet

How Does It Work?

The arduino board is programmed to give a +5V on pin number 7 for 1 second and then switch to 0V after 1 second thus giving a blinking the LED continuously.

Steps to follow : 

  • Place the LED on the breadboard and connect the resistor in series with the LED as shown in the step by step connection diagrams.
  • Using the connecting wires, connect the Arduino board with the LED and resistor, with this you will be done with the circuit.
  • Now you need to plug the Arduino board into the computer and upload the code using Arduino IDE. Here is the code :

    int led = 7; 

    void setup() {

    pinMode(led, OUTPUT);

    }

    void loop() {

    digitalWrite(led, HIGH);

    delay(1000);

    digitalWrite(led, LOW);

    delay(1000);

    }

  • Once the code is uploaded, BINGO ! the LED should flash continuously. It will do that for as long as the device is plugged in and powered.
How to Blink an LED with Arduino?
How to Blink an LED with Arduino?
How to Blink an LED with Arduino?

Read our Other Interesting Electronic Engineering articles here