You are on page 1of 5

instructables

Multiple RGB Led Chaser Using Arduino Uno

by sparkbuzzer

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

Step 1: Full Steps in Video

Yo ut ub e Vi d e o
Watch This Video And Find More Arduino Projects at Sparkbuzzer.com

https://www.youtube.com/watch?v=E0IC0Wx-pMg

Step 2: Components

Multiple RGB Led Chaser Using Arduino Uno: Page 1


R G B Le d s
J ump e r W i r e s
Breadbo ard
A r d ui n o Un o
U S B C a b l e f o r A r d ui n o

Step 3: Led Mount on Breadboard

C o n n e c t c a t ho d p i n s t o G n d
and
a n d o d e p i n s t o a r d ui n o p i n s 3 t o 1 2

Step 4: Wire Connection

Multiple RGB Led Chaser Using Arduino Uno: Page 2


Step 5: Code

R G B Le d C ha s e r C o d e
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

Multiple RGB Led Chaser Using Arduino Uno: Page 3


Step 7: Video and Pics

Pls Support us On Youtube, Subscribe Here #sparkbuzzer

Multiple RGB Led Chaser Using Arduino Uno: Page 4


Step 8: RGB Led Chaser Arduino Code

Download
https://www.instructables.com/ORIG/FNZ/M85R/K9XCVYS5/FNZM85RK9XCVYS5.ino

Multiple RGB Led Chaser Using Arduino Uno: Page 5

You might also like