In this tutorial, we are going to learn how to create an LED blinking project in Arduino Uno. The project is very easy to follow and can be completed in just a few minutes. The source code for this project is also included in the video so that you can use it.
Tools:
Arduino Uno
Breadboard
Jumper Wires
ohm resistor
Led Bulb
Source Code:
int led1 = 1;
int led2 = 3;
int led3 = 5;
void setup() {
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
}
void loop() {
digitalWrite(led1, HIGH);
digitalWrite(led2, LOW);
digitalWrite(led3, LOW);
delay(1000);
digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
digitalWrite(led3, LOW);
delay(1000);
digitalWrite(led1, LOW);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH);
delay(1000);
}
__________________/ SOCIAL LINKS \____________________
Website: https://www.safcode.com/
Second Channel: / @sirsafdervlogs
Facebook: / @safcodeinstitute
Instagram: / safcodeinstitute
#arduinoproject #ledblinking #arduinouno