FixTheRobot Explore Robotics / Robot Foundations

Course for beginners · 31 lessons · 5 labs · start here

Robot Foundations

Understand how robots sense, move, localize, plan, and control.

  1. Sense
  2. Localize
  3. Plan
  4. Control
  5. Act
  6. Sense again

All 31 lessons and all 5 labs are open.

Start with lesson 1: What Is a Robot?Go straight to the labs

How this course works

Who it is for. Anyone who has never studied robotics. You need school arithmetic and nothing else: no programming for the lessons, and the labs that use Python give you starter code. Each new idea (a coordinate, an angle in radians, a time step) is explained where it first appears.

What a lesson looks like. About ten minutes. One idea in plain words, the words to know, an example worked with small numbers, something to try with a pencil, the mistakes beginners make, and three questions to check yourself.

One robot. The course follows Pip, a small two-wheeled robot that fetches parts across a workshop floor. Each module gives Pip one more ability, and each ends by naming the thing it took for granted, which the next module then removes.

Lessons, then a lab. Five modules end in a lab where you drive and program a simulated robot in your browser. If you prefer to learn by doing, start with the labs and come back to a lesson when something is unclear.

The five labs

In order. Each takes 15 to 45 minutes and saves your progress in this browser.

The course, module by module

Stage 1: Meet the robot What a robot is, what it is made of, and the few numbers used to describe it. No code.

Module 1 · Open

What Is a Robot?

What makes a machine a robot, and what is inside one?

A robot is a machine that senses, decides and acts, again and again. This module names its parts, the loop they run, and the kinds of robot you will meet.

Before this module: Nothing. Curiosity is enough.

Theory (4)
  1. 1.1What Is a Robot?Lesson
  2. 1.2The Parts of a RobotLesson
  3. 1.3The Robot Loop: Sense, Think, ActLesson
  4. 1.4Kinds of Robots and the Problems They ShareLesson
Labs (0)

This module has no lab.

What this module takes for granted: Everything is in words. Module 2 adds the numbers.

Where this goes on the site

Module 2 · Open

Describing a Robot with Numbers

How do you write down where a robot is and how it is moving?

Position, heading, speed and time step: four ideas, written with a handful of numbers, that every later module uses.

Before this module: Module 1. Arithmetic with decimals. Angles in degrees; radians are introduced here.

What this module takes for granted: The robot goes exactly where the numbers say. Module 3 shows why a real one does not.

Where this goes on the site

Stage 2: Move and sense How commands become motion, and how measurements come back.

Module 3 · Open

Making a Robot Move

How does a number in a program become motion on the floor?

Motors turn wheels, wheels move the body. You will see how two wheel speeds steer a robot, why sending a command is not the same as arriving, and how feedback fixes that.

Before this module: Module 2.

Theory (4)
  1. 3.1Motors, Wheels and Other ActuatorsLesson
  2. 3.2How a Two-Wheeled Robot DrivesLesson
  3. 3.3Commands Are Not MotionLesson
  4. 3.4Feedback: Measure, Compare, CorrectLesson
Labs (1)
  1. Lab 1Make Your First Robot MoveBrowser lab · about 25–35 minutes · after lesson 3.4

What this module takes for granted: The robot is told its own position exactly. Module 4 asks where that knowledge comes from.

Where this goes on the site

Module 4 · Open

Sensing the World

How does a robot find out anything about the world, or about itself?

A sensor turns something physical into a number, never perfectly. This module sorts sensors into those that look outward and those that look inward, and shows why robots carry several.

Before this module: Modules 2 and 3.

What this module takes for granted: Sensor readings are used one at a time. Modules 6 and 7 build something lasting from them.

Where this goes on the site

Stage 3: Get somewhere Reach a goal, then remove the two things that were given for free: the map and the position.

Module 5 · Open

Reaching a Goal

How does a robot get from here to there without hitting anything?

A goal, a path to it, and a way of following the path. The module joins sensing, planning and control into one working robot for the first time.

Before this module: Modules 3 and 4.

Theory (4)
  1. 5.1Goals, Paths and PlansLesson
  2. 5.2Finding a Path on a GridLesson
  3. 5.3Following a PathLesson
  4. 5.4When the World Changes: Obstacles and ReplanningLesson
Labs (1)
  1. Lab 3Make the Robot Reach the GoalBrowser lab · about 20–30 minutes · after lesson 5.3

What this module takes for granted: The robot is handed a finished map and its true position. Module 6 removes the first gift, module 7 the second.

Where this goes on the site

Module 6 · Open

Building a Map

Where does the map come from?

A map is the robot's memory of what it has sensed. You will build the simplest useful kind, a grid of free, occupied and unknown cells, and find out what it depends on.

Before this module: Modules 4 and 5.

Theory (3)
  1. 6.1What Is a Map?Lesson
  2. 6.2Occupancy Grids: Free, Occupied, UnknownLesson
  3. 6.3A Map Needs a PoseLesson
Labs (1)
  1. Lab 4Build the Robot's WorldBrowser lab · about 25–35 minutes · after lesson 6.3

What this module takes for granted: The map is drawn from a position that is assumed correct. Module 7 asks how the robot knows it.

Where this goes on the site

Module 7 · Open

Knowing Where You Are

How does a robot know where it is?

Counting wheel turns gives a position that slowly goes wrong. Seeing something whose place is known pulls it back. Predict, then correct: the idea behind every estimator in robotics.

Before this module: Modules 3, 4 and 6.

Theory (4)
  1. 7.1Dead Reckoning: Position from Counting Wheel TurnsLesson
  2. 7.2Why Drift GrowsLesson
  3. 7.3Landmarks: Correcting with Something You RecogniseLesson
  4. 7.4Predict, Then CorrectLesson
Labs (1)
  1. Lab 5Where Am I?Browser lab · about 35–45 minutes · after lesson 7.4

What this module takes for granted: Each part has been studied alone. Module 8 runs them together.

Where this goes on the site

Stage 4: The whole robot How the parts run together as one system, and which track to take next.

Module 8 · Open

The Robot as a System, and Your Next Step

How do the parts run together, and what should I learn next?

Many small programs passing messages, tested in simulation before they touch hardware, built to fail safely. Then a map of this site, so you can choose your track.

Before this module: Modules 1 to 7.

Theory (4)
  1. 8.1Robot Software: Small Programs That TalkLesson
  2. 8.2Simulation and Real RobotsLesson
  3. 8.3When Things Go Wrong: Failing SafelyLesson
  4. 8.4Where to Go NextLesson
Labs (0)

This module has no lab.

Where this goes on the site

After the foundations, go deeper in the specialised tracks, starting with the Control labs.