How do I connect them to an Arduino Nano with speed control?
Because the Arduino has only 6 PWM pins, while we need 8 PWM pins, keep in mind that I don't need to control each motor's speed individually, all I need is to control the speed of the front motors, and the back motors at the same time, so I don't need individual control of each motor (so I think 2 PWM pins to the first motor driver, and 2 for the second motor driver. Here are my connections:
Can you tell me the code more in detail? For example what is the code to make the drv8833 module 1 make its 2 motors go forward and go backward with the speed control option, and what is the code to make the drv8833 module 2 wheels go forward and backward with the speed control option?
Can you find some project that does the rest of what you want to do using other drivers? How is the thing supposed to know when to be going forward or backward or different speeds?
I used to use the L298N motor driver, but it's way too inefficient and big, plus my DRV8833 motor driver doesn't overheat, gets the job done, has better safety features, smaller, and gives out more voltage to the motors than the L298N (in result making the motors spin faster)