I am building a project wherein I'll be controlling four servos using the Raspberry Pi 3. I wanted to control each pair of servos simultaneously (as in, when one servo is moving to a specified angle, the other servo will also move to a different specified angle). Not concurrent control, but parallel control. Is this possible? How would I go about it?

Also, can I achieve non-jittery servo control without the need for an external hardware controller?


There are several libraries which allow proper servo control without the need of external PWM generators.

My pigpio library will let you do what you want.

pigpio servo examples.

  1. Python
  2. C
  3. C using pigpio daemon

Other suitable libraries are servoblaster and the RPIO.GPIO Python module (note, not the similarly named RPi.GPIO).

  • Thank you. I will check this out. I was wondering if I could control two servos simultaneously, say, through two separate threads. Is this possible? – P_Lash Jan 29 '18 at 18:48
  • @P_Lash You can use multiple threads if needed by your application. I've never found the need to do so though. – joan Jan 29 '18 at 21:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.