I’m hoping to find out if it is possible to achieve a solution for my project’s problem.
My project is an animatronic coin operated game. What I need to accomplish is the following:
When power is supplied to the Arduino, two servos, Servo X and Servo Y, go to the 45º position. The user has two hand wheels with which to drive Servo X and Y, but they are not activated before the user inserts a coin (i.e., the user cannot drive the servos yet). Once the user inserts a coin, the coin passes an IR break beam sensor that then triggers the Ardiuno to activate the hand wheels ability to drive Servo X and Y. The user has 30 seconds to turn the hand wheels and drive the servos. After 30 seconds, the Arduino disengages the hand wheels and takes back control of Servo X and Y to reset them back to 45º. Then, the game is ready for another coin.
IMPORTANT NOTE: The hand wheels must be able to continuously turn, but only be able to drive Servo X and Y 90º. So, Servo X starts at 45º and Hand Wheel X is rotated clockwise past 90º, driving Servo X until it maxes out at at -45º. When Hand Wheel X begins rotating counterclockwise, Servo X responds immediately and rotates until it maxes out at 45º.
My assumption is that this can be accomplished with some crafty programming and by connecting the hand wheels to two analog feedback servos that in turn control the position of Servo X and Y.
Here are the types of servos I assume can use to drive the servos: Analog Feedback Servo : ID 1404 : $14.95 : Adafruit Industries, Unique & fun DIY electronics and kits
Am I on the right track? Does anyone have any suggestions?