Full width home advertisement

Electronics Hub

Internet of Networks

Post Page Advertisement [Top]

In this modern world , the term “LED” is the most used and widespread word across the world of electronics. LED stands for Light Emitting Diode which are small and powerful lights, and has lighten up the world in the most energy efficient and cost effective way. LED are used many various applications.

To start with LED, we will have to work on blinking an LED on an Arduino board first, which is what we call “the Hello World of micro-controllers”. It is as straightforward as turning a light on and off. Establishing this important base of electronics will give you a solid groundwork as we will go through the experiments which are far more complicated.

blinking led light, blinking led arduino
Free picture downloaded from unsplash.com

Components Required

You will need the following components:

       1 × Breadboard
       1 × Arduino Uno R3
       1 × LED
       1 × 330Ω Resistor
       2 × Jumper

Note: To find the polarity of an LED, observe closely. The shorter two legs, towards the level edge of the bulb points to the negative terminal.

Components like resistors need to have their terminals bent into 90° angles in order to fit the breadboard sockets properly. You can also cut the terminals shorter.


Open the Arduino IDE software on your computer and place the code in Arduino Language. Coding in the Arduino language will gain control your circuit. Open the new sketch file by clicking New.

Arduino Code

void setup()
   pinMode(2, OUTPUT);
void loop()
   digitalWrite(2, HIGH);
   digitalWrite(2, LOW);

Note to Code

pinMode(2, OUTPUT): Before you can use one of Arduino’s pins, you need to tell Arduino Uno R3 whether it is an INPUT or OUTPUT. We use a built-in “function” called pinMode() to do this.

digitalWrite(2, HIGH): When you are using a pin as an OUTPUT, you can command it to be HIGH (output 5 volts), or LOW (output 0 volts).


You will be able to see that your LED turning on and off. If the required output is not seen, make sure you have assembled the circuit correctly, and verified and uploaded the code to your board.

No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Sriparna Sarkar