Close
0%
0%

Multiple RGB Led Chaser with Arduino Uno

how to build LED chaser using arduino uno

Similar projects worth following
In this Arduino project for beginners, I have shown you how to build led chaser and how to control leds with Arduino uno

Multiple Leds with Arduino Uno | Arduino projects

rgb_led_chaser.ino

Arduino Code

ino - 380.00 bytes - 05/22/2020 at 17:55

Download

  • 1 × Arduino Uno
  • 1 × 5mm Red, Blue , Green Leds
  • 1 × Breadboard and Jumpers
  • 1 × 220 ohms Resistors

View project log

  • 1
    Step 1: Collect Components
    • RGB Leds
    • Jumper Wires
    • Breadboard
    • Arduino Uno
    • USB Cable for Arduino
  • 2
    Step 2: Wire Connection
  • 3
    Step 3: Code

    RGB Led Chaser 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);
      }
    }


View all 5 instructions

Enjoy this project?

Share

Discussions

spark buzzer wrote 05/22/2020 at 17:48 point

Guys show your love❤️ by subscribing🔔 our channel on youTube #sparkbuzzer

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates