Skip to content
RoboLearn
Not completed

Sense, think, act (the control loop)

FoundationsBeginner20 minDrive a virtual robot ↓Before this: What is a robot?

What you’ll learn

  • The input → process → output model
  • Why a robot repeats this loop over and over
  • How to describe any robot behaviour as a loop

Input, process, output

Computer scientists call sense–think–act by another name: input → process → output (IPO).

┌──────────┐ ┌───────────┐ ┌──────────┐
│ INPUT │ ──▶ │ PROCESS │ ──▶ │ OUTPUT │
│ (sense) │ │ (think) │ │ (act) │
└──────────┘ └───────────┘ └──────────┘
▲ │
└────────── the world changes ◀─────┘

The arrow coming back is the important part. When the robot acts, the world changes (it moves closer to the wall, for example). Next time it senses, it sees a new situation and may decide something different. This repeating cycle is called a control loop.

Open loop vs closed loop

  • Open loop: the robot acts without checking the result. “Drive forward for 3 seconds.” If a wheel slips, it never knows.
  • Closed loop: the robot checks a sensor and corrects itself. “Drive forward until the distance sensor reads 10 cm.”

Closed-loop control is what makes robots reliable. Most of this course builds towards it.

Finished this lesson?