You are on page 1of 3

instructables

LED Control

by spagnoletti

This project will utilize the Arduino Uno micro - Breadboard


controller, breadboard, LED's, resistors, and a
potentiometer to create a sequence in which the - 5 LED's
potentiometer controls which LED's are on. As the
potentiometer is turned clockwise, the "on" LED shifts - 5 220 Ohm resistors
to the right and as the potentiometer is turned
counter-clockwise, the "on" LED shifts to the left. - Rotary Potentiometer

What you will need: - Wires

- Arduino Uno

LED Control: Page 1


Step 1: Connect LED's

Insert 5 LED's into the breadboard, all aligned next to Connect the LED's to the pins as followed (You may
each other, one after the other. Use wires to ground use whatever color LED's as you wish, just connect
the Led's and insert a 220 resistor to each LED. Next, them the same way I have in the diagram).
use wires to connect the LED's to the Arduino.

From left to right: - Blue LED to Digital 9

- First Red LED to Digital 12 - Second Red Led to Digital 8

- Yellow LED to Digital 11

- Green LED to Digital 10

Step 2: Connect Potentiometer

Insert a rotary potentiometer into the breadboard. Wire the potentiometer to GND and 5V as the diagram shows.
Then wire the potentiometer to Analog 2 as shown.

LED Control: Page 2


Step 3: The Code

Download (https://cdn.instructables.com/ORIG/F66/YSR6/JB3ZK6ND/F66YSR6JB3ZK6ND.ino)
http://www.instructables.com/ORIG/F66/YSR6/JB3ZK6ND/F66YSR6JB3ZK6ND.ino

(https://cdn.instructables.com/ORIG/F66/YSR6/JB3ZK6ND/F66YSR6JB3ZK6ND.ino)

LED Control: Page 3

You might also like