IB COMPUTER SCIENCE | A1.3.6 Control System Components (HL)

Lesson objective

Describe the use of controllers, sensors, actuators, transducers and control algorithms in open-loop and closed-loop systems. Higher level only.

Learn

A1.3.6 | CONTROL SYSTEM COMPONENTS (HL ONLY)

01 | HL: FROM A MEASUREMENT TO AN ACTION

Higher level only. A room becomes cold, a temperature sensor reports the measurement, and a controller decides to switch a heater on. As the room warms, another measurement helps the controller decide when to stop heating.

A control system directs the behaviour of a physical system. It accepts inputs, processes them using a rule or algorithm, and sends outputs that cause action. Some systems use feedback from the result; others do not.

This lesson explains the components named in the specification: controller, sensors, actuators, transducers and control algorithm, together with input, processing, output and feedback in open-loop and closed-loop arrangements.

The important distinction is between measuring what is happening, deciding what should happen and physically making it happen. These are different roles, even when one device contains several of them.

02 | DEFINE WHAT IS BEING CONTROLLED

In the room example, temperature is the controlled variable. A desired temperature of 22 °C is the setpoint. The real room temperature is the actual value; the sensor provides a measured value that may contain error.

The heater command is the control signal. It might specify on/off or a level of heating power. The command is not the same thing as the resulting room temperature.

The room and its thermal behaviour are the physical system being controlled, sometimes called the plant. The term does not have to mean a factory or a living plant.

An open window is a disturbance: an influence that changes the controlled system’s behaviour. The controller may not measure the window directly, but temperature feedback can reveal its effect.

03 | INPUT, PROCESS AND OUTPUT HAVE DISTINCT ROLES

An input supplies information or instructions, such as a setpoint, sensor reading or user command. Processing applies the control algorithm to the available inputs. An output sends a command towards a device that changes the physical system.

Be precise about which output you mean. The controller’s output can be “heater on”, while the physical system’s output is the resulting room temperature. A block diagram should make that boundary clear.

Feedback is information about the outcome returned to influence later control decisions. It is not simply any input, and it does not mean the heater’s energy is sent backwards to the sensor.

StageRoom-heating exampleRole
InputTarget 22 °C and measured 19 °CSupply the desired and observed values
ProcessingApply a rule comparing reading with thresholdsDecide a heating command
Controller outputCommand heating onRequest an action
Physical outputRoom temperature changesResult of the action and surroundings
FeedbackNew measurement of room temperatureInform the next decision

04 | SENSORS: MEASURE THE PHYSICAL WORLD

A sensor detects or measures a physical quantity, such as temperature, light intensity, position, pressure or distance, and supplies a usable signal or data value. It does not normally decide the whole control strategy.

A thermistor-based temperature sensor uses a resistance that changes with temperature. Supporting circuitry can turn this change into a signal that the controller can interpret. A sensor module may already provide a digital measurement.

A measurement is not guaranteed to equal the true value. Calibration error, noise, sampling delay and poor placement can all affect the reading. A temperature sensor beside a heater may not represent the rest of the room well.

The controlled variable determines the feedback needed. To control wheel speed, a suitable encoder can supply rotation information; an unrelated light sensor would not provide the required speed measurement.

05 | TRANSDUCERS: CONVERSION BETWEEN PHYSICAL FORMS

A transducer converts energy or a physical effect from one form into another. In electronic control, an input transducer converts a physical quantity into a signal, while an output transducer converts supplied energy into a physical effect.

A temperature-sensing element is an input transducer. An electric motor is an output transducer because it converts electrical energy into mechanical motion. An electrical heater converts electrical energy into heat.

Sensor, actuator and transducer are overlapping descriptions, not three compulsory separate boxes. A sensor can be an input transducer and an actuator can be an output transducer. Use the terms to explain the role rather than counting them as unrelated components.

Signal conversion may require extra circuitry. An analogue-to-digital converter converts an analogue electrical signal into digital values; it does not itself measure room temperature without a suitable sensing element.

06 | CONTROLLER AND ALGORITHM: HARDWARE AND RULE

The controller is the device or system that receives inputs, executes control logic and issues commands. It could be a microcontroller, a programmable logic controller or a computer with suitable interfaces.

The control algorithm is the procedure that determines commands from inputs and, where relevant, stored state. It is the decision rule executed by the controller, not the same thing as the controller’s physical processor.

A simple rule might turn heating on below 21.5 °C and off above 22.5 °C. A more advanced rule might vary power according to error and previous behaviour. Feedback control does not require one particular algorithm such as PID.

A controller may run dedicated firmware or operate with OS support. An OS can help schedule work and manage devices, but it does not automatically know the correct control rule for a thermostat or robot.

07 | ACTUATORS: MAKE A PHYSICAL CHANGE

An actuator causes an action in the physical system. Examples include a motor moving a door, a valve changing water flow and a heater adding thermal energy. An actuator does not have to produce visible movement.

The controller’s small electrical signal may need an interface or driver circuit to control a powered actuator. For example, a motor driver controls motor current, while a switching interface can control heater power. A processor output pin does not directly supply every actuator’s required power.

Commanding an action is not proof that it occurred. A jammed motor can receive a movement command without reaching its target. A weak heater may be unable to offset heat loss.

Feedback can reveal the outcome, but it cannot create unlimited physical capability. An actuator has limits on force, speed, power or travel that the control design must respect.

08 | OPEN LOOP: ACT WITHOUT OUTPUT FEEDBACK

An open-loop system applies its control rule without using feedback from the controlled output to adjust that action. For example, a heater left on at a fixed command does not measure whether the room reaches a target temperature.

A timed watering system might open a valve for two minutes, regardless of the resulting soil moisture. Its timer is part of the rule; it is not soil-moisture feedback.

Open loop can be simple, inexpensive and appropriate when conditions are sufficiently predictable. However, changing conditions can change the outcome without automatic correction. A colder room or lower water pressure can make the same command produce a different result.

A system can contain sensors and still be open loop with respect to a particular variable. A display-only thermometer does not close the room-temperature control loop unless its measurement influences the control action.

Fixed commandHeater onCONTROLLERFollow fixed ruleACTUATORHeaterPHYSICAL SYSTEMRoomResult: room temperature
Open loop: the command does not depend on measured room-temperature feedback.

09 | CLOSED LOOP: USE THE RESULT TO ADJUST ACTION

A closed-loop system measures the controlled output and feeds that information back to influence control. The controller uses the measured result and its rule to determine a subsequent command.

For room heating, a sensor measures temperature, the controller compares the reading with the target or thresholds, and the heater acts on the room. Further measurements reveal what happened after the action and any disturbances.

The loop repeats. In a digital implementation, readings and decisions usually occur at discrete intervals rather than at literally every instant. Timing must suit how quickly the physical system changes.

Setpoint22 °CCONTROLLERCompare and decideACTUATORHeaterPHYSICAL SYSTEMRoomSENSORTemperatureActual temperatureMeasured valueFeedback returns information, not heat.
Closed loop: the measured outcome is used to adjust the next command.

Feedback can reduce deviations caused by disturbances, but it does not guarantee exact, instant or stable control. Sensor errors, slow response, an unsuitable algorithm or insufficient actuator power can prevent the desired result.

10 | ERROR AND NEGATIVE FEEDBACK

For this example, define error = setpoint − measured value. If the target is 22 °C and the reading is 19 °C, error is +3 °C. If the reading is 24 °C, error is −2 °C. Other conventions exist, so state the one you use.

In a heating system, a positive error can call for more heating. As the temperature rises, the error reduces and the rule can reduce or stop heating. This is negative feedback: the control action tends to oppose the deviation.

“Negative” does not mean harmful, and it does not require every signal to be a negative number. It describes the corrective relationship.

A heating-only system cannot actively cool the room. If it is too warm, it can stop heating and rely on heat loss. The available actuator determines what correction is physically possible.

11 | ON/OFF CONTROL WITH A BAND

Switching on below exactly 22 °C and off above exactly 22 °C can cause rapid toggling when readings fluctuate near the boundary. A two-threshold rule creates a band: switch on below 21.5 °C, switch off above 22.5 °C, and retain the previous command between those thresholds.

This state-dependent separation is hysteresis. It reduces rapid switching, but allows temperature to vary across a range rather than remain exactly at one number.

At a reading of 22.0 °C, the action therefore depends on the previous state. If heating was on, it stays on; if it was off, it stays off. The target alone does not fully describe this algorithm.

Reading for target 22 °CDecision
Below 21.5 °CTurn heating on
21.5 to 22.5 °C, including boundariesKeep the previous on/off state
Above 22.5 °CTurn heating off

12 | EXPLORE A HEATING CONTROL LOOP

Compare fixed heating with feedback control. Each click first takes a sensor reading, applies the rule and then advances a simplified room model by one step. The graph shows the resulting temperature after each step.

Closed loop uses the selected target and a ±0.5 °C band. Fixed open-loop mode keeps heating on and ignores the reading for control, although a measurement is still displayed. Opening the window increases heat loss; a biased sensor reads 4 °C below the model’s actual temperature.

The invented model adds 1.5 temperature units when the heater is on and subtracts a fraction of the difference from ambient temperature. Steps are arbitrary simulation intervals, not minutes. It illustrates component roles, not the design or safety performance of a real heater.

Most recent ten decisions; reading and error are taken before each temperature update
StepReadingErrorCommandResulting actual temperature

Try a biased sensor in closed-loop mode. The controller responds to its reading, not to a hidden perfect temperature value. Changing a dropdown starts a fresh run; the reset button restores all defaults.

13 | TRACE THE COMPONENTS THROUGH ONE DECISION

Suppose the target is 22 °C, the sensor reports 19 °C and the heating is currently off. The sensor provides the input reading; the controller runs the algorithm and sees that 19 is below 21.5. It issues an on command.

The power interface enables the heater, which adds thermal energy to the room. The actual temperature changes according to heating and heat loss, not merely because the software wrote “on”.

A later sensor reading returns information about the new temperature. That feedback influences the next decision. If a window opens, increased heat loss affects the room and therefore later readings.

For a 22.0 °C reading, the hysteresis rule retains the previous state. This illustrates why an algorithm can use both current inputs and stored state.

14 | FEEDBACK QUALITY AND PHYSICAL LIMITS

Feedback is only as useful as its measurement and interpretation. A sensor that consistently reads 4 °C too low can make the controller heat a room above the intended actual temperature. A closed loop can regulate the wrong reported value very effectively.

Sampling too slowly can delay correction. Noise can trigger unnecessary changes. Physical response delays can mean temperature keeps changing after a command, potentially causing overshoot or oscillation if the design is unsuitable.

A window can also increase heat loss beyond the heater’s available power. The controller may correctly request continuous heating and still fail to reach a high target. This is an actuator or physical-capacity limit, not proof that feedback is absent.

Real systems can include independent safety limits, fault detection and manual override. These are additional design features, not automatic guarantees supplied by the words “closed loop”.

15 | IDENTIFY THE ROLE, NOT JUST THE DEVICE NAME

Choose a component role for each description. The examples deliberately separate measurement, decision-making, physical action and feedback. Some devices can have more than one classification, so read the specific role described.

Each first checked answer counts. A blank choice is not counted.

16 | DESCRIBE A SYSTEM USING ITS COMPONENTS

RoleHeating systemMotor-position system
Desired valueTarget room temperatureTarget shaft position
SensorTemperature sensorPosition encoder
ControllerThermostat controllerMotor controller
AlgorithmTwo-threshold on/off ruleA rule using position error
ActuatorHeaterMotor
Physical resultChanged room temperatureChanged shaft position
FeedbackMeasured room temperatureMeasured shaft position

The same architecture can control different quantities. What changes is the measurement, the physical action and the algorithm suited to the system. The next lesson applies control systems to a wider range of real-world situations.

17 | DESCRIBE THE ROLE AND THE CONNECTION

For describe the use of control system components, state what each component does and connect it to the example. “A sensor measures” is a start; “the temperature sensor supplies a reading that the controller uses to adjust heating” explains its place in the system.

A complete description names the input, the controller and its rule, the command and actuator, the physical output and any feedback path. For open loop, make clear that the controlled output does not feed back to adjust the command.

Avoid treating the sensor as the decision maker, saying every actuator is a motor, or assuming a closed loop always reaches the target. Keep the setpoint, measured value, command and actual outcome distinct.

This is HL content. The focus is understanding component use and connections; detailed mathematical tuning is not needed to explain these examples.

Further reading: Feedback control, measurements and setpoints · Open-loop and closed-loop control

MATCH THE CONTROL TERM TO ITS ROLE

Terminology

Terminology

Control system

A system directing the behaviour of a physical process.

Input

Information or instructions supplied to a control system.

Processing

Applying a control rule to inputs and relevant state.

Controller output

The command issued towards an actuator or its interface.

Feedback

Measured outcome information returned to influence control decisions.

Open-loop control

Control that does not use feedback from the controlled output to adjust its action.

Closed-loop control

Control using measured output feedback to influence action.

Controller

The device or system executing control logic and issuing commands.

Sensor

A device measuring or detecting a physical quantity and providing a usable signal.

Actuator

A device causing a physical action in the controlled system.

Transducer

A device converting energy or a physical effect between forms.

Input transducer

A device converting a physical input into a usable signal.

Output transducer

A device converting supplied energy into a physical output effect.

Control algorithm

The procedure determining commands from inputs and relevant stored state.

Setpoint

The desired value of a controlled variable.

Controlled variable

The physical quantity the system aims to regulate.

Measured value

The sensor-reported estimate of a physical quantity.

Actual value

The physical quantity’s true value, which measurement estimates.

Control signal

A command specifying the desired actuator action.

Plant

The physical system or process being controlled.

Disturbance

An external influence changing the controlled process.

Error

Setpoint minus measured value under this lesson’s convention.

Negative feedback

A relationship in which the control action tends to oppose deviation.

On/off control

Control issuing an on or off command rather than a continuously variable level.

Hysteresis

Different switching thresholds with the prior state retained between them.

Sampling interval

The time between successive measurements.

Calibration

Establishing or adjusting the relationship between a measurement and reference values.

Sensor bias

A systematic measurement offset.

Overshoot

The controlled quantity passing beyond its desired value.

Actuator limit

A bound on available physical action, such as heating power or motor torque.

Questions

Questions

CHECK YOUR UNDERSTANDING

Select all correct choices. Each exact set earns one point.

1. Which correctly distinguish component roles?
2. What is the setpoint in the heating example?
3. Which statements about transducers are correct?
4. Which best describes a control algorithm?
5. Which describes open-loop temperature control?
6. Which are true of feedback control?
7. Target is 22 °C and reading is 19 °C. What is error using setpoint minus reading?
8. At 22.0 °C with thresholds 21.5 and 22.5, what does the stated hysteresis rule do?
9. Which can prevent a closed loop achieving the intended actual target?
10. Which descriptions separate command and outcome correctly?

EXPLAIN AND COMPARE

Write your answers before revealing each sample.

1. Describe the input-process-output sequence in room heating.

2. Describe the sensor’s use in a closed-loop thermostat.

3. Describe the distinction between a controller and its algorithm.

4. Describe an actuator and give two different examples.

5. Describe how sensors and actuators relate to transducers.

6. Describe an open-loop watering arrangement.

7. Describe the feedback path in closed-loop heating.

8. Describe negative feedback using the heating example.

9. Describe the stated hysteresis rule for target 22 °C.

10. Describe what happens when the sensor consistently reads too low.

11. Describe the role of a disturbance and an actuator limit.

12. Describe the components of a motor-position control loop.

DESCRIBE IT | A CONTROLLED WATER TANK

A tank should remain near a desired water level while water is drawn off unpredictably. Describe suitable inputs, a sensor, a controller, a control algorithm and an actuator. Trace the feedback path and distinguish the command from the actual level. Describe how an open-loop timed filling arrangement differs, and why a faulty sensor or insufficient pump capacity can prevent the intended result.

Flashcards

Flashcards

Click to flip. Select the ideas you need to revisit.

0 cards selected for revision.

    Selections are kept while this page is open.

    Workbook

    Workbook

    COMING SOON

    The workbook for A1.3.6 Control System Components (HL) is coming soon. Complete the matching task and written questions in your exercise book.