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
- Swap the two wires of the wheel that goes the wrong way, at the driver.
- If it drifts, slow the faster wheel with
analogWriteon its Enable pin. - Check both wheels touch the floor and the battery is fresh.
It worked if: It drives straight for a metre.
Related errors
Tutorials where it can happen
- Automatic Blinds Control Based On Light Intensity
- Creating a Touchless Hand Sanitizer Dispenser with LCD Display
- Distance Measurement and Stepper Motor Control with LCD Output
- Light Sensitive Blinds Control System with LCD Output
- Line Following Robot with LCD Display
- Motor Speed Control Based on Temperature with LCD Output
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.

