Hello Friends! Welcome back to 'INNOVATIVE SCIENTIFIC INVENTIONS'.Today I will show you. How to Blink Multiple LEDs with Arduino Nano.
Code:
/***************************CODE***************************/
int led1 = 10;
int led2 = 11;
int led3 = 12;
void setup() {
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
}
void loop() {
digitalWrite(led1,HIGH);
delay(1000);
digitalWrite(led1,LOW);
digitalWrite(led2,HIGH);
delay(1000);
digitalWrite(led2,LOW);
digitalWrite(led3,HIGH);
delay(1000);
digitalWrite(led3,LOW);
}
What do you need to Create this Project:
- Arduino Nano
- LED
- Bread Board
- Wires
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/saMxRtuWpWk
Click Here to Download Arduino IDE
0 Comments