Robot Foundations · Module 3: Making a Robot Move
Motors, Wheels and Other Actuators
A motor spins, a wheel rolls, and the robot moves by one wheel circumference per turn.
A program can only produce numbers. Somewhere, a number has to become a push on the floor. The part that does this is the actuator, and on Pip it is an electric motor attached to a wheel. This lesson follows a command from the computer down to the floor, and gives you the one formula that links how much a wheel turns to how far the robot goes.
What you will be able to do
- Explain what an actuator is and name three kinds.
- Describe the chain from command to motion: computer, motor driver, motor, gearbox, wheel.
- Compute how far a wheel rolls from its radius and the number of turns.
- Convert between how fast a wheel spins and how fast the robot moves.
The idea
An actuator is any part that turns energy into motion or force. It is the "act" of sense, think, act.
| Actuator | What it does | Where you find it |
|---|---|---|
| Electric motor | Spins continuously. Speed and direction are set by the electrical power it receives. | Wheels, propellers, conveyor belts |
| Servo | A motor with its own sensor and controller built in. You ask for an angle and it goes there and holds it. | Robot arm joints, steering, camera mounts |
| Linear actuator | Pushes and pulls in a straight line. | Lifts, grippers, adjustable legs |
| Pneumatic or hydraulic | Uses pressurised air or oil to push a piston. Strong and fast. | Factory grippers, excavators, some legged robots |
From a number to a push on the floor
On Pip, one command passes through five stages on its way to the floor:
- The computer writes a number: the speed it wants from the wheel.
- The motor driver turns that small signal into battery power for the motor.
- The motor spins. Small motors spin fast and weakly, thousands of turns a minute.
- A gearbox trades speed for strength: the output turns many times slower and pushes many times harder.
- The wheel grips the floor and rolls, carrying the robot with it.
Each stage takes a little time and loses a little accuracy. Keep that in mind for the lesson after next.
How far does a wheel roll?
Mark a spot on a wheel's rim, put it on the floor and roll the wheel one full turn. The mark comes back down exactly one circumference further along: the distance around the rim. For a wheel of radius r the circumference is 2 × π × r.
The distance rolled is the number of turns multiplied by the circumference.
distance = turns × 2 × π × r
Pip's wheels have r = 0.05 m, so one turn is 0.314 m, and 1 m of travel takes 1 ÷ 0.314 = 3.18 turns.
This is where radians pay off. One full turn is 2 × π radians, so "turns × 2 × π" is simply the angle the wheel has turned, in radians. The formula shrinks to:
Distance rolled is the radius multiplied by the angle turned, in radians.
distance = r × angle
Divide both sides by time and the same rule holds for speeds: the speed of the robot is the radius times the turning speed of the wheel.
Forward speed is the wheel radius multiplied by how fast the wheel spins, in radians per second.
v = r × (wheel turning speed)
At Pip's top speed of 0.5 m/s the wheels spin at 0.5 ÷ 0.05 = 10 rad/s, which is 1.59 turns every second.
A wheel converts turning into travel: distance = radius × angle. Everything a wheeled robot does rests on this.
Read the formula in both directions. Forward: the computer wants a speed, so it commands a wheel spin. Backward: an encoder counts how far the wheel has turned, so the computer can work out how far the robot has gone. The second direction is how Pip will estimate its own position in module 7.
The formula assumes the wheel rolls without slipping. On a dusty floor, or when the robot accelerates hard, the wheel turns and the robot does not go as far. The wheel did turn. The formula simply no longer describes the robot.
Words to know
- Actuator
- A part that turns energy into motion or force. On Pip: two wheel motors.
- Motor driver
- The circuit that delivers battery power to a motor according to a command from the computer. On Pip: one board for both motors.
- Gearbox
- A set of gears between the motor and the wheel that reduces speed and increases turning force. On Pip: a 30 to 1 gearbox: the motor makes 30 turns for one turn of the wheel.
- Radius (r)
- The distance from the centre of a wheel to its rim. On Pip: 0.05 m.
- Circumference
- The distance around the rim: 2 × π × r. On Pip: 0.314 m.
- Wheel turning speed
- How fast the wheel spins, in radians per second. One turn per second is about 6.28 rad/s. On Pip: 10 rad/s at top speed.
- Slip
- When a wheel turns without moving the robot by the matching distance. On Pip: on a patch of oil the wheels spin and it barely moves.
A worked example: sizing Pip's motor
Pip must drive at 0.5 m/s. Its wheels have a radius of 0.05 m and sit behind a 30 to 1 gearbox. How fast must the motor spin?
- Wheel turning speed. v = r × (wheel turning speed), so the wheel turning speed is v ÷ r = 0.5 ÷ 0.05 = 10 rad/s.
- In turns per second. One turn is 2 × π ≈ 6.28 rad, so 10 ÷ 6.28 = 1.59 turns per second.
- In turns per minute. 1.59 × 60 ≈ 95 turns per minute at the wheel.
- At the motor. The gearbox ratio is 30, so the motor spins 30 times faster: 95 × 30 = 2850 turns per minute.
A few thousand turns a minute is typical for a small electric motor, so this design is sensible. Had the answer been 300,000, you would know at once that the wheels are too small or the gearbox ratio too high.
And the other direction. An encoder reports that a wheel has made 5 full turns. The robot has moved 5 × 0.314 = 1.57 m, provided the wheel did not slip.
Try it yourself
Find something round that rolls: a bicycle wheel, a roll of tape, a mug on its side. Measure its radius. (a) Compute its circumference. (b) Mark the rim, roll it one full turn along a table or the floor, and measure how far it went. (c) How close are the two numbers, and why might they differ?
What to expect
For a roll of tape with radius 5 cm, the circumference is 2 × 3.14 × 0.05 = 0.314 m, about 31 cm. Your measurement should be within a centimetre or so. Differences come from measuring the radius slightly wrong (an error of 1 mm in radius changes the answer by 6 mm), from the object slipping, and from it not rolling perfectly straight. Those are the same three error sources a robot has.
Common mistakes
"Bigger wheels make the robot faster for free."
For the same motor speed, a bigger wheel does cover more ground per turn. It also needs more turning force to push the same robot, so the motor accelerates more slowly and climbs worse. Wheel size and gearbox ratio are chosen together.
"The computer tells the wheel how far to go."
It commands power or speed. How far the wheel has gone is measured afterwards, by an encoder. The two do not always agree.
"I used the diameter in the formula."
The formula uses the radius, which is half the diameter. Using the diameter doubles every distance. Check which one a data sheet gives.
Remember this
- An actuator turns energy into motion. On wheeled robots it is a motor, a gearbox and a wheel.
- One turn of a wheel moves the robot one circumference: 2 × π × r.
- With angles in radians: distance = r × angle, and speed v = r × wheel turning speed.
- The formula holds only while the wheel does not slip.
Check yourself
Three questions. Write an answer in your own words, then reveal the explanation. Nothing you type leaves your browser.
Question 1
A wheel has a radius of 0.1 m. How far does the robot move when the wheel makes 3 full turns?
Explanation
Circumference = 2 × π × 0.1 ≈ 0.628 m. Three turns: 3 × 0.628 ≈ 1.88 m.
Question 2
A robot with wheels of radius 0.04 m must drive at 0.8 m/s. How fast must the wheels spin, in rad/s?
Explanation
Wheel turning speed = v ÷ r = 0.8 ÷ 0.04 = 20 rad/s (about 3.2 turns per second).
Question 3
An encoder says a wheel has turned enough for 2 m of travel, but a tape measure shows the robot moved 1.7 m. Give two possible explanations.
Explanation
The wheel slipped (it turned without gripping, for example while accelerating or on a smooth floor), or the radius used in the calculation is larger than the real one (a worn or squashed tyre has a smaller effective radius). A third possibility: the robot did not travel in a straight line, so the tape measured a shorter straight distance than the path it drove.
What’s next
One wheel moves a robot along a line. Pip has two, and the difference between them is how it steers.
Where this goes on the site
Nothing below is needed to continue this course. These pages take the topic of this module further, and most assume more mathematics or Python than this course does.
- LaterTune a PID Controller
The feedback of this module with two more terms.
- LaterFix the Oscillating Robot
What happens when the correction is too strong.
- LaterRobot Motion Models for Navigation
Other ways robots drive: car-like, omnidirectional.