How to Make a LED Blink With the Arduino UNO

by TechSensor in Circuits > Arduino

1239 Views, 0 Favorites, 0 Comments

How to Make a LED Blink With the Arduino UNO

How To Light Up a LED With The Arduino UNO

In this tutorial you will learn how to light up an LED with the Arduino UNO R3.

Supplies

Bill of Materials.png

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

step_1.png

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

step_2.png

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

step 3_1.png

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

step_3.png

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

step_4.png

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

step_6.png

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

step_7.png

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"

step_8_before.png
step_8_after.png

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

step_9.png

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!