Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
helloanimesh390
Published © CC BY-ND

Arduino LED Chaser|| Sequential LED Blinker || Chaser LED

Arduino LED chaser || Sequential LED blinker || chaser LED Arduino.

BeginnerProtip4,420
Arduino LED Chaser|| Sequential LED Blinker || Chaser LED

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
5 mm LED: Green
5 mm LED: Green
×10
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Breadboard, 400 Pin
Breadboard, 400 Pin

Story

Read more

Schematics

Please watch the video to find circuit diagram

Code

Code

Arduino
// like share and sto my channel//
/* A simple program to sequentially turn on and turn off 10 LEDs */ 

int LED3 = 11;
int LED4 = 10;
int LED5 = 9;
int LED6 = 8;
int LED7 = 7;
int LED8 = 6;
int LED9 = 5;
int LED10 = 4;
int LED11 = 3;
int LED12 = 2;



void setup() {
   pinMode(LED3, OUTPUT);
   pinMode(LED4, OUTPUT);
   pinMode(LED5, OUTPUT);
   pinMode(LED6, OUTPUT);
   pinMode(LED7, OUTPUT);
   pinMode(LED8, OUTPUT);
   pinMode(LED9, OUTPUT);
   pinMode(LED10, OUTPUT);
   pinMode(LED11, OUTPUT);
   pinMode(LED12, OUTPUT);
}


void loop() {    
  digitalWrite(LED3, HIGH);    // turn on LED3 
  delay(100);                  // wait for 200ms
  digitalWrite(LED4, HIGH);    // turn on LED4
  delay(100);                  // wait for 200ms
  digitalWrite(LED5, HIGH);    // turn on LED5
  delay(100);                  // wait for 200ms
  digitalWrite(LED6, HIGH);    // turn on LED6
  delay(100);                  // wait for 200ms
  digitalWrite(LED7, HIGH);    // turn on LED7
  delay(100);                  // wait for 200ms
  digitalWrite(LED8, HIGH);    // turn on LED8
  delay(100);                  // wait for 200ms
  digitalWrite(LED9, HIGH);    // turn on LED9
  delay(100);                  // wait for 200ms
  digitalWrite(LED10, HIGH);    // turn on LED10
  delay(100);                  // wait for 200ms
  digitalWrite(LED11, HIGH);    // turn on LED11
  delay(100);                  // wait for 200ms
  digitalWrite(LED12, HIGH);    // turn on LED12
  delay(100);                  // wait for 200ms
  digitalWrite(LED3, LOW);     // turn off LED3
  delay(100);                  // wait for 300ms
  digitalWrite(LED4, LOW);     // turn off LED4
  delay(100);                  // wait for 300ms
  digitalWrite(LED5, LOW);     // turn off LED5
  delay(100);                  // wait for 300ms
  digitalWrite(LED6, LOW);     // turn off LED6
  delay(100);                  // wait for 300ms
  digitalWrite(LED7, LOW);     // turn off LED7
  delay(100);                  // wait for 300ms
  digitalWrite(LED8, LOW);     // turn off LED8
  delay(100);                  // wait for 300ms
  digitalWrite(LED9, LOW);     // turn off LED9
  delay(100);                  // wait for 300ms
  digitalWrite(LED10, LOW);     // turn off LED10
  delay(100);                  // wait for 300ms
  digitalWrite(LED11, LOW);     // turn off LED11
  delay(100);                  // wait for 300ms
  digitalWrite(LED12, LOW);     // turn off LED8
  delay(100);                  // wait for 300ms before running program all over again
}

Credits

helloanimesh390

helloanimesh390

9 projects • 14 followers

Comments