5-Position Switch controlling 4 LEDs
Using a 5-position Parallax switch (p/n #27801) and an Arduino Mega 2560 to turn 4 different LEDs on and off
Moving the switch turns on the "up" LED, down turns on "down", etc. Pushing the switch turns on all 4 LEDs at once.
This can be built with an Arduino Uno instead of a Mega - I just had the Mega in front of me when working on this.
You'll need an Arduino board, breadboard, jumper wire, 4 LEDs in your choice of colors, and a Parallax 27801 5-Position Switch.
Created on March 3, 2012, 21:04