I am working on a some time-critical system that will run image processing and controlling 4 SG90 servo motors. In short, I will do visual-servoing.
Since I will do visual servoing, I don't want to use software pwm for controlling & driving the servo motors. I am using Raspberry Pi 4 4GB.
According to my researches, there is two PWM channels on Pi 4, which are available on GPIO12, GPIO13, GPIO18, GPIO19. (See official Raspberry Pi Documentation)
Here, there are some questions;
- Can I control 4 servo motors independently by using this PWM pins. I mean, for example, GPIO12 for servo1, GPIO13 for servo2, GPIO19 for servo3 and GPIO10 for servo4. Is this possible ?
- There some libraries, pigpio and wiringpi. Which one is suitable for using pure hardware pwm?