I am using a Raspberry Pi 3 and a servo SG-90 to move a camera. The servo is controlled using a PWM signal. Right now I am using a specific library, called pigpio, for the PWM. The reason that I don’t want to use the standard GPIO package is that the timing of the PWM signal is controlled by software, not by hardware (as long as I understood), and therefore is not suitable for servos (the movement was quite trembling and very imprecise, but solved using pigpio).
I found a github project which specifies a Dockerfile to use this library properly. My question is: am I in the correct way, or is there an easier way to deal with PWM signals on RPI3?
Moreover, pigpio runs a daemon process which controls the hardware, and listens the port 8888 (by default), allowing to use this library in different languages (python in my case). I have multiple services which use the RPI3 hardware through pigpio. I think that the best way is to run a container with this daemon, and one more container for each service that I want to use. What do you think?