To control a servo, I'm using this. To summarize it: you use code like this:
while True: GPIO.output(pin, GPIO.HIGH) time.sleep(0.0015) GPIO.output(pin, GPIO.LOW) time.sleep(0.0185)
Note that the
0.0185 change based on the desired angle.
One issue they said about was that the servo may jitter if the program is run normally. Its because a regular program will have imprecise timing.
My question is, how does one make the timing more precise so the servo does not jitter? (It said something about kernel priorities and such.)