TactivergeLite

Lite / Discovering How the World Works / Week 2

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?

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

Why should I care?

The difference between a dumb machine and a smart one is usually one sensor and one rule. Thermostats, automatic doors and robots all follow the same pattern: measure, decide, act, and keep doing it.

Predict

A simple toaster has a timer set to 2 minutes. You put in frozen bread. What happens?

  1. It notices and toasts for longer
  2. It toasts for 2 minutes anyway, so the toast comes out pale
  3. It refuses to start
Guess first, then reveal

A timer-only toaster never checks the bread, so it does the same thing every time. That's open-loop control. To fix it, you'd need a sensor that measures how brown the toast is, and a rule that keeps going until it's ready.

Discover

Do Level 1 of the greenhouse Build: match the parts to their jobs, then put measure, compare, decide and act in order. Which part is the sensor, which is the decider, and which does the acting?

What the interactive shows (text version)

The greenhouse activity in words: a thermometer measures the air; the controller compares the reading with the setpoint; it decides whether heat is needed; the heater acts (or the vent opens). Then the thermometer measures again. The order is measure, compare, decide, act, repeated.

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

Understand

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.

Explain it another way

Intuitive

Riding a bike is closed loop: you feel yourself tipping and steer to fix it, many times a second. Riding with your eyes shut would be open loop. Don't try it!

Technical

In closed-loop control, the controller computes an error = setpoint − measurement and chooses an output to shrink it. An on/off (bang-bang) controller switches fully on or off depending on the sign of the error.

Applied

Automatic doors, oven thermostats, phone screens that dim in the dark, and cruise control in cars are all closed-loop systems. A microwave timer is open loop: it heats for the time you set, hot or not.

Worked example 1

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

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.

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 is a closed-loop system?
Practice 2. In an automatic door, what is the sensor?
Practice 3. A fish-tank heater has the rule: IF water < 25 °C THEN heater ON. The water is 23 °C. What happens?
Practice 4. Why would you choose closed loop over open loop?

Apply it

Pick three machines at home. For each, write whether it's open or closed loop, what it senses (if anything), its rule in IF…THEN… form, and what it acts on.

Reflect

Your body has closed loops too: shivering when cold, sweating when hot. What are the sensor, the decider and the actuator?

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

← Draw a box around itSystems inside systems →