Skip to content
Tutorials Center
My learning

Topics

Lesson 3 of 38 ยท Getting Started

Robot Components

Meet the building blocks of every robot: structure, actuators, sensors, controllers, power and communication, and estimate a robot's battery life in Python.

Open any robot and you find the same handful of subsystems, however different the outside looks. Knowing them lets you read a datasheet, plan a build, or find out why a prototype stops after ten minutes. This lesson names each subsystem, explains what it does, and ends with a power budget calculation, since battery life is one of the first limits every builder meets.

flowchart TB
    P["Power<br/>battery, regulators"] --> C
    P --> A
    P --> S
    S["Sensors"] -->|"measurements"| C["Controller<br/>(microcontroller, computer)"]
    C -->|"commands"| D["Motor drivers"]
    D --> A["Actuators"]
    A --> M["Mechanical structure"]
    C <-->|"radio, Ethernet, USB"| H["Operator / network"]

Energy flows from the battery to everything; information flows from sensors to the controller and out to the actuators.

Mechanical structure

The structure holds everything together: frame, links, gears, bearings, wheels or legs. Designers look for stiffness (so the tool does not wobble), low weight (so motors can be small) and low backlash (play in gears). A link is a rigid part; a joint connects two links and allows relative motion. Common joints are revolute (rotating, like an elbow) and prismatic (sliding, like a piston). Chapter 2 models these in detail, starting with rotations and transforms.

Actuators

An actuator turns energy into motion or force.

  • Electric motors: brushed DC motors, brushless motors, servo motors and stepper motors are the most common (Motors and Actuators).
  • Hydraulic: liquid under pressure gives enormous force (excavators, heavy legged robots) but needs pumps and risks leaks.
  • Pneumatic: compressed air is cheap and fast but hard to position precisely (grippers, soft robots).
  • Others: shape-memory alloys, piezoelectric crystals and artificial muscles for small, special jobs.

Motors rarely drive a joint directly. A gearbox trades speed for torque so a small fast motor can lift a heavy arm.

Sensors

Sensors fall into two groups:

  • Proprioceptive sensors measure the robot itself: encoders (joint angle), motor current, battery voltage, IMU (acceleration and rotation).
  • Exteroceptive sensors measure the world: ultrasonic and infrared distance sensors, lidar, cameras, bumpers, microphones.

Choosing sensors is about range, resolution, update rate, noise and price. See Sensors and Noise and Distance Sensors.

Controllers and computing

The controller reads sensors and drives actuators. Most robots use two levels:

  • A microcontroller (Arduino, STM32, ESP32) runs fast, predictable loops such as motor control at 1 kHz.
  • A single-board computer or embedded GPU (Raspberry Pi, Jetson) runs heavy tasks: cameras, mapping, planning, networking.

The two talk over a serial link or a robotics middleware. Splitting the work keeps the timing-critical part simple and hard real-time.

Power

Power is the unglamorous limit. A battery (usually lithium-ion or lithium-polymer) feeds a regulator that makes stable voltages (5 V for logic, 12 V for motors). Motors can pull large current spikes when they start or stall, so the supply must handle them without browning out the controller. Beginners often power both from one source and see random resets as the motors start. Better to use separate regulators, or add capacitors, and to measure the real current.

Python A power budget and battery life estimate

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Notice how the computer and drive motors dominate. Cutting a small load matters little; duty-cycling a big one matters much more.

Communication

Components talk over buses: I2C and SPI for chips on a board, UART/serial for simple links, CAN bus for robust multi-device networks (common in vehicles and arms), Ethernet for cameras and lidar. Wireless links (Wi-Fi, Bluetooth, radio) connect to an operator. Each link has latency and can fail, so a safe robot stops when messages stop arriving (a watchdog).

Python A watchdog timer in 20 lines

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

This pattern, never trust that the next message will come, appears again in Applications and Safety.

Putting it together

When you plan a robot, work through the list: what must the structure carry, which actuators and gearing produce the speed and torque, which sensors measure what the controller needs, how much computing, and what power do all of those add up to? Each answer affects the others: heavier batteries need stronger motors, which need bigger batteries. That loop is why small, light designs are so valuable.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which of these is a proprioceptive sensor?

    Proprioceptive sensors measure the robot itself (joint angles, current, orientation). Lidar, cameras and ultrasonics sense the outside world.
  2. 2. Why do robots often use a gearbox between motor and joint?

    A gearbox lowers speed and raises torque, so a small fast motor can move a heavy load.
  3. 3. A robot resets randomly whenever the motors start. What is a likely cause?

    Start-up current surges can sag the voltage and reset the controller. Separate regulators or capacitors help.
  4. 4. What does a watchdog do?

    A watchdog detects silence from a link or a program and puts the robot into a safe state.

Summary

  • Every robot has structure, actuators, sensors, a controller, power and communication.
  • Proprioceptive sensors measure the robot; exteroceptive ones measure the world.
  • Microcontrollers handle fast real-time loops, bigger computers handle perception and planning.
  • Power budgets and watchdogs are basic engineering habits, not extras.

Next: Degrees of Freedom and Workspace