0

I am testing out pyFirmata. I have a 360° servo, and know how to change its direction, but I dont't know how to stop it.

What command, like servo.write(), would work to make it stop moving until prompted to move again?

ocrdu
1,7953 gold badges12 silver badges24 bronze badges
asked Jul 3, 2022 at 20:57
2
  • loop through all possible values Commented Jul 3, 2022 at 22:33
  • 1
    The "angle" is the speed, so set it to the angle that means 'don't move' - i.e., the middle. Commented Jul 4, 2022 at 9:39

1 Answer 1

1

You'll need to check datasheets for your servos but a PWM value of 1500 microseconds would generally be near neutral / no rotation. Decreasing values less than this should generate increasing speed clockwise. Increasing values greater than neutral should generate increasing speed counter clockwise.

See https://arduino.stackexchange.com/a/88650/71575

answered Jul 5, 2022 at 22:27

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.