Week 5 · Lesson 1 · 55 minutes

Open and closed control loops

I can explain the parts of a feedback system.

Planned lesson. Follow your teacher’s teaching order.

Source workbook pages: 30.

Resources

Vocabulary

Vocabulary
sensor: measures a physical quantity; actuator: changes a physical process
55-minute lesson sequence
  1. 0–5 · Retrieve rule-based processing.
  2. 5–15 · Model the reference feedback diagram and contrast the timed fan.
  3. 15–25 · Guide the labels and arrows in task 1.
  4. 25–45 · Students compare both irrigation designs and identify a faulty-sensor risk.
  5. 45–50 · Partner traces cause and feedback around the loop.
  6. 50–55 · Collect the automation versus feedback distinction.

Try before notes

Why does a controller need a rule as well as an input?

Build the idea

A control system measures or receives input, applies a rule and produces an action. A sensor measures a physical quantity. The controller decides. An actuator changes the physical system. Keep these three jobs distinct.

Open-loop control does not use a measurement of the result to adjust its action. Closed-loop control uses feedback: the changed process is measured again, and that new measurement affects the next action.

A disturbance is an outside change such as an open window or sunlight. Feedback can respond to disturbances, but a faulty sensor may give misleading input. Automation alone does not prove that a loop is closed.

target → controller → actuator → room
             ↑                  ↓
             └──── sensor ←─────┘

See the method

An open-loop fan runs for ten minutes without checking room temperature. A closed-loop heater measures temperature and uses feedback to adjust its action. A controller executes the rule; a sensor measures; an actuator changes the room. A transducer converts one form of energy or signal to another. Sensors and actuators can be transducers.

Predict then reveal

A lamp switches on for exactly five minutes, whether the room is bright or dark. Is this brightness control closed-loop?

Reveal reasoning

No. The timer runs a predetermined action without measuring the resulting room brightness. It is open-loop with respect to brightness.

Now a light sensor measures the room after each adjustment and the controller changes lamp output. Identify the feedback path.

Reveal reasoning

Lamp output changes room brightness. The sensor measures that brightness. The controller compares the new reading with its target and adjusts the lamp again. The measurement of the effect closes the loop.

Work one step together

Read the first task. Each learner predicts the first step privately. Compare the method, then complete one intermediate row or one code iteration together. Do not display a finished workbook answer.

Practice

  1. Draw temperature sensor → controller → heater → room. Add a feedback arrow from room to sensor and a target input to the controller. Explain the job of each part.

Your turn

Complete the remaining steps of task 1 alone, then the next tasks. Predict before running code. Save your own evidence before comparing.

Practice

  1. Draw temperature sensor → controller → heater → room. Add a feedback arrow from room to sensor and a target input to the controller. Explain the job of each part.
  2. Compare a timed garden sprinkler with irrigation that measures soil moisture. Explain one disturbance, one benefit of feedback and one failure risk.

Check and explain

A sensor reading used once is not enough to explain feedback; show how later measurements affect later action.

Point to the first step, row, condition or requirement that supports your answer. If results differ, find the first different state and repair one cause.

Show what you know

Is every automated system closed loop?

HL challenge when ready

Explain one input and one output transducer in this room system.

Week 5 homework

Show working. Keep code and output. Stop at 25 minutes and mark where you reached.

  1. Draw a closed-loop automatic door system. Label sensor, controller, actuator, controlled process and feedback. Explain one possible fault.
  2. Trace the hysteresis rule from off for 20,18,21,22,19. Explain both exact-boundary cases.
  3. Choose a cloud model for a team that must configure its own OS. Explain what extra work this choice brings.
  4. Retrieve memory: why must a log be written to persistent storage if it should survive power loss?

Source workbook pages: 35.

Weekly homework (Word)

Python practice · two short prompts

Spend about 3 minutes on each during practice time. Predict, run, change one thing, then explain. These prompts do not add homework.

A starter is runnable code to explore or complete. If the playground restores your saved code, the linked starter is selected in Example: use Load example when ready. Download your work before confirming replacement.

Prompt 1

Compare a fixed fan setting with a setting based on measured temperature.

No imports needed.

Hint and starter code

Feedback means using a measured result to adjust the next action.

# Feedback means using a measured result to adjust the next action.
temperature, target = 29, 25
fixed_fan = True
feedback_fan = temperature > target
print(fixed_fan, feedback_fan)
Open this starter in Python playground →
Prompt 2

Calculate the difference between measured and target values. Try values on either side.

No imports needed.

Hint and starter code

Choose and state a sign convention; here positive means above target.

# Choose and state a sign convention; here positive means above target.
target = 25
for measured in [23, 25, 27]:
    print(measured - target)
Open this starter in Python playground →