Find a course

Module 3: Motors and MovementLesson 6 of 1011 min

Wheels, Drive Systems and Power

Learn how differential drive steers a robot, calculate distance from wheel size and rotations, and estimate battery runtime from capacity and current.

Step 1 of 10Learn

How a robot with no steering wheel turns

Most small robots have no steering at all. They have two drive wheels, one on each side, each with its own motor, plus a free-rolling caster wheel or ball for balance. This layout is called differential drive, and it steers by changing the speed of each wheel:

  • Both wheels forward at the same speed: the robot drives straight.
  • Left wheel faster than right: the robot curves to the right.
  • Left wheel forward, right wheel stopped: it pivots around the right wheel.
  • Left forward, right backward at equal speed: it spins in place around its center.

Tanks and many tracked robots steer the same way. Differential drive is popular because it's mechanically simple, turns in a tight space and is easy to program.

Its main weakness is going perfectly straight. No two motors are exactly identical, and small differences in wheel size, friction or battery voltage make one side slightly faster, so the robot drifts in a curve. The fix is feedback: use wheel encoders to measure each wheel's actual speed and adjust the motors to keep them matched. You'll learn how feedback control works in the next module.

Other drive types exist: car-like steering (good at speed, poor at tight turns), omni-wheels and mecanum wheels that can slide sideways, and legs for rough ground.

Step 2 of 10Practice · Choose one

A differential-drive robot's right wheel turns forward while its left wheel turns backward at the same speed. What does the robot do?

Step 3 of 10Practice · Diagram

Differential drive: four wheel combinations

Left wheel forward, right wheel backward. Where does that land?

Tap the shape that answers the question, then press Check.

Differential drive: four wheel combinationsTwo-by-two matrix: Spin left in place, Drive straight forward, Drive straight backward, Spin right in place.Spin left in placeDrive straight forwardDrive straight backwardSpin right in placeLeft wheelBackwardForwardRight wheelBackwardForward
Unequal speeds in the same direction give gentle curves instead.
Spin left in place

Right forward, left backward at equal speed.

Drive straight forward

Both wheels forward at equal speed.

Drive straight backward

Both wheels backward at equal speed.

Spin right in place

Left forward, right backward at equal speed.

Step 4 of 10Learn

How far does it go?

Each time a wheel turns once without slipping, the robot moves forward by the wheel's circumference: the distance around its edge.

circumference = π × diameter

A wheel 6.5 cm across has a circumference of π × 6.5 ≈ 20.4 cm. Turn it 10 times and the robot rolls about 204 cm.

So distance = π × diameter × number of rotations, and to drive a set distance:

rotations needed = distance ÷ (π × diameter)

To drive 1 m (100 cm) with 6.5 cm wheels: 100 ÷ 20.4 ≈ 4.9 rotations.

With a wheel encoder, you count pulses instead of rotations. If the encoder gives 20 pulses per rotation, 4.9 rotations is about 98 pulses. The robot drives until the count reaches 98, then stops.

Estimating position by adding up wheel movements is called dead reckoning (sometimes called odometry). It's simple and works indoors with no outside signals, but small errors build up. A wheel that slips on a smooth floor, a slightly squashed tire or an uneven surface adds a bit of error every meter. After a long drive, the robot's estimate of where it is can be far off. That's why robots combine dead reckoning with other sensors, as you'll see in the autonomy module.

Step 5 of 10Explore

Distance traveled vs. wheel rotations

The line shows distance in centimeters for each number of rotations. Bigger wheels cover more ground per turn but need more torque to start moving.

0100200300400500 0246810
Distance per rotation
20.4 cm
Rotations for 1 m
4.9

Step 6 of 10Practice · Work it out

A robot has wheels 10 cm in diameter. How far does it travel in 5 full wheel rotations, in centimeters? (Use π ≈ 3.14.)

Step 7 of 10Learn

Batteries and runtime

A robot's battery decides how long it can work and how hard it can push. Two numbers matter most:

Voltage (V) must match what the motors and electronics expect. Too low and motors run weak; too high and parts can be damaged. Battery packs combine cells in series to add voltage: two lithium-ion cells of about 3.7 V each make about 7.4 V.

Capacity, in milliamp-hours (mAh), says how much charge the battery holds. A 2,000 mAh battery can, in theory, supply 2,000 mA for one hour, 1,000 mA for two hours or 500 mA for four hours:

runtime (hours) ≈ capacity (mAh) ÷ current draw (mA)

If a robot draws 800 mA on average from a 2,000 mAh pack, it runs about 2,000 ÷ 800 = 2.5 hours. Real runtime is usually shorter, because batteries can't be safely drained to zero and capacity drops when current is high or the battery is cold. Many builders plan on about 70 to 80% of the ideal number.

Motors usually draw most of the current, especially when accelerating, climbing or stalling. To make a robot run longer: reduce weight, avoid constant hard acceleration, use efficient gearing and switch off motors and sensors when they aren't needed.

Step 8 of 10Try the calculator

Battery runtime estimator

Estimate runtime from battery capacity and average current. The usable fraction accounts for real-world losses.

Ideal runtime
2.5 h
Realistic runtime
2 h
Realistic runtime
120 min

Step 9 of 10Note

Step 10 of 10Practice · Work it out

A robot draws an average of 500 mA from a 1,500 mAh battery. What is its ideal runtime in hours?