The Parts of a Robot
Meet the five building blocks of every robot: body, sensors, controller, actuators and power, and learn what degrees of freedom mean for movement.
Welcome back!
Step 1 of 11Learn
Taking apart a robot vacuum
If you opened up a typical robot vacuum, you'd find the same building blocks found in almost every robot, from classroom kits to Mars rovers.
- The body (chassis or frame): the round plastic shell and inner frame that hold everything together and protect the parts.
- Sensors: a bumper with switches behind it, infrared "cliff sensors" underneath that stop it from falling down stairs, wheel encoders that count wheel rotations and, on newer models, a camera or laser scanner.
- The controller: a small circuit board with a microcontroller, a tiny computer that runs the cleaning program.
- Actuators: two wheel motors, a motor for the brushes and one for the suction fan.
- Power: a rechargeable battery pack and the circuits that manage charging.
Each block depends on the others. Sensors are useless without a controller to read them; a controller can't do anything without actuators; and nothing works without power. When a robot misbehaves, troubleshooting usually means asking which block is at fault. Did the sensor read the wrong value? Did the code make a bad decision? Did the motor fail to respond? Is the battery too low to drive the motors properly?
In the rest of this course you'll look at each block in turn.
Step 2 of 11Practice · Match the pairs
Match each part of a robot vacuum to its building block.
Tap an answer, then tap the place where it belongs (or drag it there).
- Cliff sensor under the front edge
- Wheel motor
- Microcontroller running the cleaning program
- Lithium-ion battery pack
- Plastic shell and frame
Step 3 of 11Diagram
The five building blocks of a robot vacuum
Tap a shape with to see more.
- Robot vacuum
- Body
Shell and frame that hold and protect everything.
- Sensors
Bumper switches, cliff sensors, wheel encoders, sometimes lidar.
- Controller
A microcontroller running the cleaning program.
- Actuators
Wheel motors, brush motors and the suction fan.
- Power
A rechargeable lithium-ion battery pack.
Step 4 of 11Learn
The controller: a robot's brain
Most small robots are run by a microcontroller: a single chip that contains a processor, memory and input/output pins. You write a program on a computer, upload it to the microcontroller, and it runs that program as soon as it gets power, usually in an endless loop.
A microcontroller is much less powerful than a laptop, but it's cheap, small, uses little power and is very good at one thing: reading pins and switching outputs quickly and reliably. A typical hobby board runs at tens of megahertz and has a few kilobytes of working memory, enough for a line-following or obstacle-avoiding robot.
Bigger robots that process camera images or build maps often add a single-board computer running a full operating system, while one or more microcontrollers still handle the motors and fast sensors. Self-driving cars and humanoid robots may contain dozens of processors.
The controller connects to the other blocks through inputs and outputs. Sensors feed inputs. Outputs send signals to motor drivers, circuits that take a small control signal and switch the large current a motor needs. A microcontroller pin can only supply a tiny current, often a few tens of milliamps at most, while even a small motor can draw hundreds of milliamps or more. Connecting a motor straight to a pin is one of the most common beginner mistakes, and it can destroy the board.
Step 5 of 11Practice · Choose one
Why do robots use a motor driver between the microcontroller and a motor?
Step 6 of 11Practice · Diagram
From a sensor reading to a turning wheel
Which block handles the large current that actually spins the motor?
Tap the shape that answers the question, then press Check.
- Sensor
Sends a small signal, such as a distance reading.
- Microcontroller
Runs the program and outputs a tiny control signal.
- Motor driver
Uses that tiny signal to switch the big current from the battery.
- Motor
Turns electrical energy into rotation.
- Gears and wheel
Gears trade speed for torque before the wheel moves the robot.
Step 7 of 11Learn
Degrees of freedom
Hold your arm out and count the independent ways it can move. Your shoulder can swing forward and back, up and down, and twist. Your elbow bends. Your wrist can bend, tilt sideways and rotate. That's seven independent motions, so engineers say the human arm has about seven degrees of freedom (DOF).
Each degree of freedom in a robot usually needs its own joint and its own actuator. A simple robot gripper that opens and closes has 1 DOF. A typical industrial arm has 6 DOF, which is the minimum needed to place its tool at any position (3 DOF: left-right, forward-back, up-down) and point it in any orientation (3 DOF: roll, pitch and yaw) within its reach.
A wheeled robot on a floor has its own way of counting. It can move in two directions on the floor and turn, but a normal two-wheeled robot can't slide directly sideways; it has to turn first, just like a car parallel parking.
More degrees of freedom mean more flexibility, but also more motors, more weight, more cost, more power and much more complex control. Designers give a robot only the degrees of freedom the task really needs. A robot that only moves boxes along a straight line might need just two.
Step 8 of 11Practice · Work it out
A robot arm has a rotating base, a shoulder joint, an elbow joint, a wrist that bends and a wrist that rotates, plus a gripper that opens and closes. Counting the gripper, how many degrees of freedom does it have?
Step 9 of 11Compare
Microcontroller vs. single-board computer
| Aspect | Microcontroller | Single-board computer |
|---|---|---|
| What it is | One chip with processor, memory and pins | A small full computer on one board |
| Runs | One program in a loop, starts instantly | An operating system with many programs |
| Good at | Fast, reliable control of motors and sensors | Cameras, maps, networking, heavy math |
| Power use | Very low | Higher |
| Typical robot role | Low-level control | High-level planning and vision |
Step 10 of 11Note
Step 11 of 11Practice · True or false
Adding more degrees of freedom to a robot is always better because it makes the robot more capable.
Lesson complete!