I’m trying to use external switch closures, a joystick, to move the arm using the set_polar() method. The Python code has a loop that increments, or decrements, the stretch value, for example, and sends a command with the new value to the arm. This works but there is a significant delay between subsequent commands resulting in a start-stop motion. Can anyone suggest a way to move the arm smoothly?
You could set wait=False and set the wait time manually.
Here is a code snippet:
while GPIO.input(stretch_minus) == False:
if stretch_data < 160:
stretch_data -= 5
I am checking to see if a hardware pin is pulled low and then moving the arm. While the pin is low the arm stretch parameter is decremented and the arm moves in 5 mm steps. The arm does move in the correct direction but there is a pause between each move. How do I make it move continuously until the pin goes high?
Could you shoot a video about that to let us know more of your project?
I can do that later today.
I tried to upload the video but got a message:
Sorry, the file you are trying to upload is not authorized (authorized extensions: jpg, jpeg, png, gif).
How do I upload a video???
You could upload to youtube or google driver and send link to us.