top of page

Blink an LED using Arduino



If you are here then you are for sure a beginner in the world of Arduino and need some help getting started! Well, you have come to the right place then. In this instructable, I will be demonstrating how we can blink an LED using an Arduino board very easily in about 5 minutes.


Step 1: Gather the Components


For this, you will be needing very few components:

  • Arduino UNO

  • Breadboard

  • LED (any colour)

  • 10k Ohms Resistor

Gather the components and get ready to build the circuit on the breadboard.

I always prefer Quartz Components for buying electronic components in India!


Step 2: Building the Circuit


Build the circuit on the breadboard by following the circuit diagram that I have attached above.

First, insert the LED into the breadboard. Then connect the LED negative diode to the GND on the Arduino board. Now connect the positive terminal of the LED to the digital pin 8 of the Arduino board through a 10k resistor.

That is it for the circuit. Now move on to coding the Arduino board.


Step 3: Workflow


The workflow here will be very simple. We will first turn on the LED, then have a delay of around 200 milliseconds and then we will turn the LED off and then again give a delay of 200 milliseconds. This whole thing will be inside the Arduino loop() function and thus using this method we can achieve the much-required BLINK effect on the LED using the Arduino board.


Step 4: Programming the Arduino Board

The Arduino Code:

void setup() {
  // put your setup code here, to run once:
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(8, HIGH);
  delay(200);
  digitalWrite(8, LOW);
  delay(200);
}

Thank You :)

bottom of page