Fire Fighting robot

bishrof's picture


Joined: Nov 29, 2019

Replies: 0
Fire Fighting robot
November 29, 2019 - 10:43pm

i am facing a problem with the fire fighting robot project available on this site , i am not able to make the robot move forward in a straight line , it always deviates as one wheel spins faster than the other.

any advice ?

note i am using l298n hbridge.

Aswinth Raj's picture


Joined: Aug 16, 2016

Replies: 961
Robot not moving straight problem
November 30, 2019 - 9:48am

This is a very common problem with the yellow DC gear motors, as the motors age one motor will become weak than the other causing this problem. The easy solution is to get a new pair of motors and use them.


You can modify the code to not rotate both the wheels together at the same time. You can make it work like line follower robot. Other solutions are using an encoder or controlling the input voltage of the powerful motor