Hello Friends! Welcome Back to "INNOVATIVE SCIENTIFIC INVENTIONS". Today I will show you. How to Blink LED with Arduino UNO.
Circuit Diagram:
//CODE
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
What do need to need to Create this Project:
How to Upload Code in Arduino:
How to Select Port:
- Arduino UNO
- LED
How to Upload Code in Arduino:
- Open Arduino IDE.
- Paste the code in Arduino IDE.
- Compile the Code.
- Upload the Code in Board.
How to Select Board:
- Open Arduino IDE
- Click on 'Tools' Option
- Click on 'Board'
- Select your Board
How to Select Port:
- Open Arduino IDE
- Click on 'Tools' Option
- Click on 'Port'
- Select your Port
How to Save Sketch in Computer:
- Open Arduino IDE
- Click on 'File' Option
- Click on 'Save' Option
- Select your Folder
How to 'Save as' Sketch:
- Open Arduino IDE
- Click on 'File' Option
- Click on 'Save as' Option
- Select your Folder
IF YOU WANT TO DONATE FOR "INNOVATIVE SCIENTIFIC INVENTIONS" SO PLEASE CONTACT ME.
Video Link: https://youtu.be/w5YAPG08DS4
0 Comments