Arduino Multiple LED Blink Project: LED Sequential Control Using Arduino For Beginners

preview_player
Показать описание
Simple Arduino Tutorial about Multiple LED Sequential Control Using Arduino For Beginners.
Hi viewers! in this video i am going to show you simple arduino UNO project for beginners that is how to control multiple LED Lights and get flip flop effect by using Arduino.

Arduino Code:

In the first part of this video you will learn how to connect LED's with arduino and in the second part you will learn how to increase or decrease LED bliking delay by making changes in the above given programming code.

List Of Materials:

and some basic tools are:

For more useful DIY videos please subscribe our channel "IdeasTV".
Please give us your precious feedback below in comments also like this video and share with your friends :)
Thanks! have a nice day :)

DISCLAIMER: This video description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission on a purchase without additional cost to you. This help support the channel and allows us to continue to make videos like this. I only suggest those products that I personally love and use in the videos. Thank you so much for the support!

#ArduinoTutorial #IdeasTV
Рекомендации по теме
Комментарии
Автор

int led1 = 13;
int led2 = 12;
int led3 = 11;


void setup() {
Serial.begin(9600);


// Setup the 3 pins as OUTPUT
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);


// Add "loop2" and "loop3" to scheduling.
// "loop" is always started by default.

}


// Task no.1: blink LED with 1 second delay.
void loop() {
digitalWrite(led1, HIGH);
delay (300);
digitalWrite(led2, HIGH);
delay (300);
digitalWrite(led3, HIGH);
digitalWrite(led1, HIGH);
digitalWrite(led2, HIGH);
digitalWrite(led3, HIGH);

digitalWrite(led1, LOW);
digitalWrite(led2, LOW);
digitalWrite(led3, LOW);
delay(1000);



}


// Task no.2: blink LED with 0.1 second delay.
void loop2() {
digitalWrite(led2, HIGH);
delay(100);
digitalWrite(led2, LOW);
delay(100);
}


// Task no.3: accept commands from Serial port
// '0' turns off LED
// '1' turns on LED
void loop3() {
if (Serial.available()) {
char c = Serial.read();
if (c=='0') {
digitalWrite(led3, LOW);
Serial.println("Led turned off!");
}
if (c=='1') {
digitalWrite(led3, HIGH);
Serial.println("Led turned on!");
}
}


// IMPORTANT:
// We must call 'yield' at a regular basis to pass
// control to other tasks.
yield();
}

sadheelkumar
Автор

Many thanks
I have a text file stored in sd memory as follows, it consists of three columns
0'10, 0
10, 0, 0
0, 0, 10
0, 0, 0
10, 0, 0
..
I have three LEDs connected to three terminals (pins) of the Arduino, for example 7, 8, 9

How do I get a code that enables the Arduino UNO to read the text file and convert each number 10 to 5 volts on one of the three pins
Thus, it will light three LEDs sequentially according to the data stored in the SD card memory. Thank you very much

magmagth
Автор

// blinking leds

int led=13;
int led2=12;
int led3=11;

void setup() {
//initialize the digital pin as an putput
pinMode(led, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); //turn the led ON
delay(100); //wait for a second
digitalWrite(led, LOW); //turn the led off
delay(100);
{digitalWrite(led2, HIGH);
delay(100);
digitalWrite(led2, LOW);
delay(100);}
{digitalWrite(led3, HIGH);
delay(100);
digitalWrite(led3, LOW);
delay(100);}
}

ghesarbu
Автор

where is the code. DO YOU SPEAK ENGLISH?

informediatech-bruno