TactivergeLite

Lite / Textbooks / Feedback and Control / Chapter 1

1. Open and closed loop

Version 1 · Technically checked (automated checks only) · 3 source lessons · Full interactive version

Introduction

A toaster runs for a set time whether the bread is pale or burnt: that is open loop. A thermostat measures the room and acts on the difference between what it wants and what it gets: that is closed loop. The difference, the error, is the heart of feedback. Closed loops correct for disturbances nobody predicted, but they depend completely on the sensor telling the truth.

Figure 1.1. Measure, compare, correct (described in words)

A feedback loop: a setpoint of 22 °C enters a summing junction, the measured 19 °C is subtracted, and the error of 3 °C drives a controller, which drives the room, whose temperature is measured and fed back.

Explanation

Built from 3 School lessons. Each part is the lesson's own explanation.

1.1 Sense, decide, act

A toaster burns frozen bread and undercooks warm bread. A smart greenhouse never lets its plants freeze. What does the greenhouse know that the toaster doesn't?

Information is an input too

A thermometer reading, a button press, a camera image: these carry information into a system. Information doesn't push anything, but it can change what the system decides to do.

Sense → decide → act

Sense: a sensor measures something (temperature). Decide: a controller compares it with a target, called the setpoint (20 °C), using a rule. Act: an actuator changes the world (the heater switches on). A rule can be as simple as: IF temperature < 20 °C THEN heater ON, ELSE heater OFF.

Open loop or closed loop?

Open loop: the system acts without checking the result, like a timer toaster or a garden sprinkler on a clock. Closed loop: it measures the result and adjusts, like a thermostat. Closed loops cope with surprises (a cold night, frozen bread) but need a sensor and a good rule. The measuring-and-adjusting is called feedback.

Common mix-ups

Open the Lite lesson: Sense, decide, act

1.2 Open loop or closed loop?

A robot was told to roll exactly 40 wheel-turns to a door. On a polished floor it stopped a hand's width short. What was it missing?

Open loop: act from a plan

Open-loop control decides what to do in advance and never checks the result. A toaster on a timer, a robot told 'drive 40 wheel turns'. Simple and cheap, but if the world isn't exactly as expected, the result is wrong and nobody notices.

Closed loop: measure and correct

Closed-loop control measures the result and uses it to decide what to do next. The measurement is fed back, which is why it's called feedback. It's a sense–think–act loop aimed at a target.

The gap drives everything

The thinking step usually starts with one subtraction:

gap = target − measured value

Big gap: push hard. Zero gap: you've arrived. Negative gap: you've gone too far, so push back. The controller doesn't need to know why it's off, just how far.

Common mix-ups

Open the Lite lesson: Open loop or closed loop?

1.3 Open loop or closed loop?

A toaster with a timer and an oven with a thermostat both heat things up. Only one of them knows whether it worked. Which?

Open loop: act and hope

In open-loop control the command is decided in advance: run the toaster for 2 minutes, run the motor at 60%. It is simple and cheap, and fine when conditions never change. But it cannot notice a disturbance (thicker bread, a heavier cart) or its own mistakes.

Closed loop: measure and correct

In closed-loop (feedback) control a sensor measures the result, the controller compares it with the setpoint (the target) to get the error = setpoint − measurement, and adjusts the actuator to shrink the error. Then it measures again, every loop pass. A thermostat, cruise control and a self-balancing robot all do this.

What feedback buys, and costs

Feedback rejects disturbances and copes with machines that are not quite what you expected. The cost is a sensor, more design, and new risks: a badly tuned loop can overshoot, oscillate or, with a broken sensor, act on nonsense. That is why the noise and calibration work earlier this term matters.

Common mix-ups

Open the Lite lesson: Open loop or closed loop?

Worked examples

Sense, decide, act: example 1

Write a sense–decide–act rule for a night light.

Solution

Sense: a light sensor measures brightness. Decide: IF brightness < a chosen level THEN light ON, ELSE light OFF. Act: the LED switches. It is closed loop for darkness; the system checks the room every moment.

Open loop or closed loop?: example 1

A robot wants to be 200 cm along a corridor. Its encoder says it's at 165 cm. What's the gap, and what should it do?

Solution

gap = 200 − 165 = 35 cm. Positive, so keep driving forwards. If it later reads 207 cm, the gap is −7 cm: it has overshot and should reverse a little.

Open loop or closed loop?: example 1

Classify: (a) a washing machine filling for exactly 90 s, (b) a washing machine filling until a level sensor trips, (c) a sprinkler on a timer.

Solution

(a) Open loop: time is fixed. (b) Closed loop: it stops when the measured level reaches the target. (c) Open loop, unless it also checks a soil-moisture sensor.

Laboratory

These run in a browser on the full site (they need a faster connection). Simulations are simplified educational models.

Practice

Each question links to its Lite lesson, where your answer is checked on our server and a wrong answer gets a hint. Answers are never sent to your device.

  1. Which is a closed-loop system?
    Answer it in “Sense, decide, act”
  2. Why would you choose closed loop over open loop?
    Answer it in “Sense, decide, act”
  3. Which of these is closed-loop?
    Answer it in “Open loop or closed loop?”
  4. A robot's target is 80 cm. It measures 86 cm. What is the gap, in cm? (It can be negative.)
    Answer it in “Open loop or closed loop?”
  5. A closed-loop robot is pushed back 10 cm by a friend. What happens?
    Answer it in “Open loop or closed loop?”
  6. In a greenhouse heater loop, what is the 'error'?
    Answer it in “Open loop or closed loop?”
  7. The setpoint is 18 °C and the thermometer reads 15.5 °C. What is the error, in °C?
    Answer it in “Open loop or closed loop?”
  8. A closed-loop heater's thermometer falls off the wall and reads 0 °C. What does the controller do?
    Answer it in “Open loop or closed loop?”

Engineering applications

Cruise control

A car's cruise control measures speed and adjusts the throttle to hold the setpoint. On a hill the speed falls, the error grows and the throttle opens, with no map of the hill needed.

A lying sensor

If a thermostat's sensor sits next to a warm lamp, the loop faithfully holds the wrong temperature. Feedback corrects for disturbances, not for a sensor that measures the wrong thing.

Watch (optional)

Streaming video uses a lot of data. Everything you need is in the text.

Summary

Glossary

Open-loop control
Open-loop control sends commands without measuring the result: 'run the motor at 60 % for 2 seconds' and hope it went far enough. Field Guide
Closed-loop (feedback) control
Closed-loop control measures the output, compares it with the target and adjusts the command to shrink the difference, over and over. Field Guide
Setpoint and error
The setpoint (or reference) is the value you want; the error is the setpoint minus the measured value. Controllers act on the error. Field Guide
Sense–think–act loop
Most robots run a repeating cycle: read sensors, decide what to do, command actuators, then repeat, usually at a fixed rate. Field Guide

Project: Loops in the wild

Find three control systems in your home or school, such as a fridge, a toilet cistern or an automatic door. For each, say whether it is open or closed loop, draw its block diagram, name its setpoint and sensor, and describe what happens if the sensor fails.

Deliverables

Write it up on paper or in your own notes. Lite never stores what you write.

References

← Contents2. On/off control and hysteresis →