I have just started working with the 6 channel servo controller. A great product!!
I would appreciate some direction.
I have an RC switch for my transmitter to turn an external circuit on and off.
I have two servos with 180 degree travel and bought the Pololu server controller to limit the travel to a 90 degree arc.
Everything is perfect on the USB interface.
What I think I should be doing is using the RC switch as an input on the servo controller. The servo controller would be powered on as long as the main battery is connected.
The RC switch will be +5v or 0v depending on which way it is flipped.
When the +5v is detected, I would like both servos to move from what is for my purposes, 0 to 90 degrees, and when the +5v is turned off, I would like both servos to move from 90 to 0 degrees.
Can this be done, and can you provide a high level guideline for me on how I should approach this? I'm sure I can figure out the script if I have a direction to follow.
Monitor Input x
If x = 1
send command to move servo from 0 to 90
test for servo at 90
If x = 0
send command to move servo from 90 to 0
test for servo at 0
All suggestions / comments welcome.