Driving four motors by PWM control using PCA9685. Please refer to the link below for details such as circuits. https://weeklyengineering.com/2022/02/27/pca9685tb67h450fngbr4/
Use PCA9685.py module.(Please refer to the link below.) https://github.com/adafruit/Adafruit_Python_PCA9685