IOT Beginner| Blink LED program & Setup Arduino
Hi Friends,
In this article we would how to start with Arduino setup & a very basic program to Blink LED.
This article is for beginner who are IOT Enthusiastic.
1) Arduino board
2) 1 LED
3) Jumper wire
4) Resistor (200 OM)
Diagram:
Program:
void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Compile & upload program on your Arduino board. you should be able to see Blinking LED.
Simulate here: https://circuits.io/circuits/2655115-blink-led-program-with-arduino
How it works:
One leg of LED is connected to pin-13 & another is connected with GND. In Arduino program, loop section is repeats it self again & again. Code here, set HIGH (or 1) on Pin 13 which makes circuit complete & LED Blinks :-)
In this article we would how to start with Arduino setup & a very basic program to Blink LED.
This article is for beginner who are IOT Enthusiastic.
Requirements:
1) Arduino board
2) 1 LED
3) Jumper wire
4) Resistor (200 OM)
Diagram:
void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Compile & upload program on your Arduino board. you should be able to see Blinking LED.
Simulate here: https://circuits.io/circuits/2655115-blink-led-program-with-arduino
How it works:
One leg of LED is connected to pin-13 & another is connected with GND. In Arduino program, loop section is repeats it self again & again. Code here, set HIGH (or 1) on Pin 13 which makes circuit complete & LED Blinks :-)
Comments