I'm trying to make an obstacle avoiding robot. I have two wheels with DC motors connected to an L298N which, on its turn, is connected to an Arduino Uno.
The Arduino can have the wheels spin one direction or the other, or not at all.
The thing is that I can't get my robot to move on a straight line since one motor always seems to spin slightly quicker than the other.
I tried to solve this by coding, trying to adjust the spinning velocity of each motor/wheel, but with no success. I still can't have my robot move on a straight line.
I suppose, I can use Continuous Rotation Servos but I need to know. Is there a way to solve my problem keeping to the DC motors?