#Lesson 01- Blinking LED
Hardware Required
- Arduino Board
- LED
- 220 Ω Resistor
- Jumper wire
- Bread board
Circuit
The LED is connected to Arduino digital pins and 220Ω resistor is connected series in between Arduino and LED. The resistor which limits the flow of currents.
Connect one end of the resistor to the digital pin correspondent to the LED. Connect the long leg of the LED (+ve leg called as anode) to the other end of the resistor and connect the short leg of the LED (-ve leg called as cathode) to the Gnd
Code
After you build the circuit plug the Arduino into your computer, start the Arduino software(IDE) and enter the code given below
The simplest thing you can do with a Arduino to blinks the LED
Hardware Required
- Arduino Board
- LED
- 220 Ω Resistor
- Jumper wire
- Bread board
Circuit
The LED is connected to Arduino digital pins and 220Ω resistor is connected series in between Arduino and LED. The resistor which limits the flow of currents.
Connect one end of the resistor to the digital pin correspondent to the LED. Connect the long leg of the LED (+ve leg called as anode) to the other end of the resistor and connect the short leg of the LED (-ve leg called as cathode) to the Gnd
Code
After you build the circuit plug the Arduino into your computer, start the Arduino software(IDE) and enter the code given below
/*
Blink
https://electronicassit.blogspot.in/
9444868542
*/
int LED=5;
void setup()
{
pinMode(LED, OUTPUT);
}
void loop()
{
digitalWrite(LED, HIGH);
delay(1000);
digitalWrite(LED, LOW);
delay(1000);
}
Thank you!
Thank you!
Hi there,
ReplyDeleteThank you sharing such a useful information.
We are leading motion sensors, smart lights, home automation products manufacturers in Vadodara
Visit our website for more information - Home Automation System
Very good & informative content on topic
ReplyDeleteThanks for sharing such a useful tips.
Visit our website for SEO Agency in Vadodara
Thank you for sharing such a useful information.
ReplyDeleteiMagic Baroda
Apple Authorised Reseller Store in Vadodara