Building Simple Movement: Forward, Turn, Stop
The Simplest Useful Robot Chassis
Many beginner robots use a "differential drive" design: two wheels, each with its own motor, controlled completely independently, plus a caster wheel or ball at the back for balance. This simple setup, with just two motors, can achieve every basic movement a robot needs.
The Four Basic Movements
- Forward: both motors spin forward at the same speed.
- Backward: both motors spin in reverse at the same speed.
- Turn right: the left motor spins forward faster than the right (or the right motor spins backward while the left spins forward — a "spin in place" turn).
- Turn left: the mirror image of turning right.
This is genuinely all it takes! Nearly every basic wheeled robot movement is some combination of these four ideas, just at different speeds and durations.
Why "Same Speed" Actually Matters
Here's a detail beginners often miss: if you tell both motors to go "forward" but they're not PERFECTLY matched (which real, cheap motors rarely are), the robot will slowly curve instead of driving straight, because one wheel is spinning very slightly faster than the other. Real engineers handle this either by testing and adjusting each motor's speed in code, or (in more advanced designs) using sensors that measure each wheel's actual rotation and correct for any mismatch automatically.
Stopping Isn't Always Instant
Cutting power to a motor doesn't always stop a robot's wheel INSTANTLY — depending on the motor and the robot's weight, it may keep rolling briefly from momentum, the exact same physics that makes a bicycle keep rolling after you stop pedaling. Precise robots sometimes actively brake (briefly reversing the motor for a fraction of a second) rather than just cutting power, when stopping at an exact spot really matters.
Try This
Imagine programming a robot to trace out a square path on the floor. Using only "forward," "turn," and "stop," write out (in plain words, no code needed yet) the exact sequence of movements the robot would need, including roughly how long each "forward" segment should run before turning.
Key Takeaway
Complex-looking robot movement is almost always built from a small number of very simple actions repeated and combined — you don't need fancy parts to create surprisingly capable movement, you need a clear plan.
Sign up free to carry on with the course, with an AI tutor to help you.
Continue the course
