This question already has an answer here:
- Robot never goes straight 6 answers
My Raspberry Pi car bot will not drive straight at all.
After examining and listening to the two motors, I noticed that the right wheel is a lot faster. I have matching wheels and the same code structure for commanding my wheels to turn. I have my motors hooked to an H-bridge also. I am not using PWM or anything fancy that I am aware of. I have watched many YouTube videos of programming robots to drive and my code is not that much different.
Why are my wheels turning at different speeds when programmed the same way? How should I fix this?