How to Make a LED Blink With the Arduino UNO
by TechSensor in Circuits > Arduino
2149 Views, 0 Favorites, 0 Comments
How to Make a LED Blink With the Arduino UNO
In this tutorial you will learn how to light up an LED with the Arduino UNO R3.
Supplies
You will need:
- 1x Computer with Arduino IDE installed
- 1x Arduino UNO R3 or clone
- 1x USB Cable
- 1x Breadboard
- 1x LED
- 1x 220 Ohm Resistor
- 2x Jumper wires
Connect Jumper Wire From Arduino to Breadboard
Connect the jumper wire with one pin to the Arduino and the other pin to the breadboard like in the picture.
Place the Resistor on the Breadboard
Place the 220 Ohm resistor on the same row as the jumper wire on the breadboard.
Depending on the size of the breadboard, it may be best to use the resistor as a bridge like I did.
Before Placing the LED
It is important to notice that the LED has a long and short lead,
the long lead is the positive one, and the short lead is the negative one.
Place the Led on the Breadboard
Place the LED with the positive lead on the same row as the resistor, and the negative lead on the row next to it.
Connect Jumper Wire From GND to Breadboard
Place the jumper wire with one pin to the ground (GND) and the other pin to the same row as the negative lead of the LED.
Connect the Arduino to the Computer With the USB Cable
Plug the USB Cable with one end into the Arduino, and the other end into the usb port of the computer.
Open the Arduino IDE and Select the Example Sketch
Open the Arduino IDE, if you haven't installed it yet you can watch my other video on how to install it here: https://www.youtube.com/watch?v=QcfqnxNG3Mw
Go to File > Examples > 01.Basics > Blink To open the Blink sketch.
In the Code, Replace "LED_BULLITIN" With "10"
After opening the blink sketch, the only thing you need to do is replace the "LED_BULLITIN" with the pin number "10".
Upload the Code and See If It Works
Click the upload button the upload the code to the Arduino.
After a few seconds you will see that the LED begins blinking on and off.
Congratulations on completing this tutorial!