Quantcast
Viewing latest article 3
Browse Latest Browse All 2434

General discussion • Raspberry Pi 5 Continuous Servo Complete Stop

I am attempting to make a mg996r continuous motion servo come to a complete stop using this code:

from gpiozero import Servo
servo=Servo(26)
servo.value(0)
while True:
motion=input(“Enter value between -1 and 1: “))
servo.value=motion

(This is just an excert to explain the basic concept)
My problem is that when set to 0, the motor still rotates slowly. In my tests with a potentiometer, I couldn't get the motor to stop at all. What should I do? is it possible to cut the voltage to the servo entirely?

Statistics: Posted by RPiAnderson — Tue Apr 01, 2025 11:53 pm



Viewing latest article 3
Browse Latest Browse All 2434

Trending Articles