📘 CodingMarble Learn

Control Systems and Feedback

A control system makes a machine or process behave the way we want. Every system has input → process (controller) → output. In an open-loop system the controller does not check the result (a toaster on a timer). In a closed-loop system a sensor measures the output and feeds it back; the controller compares it with the set point and corrects the error (a thermostat, cruise control). Real systems are built from sensors, a controller (electronic circuit, microcontroller or PLC) and actuators (motors, heaters, valves, pneumatic cylinders). Many are now networked (IoT, SCADA) so they can be watched and controlled from far away.

🎬 Step-by-step story

  1. Every control system has three boxes: input, process (controller), output. Here the input is a 'heat' button, the process decides, the output is a heater.
  2. Open loop: the heater runs for a fixed time. Nobody checks the room. Open a window and the room gets cold, but the system does not notice.
  3. Closed loop: a sensor measures the room temperature and sends it back. The controller compares it with the set point. The difference is the error.
  4. The thermostat in action: too cold → heater ON; warm enough → heater OFF. The temperature wobbles around the set point.
  5. Real parts: sensors (eyes), controller like a microcontroller or PLC (brain), actuators like motors, heaters, valves or air cylinders (muscles). A network lets you watch it from a phone.
  6. Your turn: set the target temperature, switch feedback on or off and open the window. Watch what the heater does.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Is a fan with a speed knob a control system?

Yes, an open-loop one. Your knob is the input, the regulator is the process, the fan speed is the output.

Why is open loop still used if it can't correct itself?

It is simple and cheap, and fine when nothing much changes. Watch the window disturbance in step 1: that is its weakness.

What exactly is 'feedback'?

The measured output sent back to the controller. In 3D it is the orange arrow going back from the sensor.

Why doesn't the thermostat hold exactly 22 °C?

On/off control switches fully on or off, and the room responds slowly, so it overshoots a little each way.

What is the difference between a microcontroller and a PLC?

Both run programs. A PLC is built tough for factories with many inputs and outputs; a microcontroller is a small cheap chip used in gadgets and school projects.

What happens if the sensor fails?

The loop becomes 'blind', like open loop. Try turning feedback off in free play and opening the window.

What is a control system?

A control system is a set of parts that makes a machine or process do what we want, by itself.

We draw it as a block diagram: input → process → output. Information (signals) flows along the arrows.

Open-loop control

In open-loop control the controller does not measure the result. It follows fixed instructions.

Examples: a toaster on a timer, a simple washing-machine program, traffic lights on a fixed timetable, a microwave.

Good: simple and cheap. Bad: cannot correct itself if something changes (a disturbance), like thicker bread or more traffic.

Closed-loop control and feedback

In closed-loop control a sensor measures the output and sends the value back. This is feedback.

The controller compares the measured value with the set point (the target). Error = set point − measured value. It then acts to make the error small.

Negative feedback reduces the error and keeps things steady (thermostat, cruise control, the body keeping 37 °C). Positive feedback makes a change bigger (a microphone squealing near a speaker).

Simple controllers are on/off (heater fully on or off, so the temperature wobbles). Smarter ones change the output smoothly in proportion to the error (proportional control, and PID in industry).

Sensors, controllers and actuators

Designing a control system: state the need → choose the input sensor → decide the control rule (often as a flowchart or program) → choose the actuator → build → test and improve.

Programmed control, automation, IoT and SCADA

Automation means machines doing a process with little human help, like a bottling line. The control rule is written as a program (flowchart, blocks or code: IF temperature < 20 THEN heater ON).

IoT (Internet of Things): sensors and actuators connected to the internet, so a smart plug or a farm pump can be checked and switched from a phone.

SCADA (Supervisory Control And Data Acquisition) collects data from far-away sites by telemetry (remote measurement) and shows it on control-room screens for power grids, pipelines and water supply.

New trends: AI that learns better control, robots working with people, digital twins (a computer copy of a factory). Networked control also needs cyber security.

Try it

Be the thermostat: fill a cup with warm water and hold a thermometer in it. Your target is 40 °C. Add a little hot or cold water only when the reading is off. You are the sensor, the controller and the actuator. Then try the 3D free play with feedback on and off.

Key formulas and definitions

Worked examples

1. A street light turns on at 7 pm every day by a timer. Open or closed loop?

Open loop. It does not measure how dark it is. If it is cloudy at 5 pm, it stays off.

2. Change the street light so it is closed loop. Name the sensor, controller and actuator.

Sensor: LDR measures light level. Controller: a comparator circuit or microcontroller that switches when light is below a threshold. Actuator: the lamp (through a relay). It now responds to real darkness.

3. A room heater has set point 22 °C. The sensor reads 19 °C. Find the error and say what the on/off controller does.

Error = 22 − 19 = 3 °C (positive, too cold). The controller switches the heater ON until the reading reaches 22 °C, then OFF.

Common mistakes

Practice quiz

1. Which part measures the output in a closed-loop system?
2. A toaster with a fixed timer is:
3. Error in a control system =
4. Which is an actuator?
5. PLC stands for:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is the difference between open-loop and closed-loop control?

Open loop does not check its output. Closed loop measures the output with a sensor and corrects any error.

What are examples of closed-loop control systems?

Thermostats, air conditioners, cruise control, automatic street lights with a light sensor, the human body controlling temperature.

What is feedback in a control system?

Sending information about the output back to the controller so it can compare it with the target.

Where this is taught

NetherlandsHAVO 4 (bovenbouw, 2e fase)Optional domains (choose two)
Spain2º ESOComputational thinking, programming and robotics
Spain3º ESOComputational thinking, programming and robotics
Spain4º ESOTechnological operators
Spain4º ESOComputational thinking, automation and robotics
Spain1º BachilleratoAutomatic systems
Spain2º BachilleratoAutomatic systems
England (GCSE, A level)Year 103.1 Core technical principles
Japan高校(専門学科)1〜3年Electromechanics (Mechatronics)
Japan高校(専門学科)1〜3年Production Technology
Japan高校(専門学科)1〜3年Electric Power Technology
Japan高校(専門学科)1〜3年Electronic Measurement and Control
Japan高校(専門学科)1〜3年Chemical Engineering
FranceTerminaleLab sciences: Systems and processes
FranceTerminaleCompetences and content
China八年级(初二)Module: IoT practice and exploration
China高一Design 2 Ch.4 Control
China高二Sel.1 Electronic control technology (engineering series)

Learn next

Related lessons

All Computer Science lessons