Multiple RGB Led Chaser Using Arduino Uno

2.8K151

Intro: Multiple RGB Led Chaser Using Arduino Uno

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

STEP 1: Full Steps in Video


Youtube Video

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

STEP 3: Led Mount on Breadboard

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

STEP 4: Wire Connection

STEP 5: Code

RGB Led Chaser Code

Here is the code

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);
  }
}

STEP 6: Code Screenshot

Here is the code screenshot

STEP 7: Video and Pics

Pls Support us On Youtube, Subscribe Here #sparkbuzzer

STEP 8: RGB Led Chaser Arduino Code