Interface LED with Arduino

This is the first tutorial in the Arduino section, today we are going to light up an LED using Arduino so let’s get started.

Thing required:

1.Arduino UNO or any other Arduino board.
2.Breadboard.
3.Some jumper wires
4.A LED and a corresponding resistor.

ComponentsAmazon.inamazonAmazon.comamazonBanggoodbanggoodAliExpressali expressUtsource
utsource logo
Arduino Unocart iconcart iconcart iconcart iconcart icon
Breadboardcart iconcart iconcart iconcart iconcart icon
Jumper Wirescart iconcart iconcart iconcart iconcart icon
LED cart iconcart iconcart iconcart iconcart icon

Circut

Connections

connect the circut as per the circuit diagram is shown. connect the LEDs positive leg to 3.3v on Arduino and connect the LEDs negative leg to pin 8 on Arduino. Here we are switching the negative leg of the LED if we want to switch the positive leg the negative of the LED will be connected to the GND(ground) of the Arduino and positive will be connected to the 8th pin of Arduino and there will be a small change in the program also.

Code

To buy electronic components order from UTSOURCE

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top