Simple obstacle avoiding bot DC motor problems

Hi guys,

I made a bot which was functioning perfectly till yesterday but today, one of the motors is working in the reverse direction but not in the forward direction. As a result, my robot is going in circles. Also, once I pick up the robot, both motors work in the air. Please help with what the issue might be. The motors are controlled by an l293d H bridge and are both 100 rpm dc motors powered by a 6V battery pack

The first assumption must be that something changed between yesterday and today.

A discharged battery is one possibility.
A broken connection or a loose connection is another.

...R

I checked and rechecked the connections, replaced the batteries.. Also, why is it rotating in the air but not when I put it on the ground :(. It feels like it doesn't have enough torque to move on the ground

I agree with your view that it does not have enough torque - but why?

I guess it is possible that one part of the L293 has failed partially. Are you sure that it can comfortably supply the maximum current required by your motors?

Are you using soldered connections? - one of them may look OK but not actually be OK.

...R

Damaged or clogged motor brushes? More likely to be electronic though - try applying some
resistance with the wheels in the air while monitoring battery current?