Sparkbuzzer
Published © GPL3+

Multiple RGB Led Chaser Using Arduino Uno

RGB Led Chaser Using (For Loop) Multiple Leds with Arduino Uno Board

IntermediateFull instructions provided2,358
Multiple RGB Led Chaser Using Arduino Uno

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
5 mm LED: Red
5 mm LED: Red
×1
5 mm LED: Green
5 mm LED: Green
×1
LED, Blue Green
LED, Blue Green
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Solderless Breadboard Half Size
Solderless Breadboard Half Size
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

RGB Led Chaser Wiring

Pic is not so clear understanding,
connect all leds from pin 2 to pin 13 of Arduino Uno

Wiring Connections

Code

RGB Led Chaser Code

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

Credits

Sparkbuzzer

Sparkbuzzer

1 project • 3 followers
Internet Of Things (IoT) and Electronics,

Comments