Maker Pro
Arduino

Multiple RGB LED Chaser Using Arduino Uno

May 10, 2020 by Spark Buzzer
Share
banner

In This Blog I have shown you how to build LED chaser using arduino uno 

Hardware

Software

0 arduino ide

In This Blog I have shown you how to build LED chaser using arduino uno

Step 1: Full Steps in Video

Visit: 

https://youtu.be/E0IC0Wx-pMg


Watch This Video And Find More Arduino Projects at Sparkbuzzer.com

Step 2: Components

RGB Leds Jumper Wires Breadboard Arduino Uno USB Cable for Arduino

RGB Leds Jumper Wires Breadboard Arduino Uno USB Cable for Arduino


Step 3: Led Mount on Breadboard

Connect cathod pins to Gnd and andode pins to arduino pins 3 to 12

Step 4: Wire Connection

Here is the code

Step 6: Code Screenshot

Here is the code screenshot

Here is the code screenshot

Step 7: Video and Pics

Pls Support us On Youtube, Subscribe Here #sparkbuzzer

Pls Support us On Youtube, Subscribe Here #sparkbuzzer

//https://youtu.be/E0IC0Wx-pMg
//Visit above link and support us on Youtube

int ledpin;
int pot = A0;

void setup() {
for(ledpin=2;ledpin<=8;ledpin++){
  pinMode(ledpin,OUTPUT);
 }
}
void loop() {
  for(ledpin=2;ledpin<=8;ledpin++){
  int value = analogRead(pot);
  digitalWrite(ledpin,HIGH);
  delay(value);
  }
    for(ledpin=2;ledpin<=8;ledpin++){
      int value = analogRead(pot);
  digitalWrite(ledpin,LOW);
  delay(value);
  }
}

Author

Avatar
Spark Buzzer

Internet Of Things (IoT) and Electronics

Related Content

Comments


You May Also Like