Robot turns in circles or goes backwards

  • Robot car
  • DC motor

Why it happens

  • One motor's two wires are swapped.
  • The two motors have slightly different speeds.

How to fix it

  1. Swap the two wires of the wheel that goes the wrong way, at the driver.
  2. If it drifts, slow the faster wheel with analogWrite on its Enable pin.
  3. Check both wheels touch the floor and the battery is fresh.

It worked if: It drives straight for a metre.

From how the part works. Explained from how the part works; not tried on a real circuit for this page.

Didn't help? Search another error or ask us.