Breaking

recent

Interface LED with Arduino

This is the first tutorial in arduino section, today we are going to light up an LED using arduino so lets get started.

Thing required:
1.Arduino UNO or any other arduino board.
2.Bread board.
3.Some jumber wires
4.A LED and a corresponding resistor.

Circut



Connections:
    connect the circut as per the circuit diagram 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 LED , if we want to switch the positive leg the 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:

Interface LED with Arduino Reviewed by Abu Yazid on March 04, 2018 Rating: 5

No comments:

All Rights Reserved by DIY Usthad © 2014 - 2019

Contact Form

Name

Email *

Message *

Powered by Blogger.