|
Radio shack has a really nice six position rotary switch, you can use. Just wire the switch with five 20K ohm resistors in series across each pin of the switch. Attach one end to +5 volts and the other end to power supply common. Take the wiper (common terminal) and attach it to an analog input. All the way down will be zero volts, all the way up will be 5 volts and you will have four values in between approx 1 volt apart.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
|