The two motors of my Pololu 3pi operate at different speeds in spite of being set to the same speed.
I’m using a sketch that sets both wheel speeds to 50, and every 5 milliseconds reports the number of rotations per motor. The rotation counts start the same, but the difference between the rotation counts increases over time.
Sample rotation count differences are:
After 1 second - 58
After 2 seconds - 116
After 3 seconds - 174
After 4 seconds - 225
After 5 seconds - 279
After 20 seconds - 787
The vehicle is upside down, so the wheels are essentially spinning freely. When the vehicle is right-side-up, it veers to the right.
Is the difference between motor speeds likely to be a hardware issue? I didn’t assemble the robot, and I know next to nothing about electronics, so I might be overlooking something obvious.
I’m going to try coding so it accounts for the speed difference, but that’s obviously not ideal. Any guidance on how to handle this would be appreciated.