Skip to the lesson
FixTheRobot Explore Robotics / Robot Foundations / Module 1 / Lesson 2

Robot Foundations · Module 1: What Is a Robot?

The Parts of a Robot

Six parts: a body to hold things, actuators to move, sensors to measure, a computer to decide, power to run it all, and software that tells the computer what to do.

  • Lesson 2 of 4
  • Beginner
  • No code
  • About 9 minutes

Robots look wildly different: a vacuum cleaner, a welding arm, a drone, a rover on Mars. Open any of them and you find the same six kinds of part doing the same six jobs. Once you can name those parts, an unfamiliar robot stops being a mystery and becomes a list you can read.

What you will be able to do

  • Name the six parts every robot has.
  • Say what each part does, in one sentence.
  • Match each part to the step of sensing, deciding or acting that it serves.
  • Point to each part on the course robot.

The idea

The last lesson said a robot senses, decides and acts. Each of those three jobs needs hardware, and the hardware needs somewhere to sit and something to run on. That gives six parts.

The six parts of a robot, the job of each and which step it serves
PartIts jobServesEveryday comparison
Body (also called the chassis or frame)Holds every other part in a fixed place and gives the robot its shape.EverythingYour skeleton
ActuatorsTurn electrical energy into motion or force: motors, and things driven by motors.ActYour muscles
SensorsTurn something physical (light, distance, rotation, contact) into a number.SenseYour eyes, ears and sense of touch
ComputerReads the sensor numbers, runs the program and sends commands to the actuators.DecideYour brain
PowerSupplies energy to all of the above, usually from a battery.EverythingFood
SoftwareThe program: the instructions that say what to do with each measurement.DecideWhat you have learned

Five of the six are things you can hold. The sixth, software, is the one you will spend most of your time on. Two robots with identical hardware behave completely differently with different software, in the same way that two identical phones do different things depending on the app that is open.

The parts on Pip

Here is Pip, the robot of this course, seen from above.

Pip seen from above, with its parts labelledA round robot body seen from above, facing right. Two drive wheels, each with its own motor, sit on the left and right sides. A laser scanner sits near the front. A bumper switch covers the front edge. A battery and a small computer sit inside the body, and a small free-rolling wheel at the back keeps it level. forward Wheel and motor (actuator) Laser scanner (sensor) Bumper switch (sensor) Computer Battery (power) Free-rolling wheel Wheel and motor (actuator)
Pip from above. Two motors drive two wheels (the actuators). A laser scanner and a bumper are two of its sensors. A third kind of sensor is hidden inside each motor: an encoder, which counts how far the wheel has turned.
  • Body: a round plastic and metal base about 35 cm across, with a flat top to carry parts.
  • Actuators: two electric motors, one for each drive wheel. The wheels are 10 cm across and sit 30 cm apart. A third, free-rolling wheel at the back just stops the body from tipping. It has no motor.
  • Sensors: a laser scanner that measures the distance to whatever is around it, out to 8 m. An encoder on each wheel that counts rotation. A bumper switch at the front that closes when Pip touches something.
  • Computer: a small single-board computer, about the size of a playing card.
  • Power: a rechargeable battery, the heaviest single part, placed low and central so that Pip does not tip.
  • Software: the programs you will meet across this course: one that reads the sensors, one that works out where Pip is, one that plans a route, one that steers.

How the parts connect

Follow one trip around the robot. A sensor produces a number and sends it along a wire to the computer. The software reads the number and computes a command. The computer sends the command to a small circuit called a motor driver, which switches battery power to the motor (the computer itself is far too weak to power a motor). The motor turns the wheel, the body moves, and the sensor now reads something different.

Signals flow from sensors to the computer to the actuators. Power flows from the battery to all three.

When a robot misbehaves, the first useful question is: which of the six parts is at fault? A flat battery, a loose wheel, a dirty sensor and a bug in the program can all produce the same symptom: "it does not go where I told it".

Words to know

Actuator
Any part that produces motion or force. Most are electric motors or are driven by one. On Pip: the two wheel motors.
Sensor
A part that measures something physical and reports it as a number. On Pip: the laser scanner reports a distance in metres.
Encoder
A sensor attached to a motor or wheel that counts how far it has turned. On Pip: each wheel's encoder counts 360 steps for one full turn.
Chassis
The frame that everything is fastened to. Another word for the body. On Pip: the round base.
Motor driver
A circuit between the computer and a motor. It takes a small command signal and delivers battery power to the motor. On Pip: one driver board runs both wheel motors.
Hardware and software
Hardware is every part you can touch. Software is the program that runs on the computer. On Pip: changing the route planner is a software change. Fitting bigger wheels is a hardware change.

A worked example: reading a robot you have never seen

A warehouse robot arm picks boxes off a conveyor belt and stacks them on a pallet. You have never seen it before. Find the six parts by asking what must be there.

  1. Body. A heavy base bolted to the floor and a chain of rigid metal segments (called links) joined by hinges (called joints).
  2. Actuators. It bends at each joint, so there is a motor at each joint. It grips boxes, so there is one more actuator in the gripper, often a suction cup driven by an air pump.
  3. Sensors. It has to know its own shape, so each joint has an encoder measuring its angle. It has to find boxes that arrive in different places, so there is a camera above the belt. It has to know when it is holding a box, so the gripper has a pressure sensor.
  4. Computer. Usually in a cabinet beside the arm rather than inside it, because there is room and it stays cool.
  5. Power. It never leaves its spot, so it plugs into the wall. No battery is needed.
  6. Software. Programs that find the box in the camera image, work out the joint angles that put the gripper on the box, and move each motor smoothly to those angles.

Compare this with Pip. Wheels became joints, the laser scanner became a camera, the battery became a wall socket. The list of six did not change.

Try it yourself

A small quadcopter drone, the kind with four propellers that carries a camera. Write down what you think each of its six parts is. For sensors, think about what the drone needs to know in order not to fall over.

One possible answer

Body: a light plastic or carbon frame with four arms. Actuators: four motors, each spinning a propeller. Sensors: a motion sensor that measures tilt and rotation (so it can stay level), a pressure sensor for height, a satellite receiver for position outdoors, and the camera. Computer: a small board called a flight controller. Power: a battery, which is a large share of the weight and sets the flight time. Software: the program that keeps it level, holds its position and follows the pilot's commands.

Common mistakes

"The computer is the robot."

A computer with no sensors and no actuators is a computer. A robot is the whole loop: without wheels it cannot act, and without sensors it is guessing.

"Better hardware fixes a robot that behaves badly."

Sometimes. More often the fault is in the software, or in how a part was mounted or connected. Find out which part is at fault before buying a new one.

"A motor is told a position or a speed directly by the computer."

The computer sends a weak signal. A motor driver turns it into power. In between there are limits and delays, which module 3 looks at.

Remember this

  1. Every robot has a body, actuators, sensors, a computer, a power source and software.
  2. Actuators serve acting, sensors serve sensing, the computer and its software serve deciding. The body and the power source serve all three.
  3. Signals flow from sensor to computer to actuator. Power flows from the battery to everything.
  4. A robot you have never seen can be read by looking for the six parts.

Check yourself

Three questions. Write an answer in your own words, then reveal the explanation. Nothing you type leaves your browser.

Question 1

A robot lawn mower drives around a garden, turns back at the edge of the lawn and returns to its charger when the battery is low. Name one actuator and two things it must be sensing.

Explanation

Actuators: the wheel motors, and the motor that spins the blade. It must sense the edge of the lawn (many use a buried wire that a sensor detects, others use satellite positioning or a camera) and its battery level. Most also sense bumps and being lifted, so the blade can stop.

Question 2

Pip's left wheel motor works when tested alone, but the wheel does not turn when the program asks it to. List three different parts that could be at fault.

Explanation

Any three of: the software (the program never sends the command, or sends it to the wrong motor), the wiring between computer and motor driver, the motor driver itself, the power supply to the driver (a low battery), or the wheel being loose on the motor shaft. The symptom is the same for all of them, which is why you check the parts one at a time.

Question 3

Two robots are built from exactly the same hardware. One follows walls, the other chases a ball. What differs between them?

Explanation

Only the software. The sensors report the same kinds of numbers and the motors accept the same kinds of commands in both. The program in between decides what the numbers mean and what to do about them.

What’s next

You know the parts. The next lesson sets them in motion and looks at the cycle they repeat.

Next lesson

The Robot Loop: Sense, Think, Act

Describe the loop a robot repeats many times a second and explain why repeating it matters more than getting one step perfect.

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.