TactivergeLite

Lite / Discovering How the World Works / Week 25

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?

About 25 min · 3 goals · Reviewed by the founders' mentors · Full interactive version

Why should I care?

Feedback is the idea that makes machines dependable in a messy world. Your fridge, a car's cruise control, a drone hovering in the wind: all of them measure the result of what they did and adjust. It's the most important idea in this term.

Predict

Two kettles heat water. Kettle A heats for exactly 3 minutes. Kettle B heats until its sensor reads 100 °C. Someone fills both with very cold water. Which one boils?

  1. Both
  2. Only A
  3. Only B
Guess first, then reveal

Only B. Kettle A follows a plan (open loop) that was right for normal water, but colder water needs longer. Kettle B measures the result and keeps going until it's done (closed loop). Feedback copes with surprises the plan didn't expect.

Discover

Use only the proportional setting (leave any others at zero). Set a target and watch the measured output chase it. Change the plant or add a disturbance if the lab offers one, and watch the loop correct for it.

What the interactive shows (text version)

The feedback lab can be replaced by this description: a target value is set, and the system's measured output starts below it. Each moment, the controller pushes in proportion to the gap between target and output, so the output rises quickly at first and then more slowly as the gap shrinks. If something knocks the output down, the gap grows and the controller pushes harder until it recovers.

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

Watch (optional)

Watch for: Watch for the arrow that carries the measurement back to the start: that arrow is the 'closed' part of the loop.

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

Explain it another way

Intuitive

Walk to a door with your eyes shut, counting steps: open loop. Walk with your eyes open, adjusting as you go: closed loop. Eyes open wins every time someone moves the door.

Technical

In a closed loop the error e = r − y (reference minus measured output) is computed every cycle, and the controller chooses an action from e. Disturbances that change y are automatically corrected because they change e.

Applied

Cruise control measures the car's speed, compares it with the set speed, and opens or closes the throttle. Going uphill slows the car, the gap grows, and the engine automatically works harder, with no hill detector needed.

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

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.

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. Which of these is closed-loop?

°C

cm

Practice 4. A closed-loop robot is pushed back 10 cm by a friend. What happens?

Apply it

Find two machines at home: one open-loop and one closed-loop. For the closed-loop one, name what it measures, what its target is, and what it changes to close the gap.

Reflect

When do you use open-loop control in your own life, and when do you rely on feedback?

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

← Actuators: how machines change the worldOn/off control: the bang-bang thermostat →