I have a Raspberry Pi project (robot with wheels and servos) and I'd like to control both motors and servos at the same time. I'm trying to use PCA9685 + L298N for driving the motors.
The problem I'm facing is that it seems like the PCA9685 has s single clock, so I can only set PWM frequency once for all pins.
So far my understanding is that if I want to drive DC motors with PWM I need to set PWM frequency to at least a couple of 100Hz, let's say 500Hz
However if I want to drive a servo (SG90) it needs the clock to be set to 50Hz
Does it mean that I can only use the board either for servos or DC motors?
Are there better approaches for driving DC motors from RPi?
I'd like to keep sound output while driving, so I don't want to use PWM pins from RPi directly :)
I'd like to keep CPU usage as low as possible, so also not sure if I should use software PWM for that.