I have 2 controllers the same manufacturer are connected to hub motors from hoverboard and i have problem when i give the the controller the same output PWM the motor moved but not with the same speed there's a little difference.
and this difference make the robot move but not in a straight line .
The same pin 9 for PWM.... How do You do to make a turn?
Using 2 different PWM pins looks like needed. Then is the question how do discover an unintended turn and how much to correct.
What is the basic idea for that build?
first; i connect those controller with only one pwm pin because to control this driver i need dac converter and i have now only one dac so i will control the speed for the motors with the same duty cycle output from the dac converter.
when i need to make turn or something i will stop 1 motor and turn the other one.
the error around 10 percent if the speed is 200 rpm in a motor so in the other on will around 180 rpm.