I have a MG 996R micro servo which I am using with a Raspberry Pi and Python.
It seems that this servo is not working with Python.
I have tried experimenting the values, increasing and decreasing of its frequency but I just got a tick tick tick sound and sometimes it moves a little bit.
So I tried working it with Arduino with c++/c code and it works perfectly.
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) GPIO.setup(11,GPIO.OUT) pwm=GPIO.PWM(11,50) pwm.start(0) pwm.ChangeDutyCycle(2) #<---- at this part I change # the values to look for the #range of my servo. pwm.ChangeDutyCycle(5) #<--- and so on. still doesnt move. pwm.stop() GPIO.cleanup()
PS: I also have a micro servo 9g and it works perfectly in that script above.