Hello guys,
Welcome to my blog,
This blog is to describe my begin of Arduino programming (LED Blinking program).
I started learning Arduino Programming.
It is evident that when anyone starts learning any new language he must start with the basic program of printing a “Hello World!” message,
same as for i started with the basic LED blinking program.
LED blinking is treated as the very beginner program in arduino, because it is so simple and easy to understand.
What is to be done is:
Turns an LED on for one second, then off for one second, repeatedly.
Actual saying is, to blink an LED with described delay of time between each blink of LED.
We will now see how it is done.
Basic or default setup for Arduino programming:
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Now the actual led program.
LED program:
// LED Blink Program
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
Hardware Connection:
Circuit Diagram:
You can find the detailed explanation of LED blink program on Arduino Documentation.
Later on the great projects and ideas based on Arduino and IoT are coming, so please continue supporting me.
Finally, thanks for reading my post,
If you like my post, please do support me.
More Details:
Youtube Channel: A1 EduTech
Peakd blogs: A1 EduTech
Artstation: Asad Ali Art
DTube Channel: A1 EduTech