IB Topic 7, control, concerns itself with one of the most common types of computerized systems in our life. A control system is a device, or set of connected devices, that manages, commands, directs, or regulates the behaviour of other devices (or systems!)
For the purpose of the IB exam, the term control system seems to be reserved for relatively simple, at least partially automatic devices that use microprocessors, input sensors, and output transducers to perform tasks.
The IB syllabus states that we should have a reasonable understanding of the functionality of the control systems associated with the following devices:
The word microprocessor historically refers to any small integrated circuit that contains all the components necessary to function as the CPU (central processing unit, the main ‘brain’) of a computer. Every computer you have ever used contains a microprocessor. In modern terminolgy, however, the word microprocessor is often conflated with a microcontroller, which is specifically a small, relatively inexpensive, relatively simple integrated circuit that includes not only the CPU but also all of the other components needed for a simple computer application, such as RAM and input/output connectors.
Microcontrollers are intended for embedded systems - situations where the computer is going to run a very simple program that is built and loaded onto the controller in advance, usually by the manufacturer. These are the chips that control things like your refrigerator, washing machine, air conditioner, even the charger brick for your phone! Simple ones can cost as little as $0.03 USD each, and you probably have several hundred of them in your house, if not more.
Each of the control systems we will examine over the course of this class will use at least one microcontroller.
Control systems always require inputs and outputs. Some of those inputs are human-directed, such as button presses or switches. Other inputs are automatic, based on factors in the real world. A sensor is a device that detects something in the real world and converts what it detects into an electrical signal that can be sent to a microprocessor.
Some common types of sensors include:
An output transducer is essentially a sensor in reverse - it receives an electrical signal from a microcontroller and converts it into something that can be perceived in the real world.
Some common examples of output transducers are:
Consider an automatic door that opens whenever a human approaches the door, stays open as long as a human is passing through it, and closes once the coast is clear of humans.
Image credit: Giphy
Where do you see something that will require a sensor in this description?
There will need to be at least one sensor that can detect a large object in front of the door - perhaps an infrared or ultrasonic sensor - as well as another one that can detect if a human is standing between the doors.
Where is the output transducer in this description?
The output here is the motor or motors that cause the doors to open.
Outline the algorithm the microcontroller might use in this situation.
For an “outline” question, like this one, the IB is looking for something in the style of a list. In this case, they are looking for a series of clear steps that mention the sensor, the output device, and the “thinking” that the microcontroller does to make the whole process works. Below is one example:
Here are the basic steps of operating a washing machine.
Image credit: Petter Pentilä
Now that you know the basic steps followed by a washing machine, try to see if you can answer the question.
This question is DIRECTLY from a previous exam (November 2019) and was worth 6 marks (out of 100, quite a lot!). Give it a try!
A washing machine uses a control system. The microprocessor controls the washing machine and its actions. To complete the wash and rinse process, the user selects the program, loads the washing machine, and pushes the start button. Describe the interaction between the sensors, microprocessors, and output transducers in this situation.
There are many possible full-mark answers to this question: essentially they are looking for two correct mentions of sensors, two correct mentions of the processor, and two correct mentions of output transducers in order to get the full marks.
A full marks sample answer (marking follows)
Marking Structure
Award [6 max].
Award [2 max] for evidence that:
Sensors (input devices) detect/measure the water level;
sensors detect/measure the temperature (of the water);
sensors detect/measure the dampness/moisture level of the clothes;
sensors also detect movement of the machine’s drum and other associated
actions;
Sensors continuously take readings/measurements (in the context of above) and
send these readings to the processor;
Award [2 max] for evidence that:
processor controls sensors, valves and actuators responsible for controlling the
parts that clean clothes;
processor determines what actions the machine should take next;
the washing machine has been programmed/ it goes through a process of
running its internal programs;
processor compares readings with pre-set values (in the context of the various
sensors);
if the readings fall outside of the specified range, the processor sends a message
to the output transducer to switch on/off … (in the context of part of the washing
machine);
Award [2 max] for evidence that:
output transducers are used for turning on and off devices that control the rest of
the machine;
such as the motors that spin the tub;
or the water pump;