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?
-
loop through all possible valuesjsotola– jsotola2022年07月03日 22:33:40 +00:00Commented Jul 3, 2022 at 22:33
-
1The "angle" is the speed, so set it to the angle that means 'don't move' - i.e., the middle.Majenko– Majenko2022年07月04日 09:39:15 +00:00Commented Jul 4, 2022 at 9:39
1 Answer 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.
Explore related questions
See similar questions with these tags.