How to Blink an LED With Arduino? [For Beginners]
by Laibaig in Circuits > Arduino
544 Views, 2 Favorites, 0 Comments
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!
Also you can find a detailed tutorial over here too : https://www.engineeringworldchannel.com/blink-led-arduino/
Step 1: Items Required
1.Arduino UNO board : This is the most basic and simple of all the arduino boards available and widely used in hobby projects. Available here : http://geni.us/Arduino
2.A LED. Available here : http://geni.us/LEDPack
3.Few connecting cables for making the connections, please make sure they are male type at both the ends. Available here : http://geni.us/WirePack
4.A 220Ω Resistor which is used in series with the LED to limit the current in the LED to a safe value. Available here :http://geni.us/ResistorPack
5.A breadboard to make the connections. Available here : http://geni.us/Breadboard
6.USB cable to connect them Arduino board to the computer and upload the code. Available here : http://geni.us/USBCableArduino
7.Computer with Arduino software installed. If you don’t have one you can get here : http://www.arduino.cc/en/Main/software
NOTE: Please note the above links are affiliate links, which means that if you click on one of the product links, we receive a small commission. Thank you.
Step 2: How It Works?
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.
The following are the steps to be followed:
1.Place the LED on the breadboard and connect the resistor in series with the LED as shown in the step by step connection diagrams.
2.Using the connecting wires, connect the Arduino board with the LED and resistor, with this you will be done with the circuit.
3.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); }
4.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.
Step 3 : Detailed Video
In case if you want further detailed information, you can refer the below video :