|
Re: Two limit switches, one button
Do you want to control a motor using only one joystick button?
Tell us a story. Pretend that the program and wiring are done, and describe for us what the person at the controls does and what the robot does in response. Use phrases like "presses the button for a half second then releases it" and "lift starts moving up and doesn't stop until the top limit switch is activated." Make sure you cover every case that you want to handle. Then add some cases that you don't expect but might still happen, like "holds the button down even after the lift has reached the bottom" or "presses the button again while the lift is already moving upward".
Once we know what you want the robot to do in response to the operator's actions, we can show you how to create code that will do it.
|