Hi guys, I have a set of servos which I am controlling with pots at the moment. I would like to install a three way switch to allow me to choose between using the pots, serial input or have them even out the output from a set of four photoresistors. The project is a solar tracker, but I want to maintain manual control as well. Any thoughts on how I should go about this?
You could do this with a physical three-way switch connected to some digital input pins. The pins would allow you to sense which position the switch was in and act accordingly.
The simplest way would be a multi-position switch e.g. a rotary switch with each position connected to a separate input pin. If necessary, you could reduce the number of pins (but increase the complexity) by connecting each position via a different resistance value as part of a voltage divider and use a single analog input to read the switch position.
Thanks guys. I'll let you know how it goes.
Anymore ideas, just spit it.