TactivergeLite

Lite / Building Machines That Respond / Week 26

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?

About 30 min · 3 goals · Checked by automated tests · Full interactive version

Why should I care?

Feedback is the idea that turns a machine from following orders blindly into correcting itself. It keeps planes level, rooms warm and lifts stopping exactly at floors. Everything you have built this term (sensors, decisions, actuators, timing) comes together in a feedback loop.

Predict

A motor is told to run at 60% power for 10 s to move a cart 2 m. Someone loads the cart with bricks. What happens?

  1. It still moves exactly 2 m
  2. It moves less than 2 m and nothing notices
  3. It speeds up to compensate
Guess first, then reveal

That is **open-loop** control: the command does not depend on the result, so a disturbance (the bricks) causes an error nobody corrects. Add a distance sensor and compare it with the target, and the loop closes.

Discover

Start with all gains at zero except a small proportional gain. Watch the output move towards the setpoint. Then add a disturbance or change the setpoint and see the controller respond. Finally set the gain to zero: what does 'no feedback' look like?

What the interactive shows (text version)

The feedback lab shows a setpoint line and the system's output over time. With a proportional gain, the output moves towards the setpoint and responds when the setpoint or a disturbance changes. With all gains at zero the controller does nothing, so the output never corrects: no feedback.

You can also open the interactive on the full site when you have a faster connection.

Watch (optional)

Watch for: Listen for what the controller compares, and what happens to the error when a disturbance arrives.

A clear whiteboard explanation of why feeding the measured result back into the controller beats acting from a plan alone.

“Control Systems Lectures - Closed Loop Control” by Brian Douglas (opens YouTube; streaming video uses a lot of data)

The video is optional. Everything you need is in this lesson's text.

Understand

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.

Explain it another way

Intuitive

Walking to a door with your eyes shut is open loop. Walking with your eyes open, constantly correcting your direction, is closed loop.

Technical

Block diagram: setpoint r → (compare) → error e = r − y → controller → actuator → plant → output y → sensor → back to compare. Disturbances enter at the plant; sensor noise enters on the feedback path.

Applied

An automatic oven measures its air temperature and switches its element on and off to hold the setpoint; a toaster with only a timer does not measure the toast at all.

Worked 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.

(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.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 1. A toaster pops after a fixed time whatever the bread is like. What kind of control is that?
Practice 2. In a greenhouse heater loop, what is the 'error'?

°C

Practice 4. A closed-loop heater's thermometer falls off the wall and reads 0 °C. What does the controller do?

%

Apply it

Find two open-loop and two closed-loop machines at home or school. For each closed-loop one, name the setpoint, sensor, error and actuator. For each open-loop one, name a disturbance it cannot correct.

Reflect

Which machine in your life would you most like to close the loop on, and what sensor would it need?

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

← Doing several things at once (without waiting)On/off control and hysteresis →