Control and Monitoring Systems
How actuators, sensors and pre-set values work together in alarms, street lamps and central heating.
Key words (13)
microprocessor, pre-set value, actuator, relay, solenoid, motor, control output, input frequency, monitoring system, control system, feedback loop, ADC, DAC
Lesson Objectives
Terms used in this section - Microprocessor

A microprocessor is similar to a computer CPU (central processing unit) in that they both process data and make decisions for the system.
However, there are some differences:
- CPU - tasked with a variety of jobs/roles within a system.
- Microprocessor - generally responsible for carrying out only one specific job/role.

Terms used in this section - Pre-set value

A pre-set value is used in some systems so that the microprocessor has data with which to compare the inputs being sent by sensors.
Pre-set values are pre-programmed into the computer’s memory and then called upon by the microprocessor when needed:
- 18°C is the pre-set value that the computer uses when deciding whether to send signals to turn the heating on or not.

Pre-set value symbols used when programming the system
The examples of pre-set values in this lesson make use of the following symbols:
| Symbol | Meaning | Symbol | Meaning |
|---|---|---|---|
| > | More than | < | Less than |
| >= | More than or equal to | <= | Less than or equal to |
| = | Equal to |
Terms used in this section - Actuator

Actuators are mechanical devices that make the ‘physical’ (output) part of a process happen:
- The actuator receives the instruction and physically switches the alarm on.
Think of actuators as kind of like muscles:
- We cannot move our limbs without using our muscles in much the same way as an alarm in a control device cannot turn on without an actuator.
- Actuators respond to instructions sent by a computer. Our muscles respond to instructions sent by our brain.

Different types of actuators
Relays:
- Used to open or close an electrical circuit.
- Commonly used in automatic light systems, burglar alarms and traffic lights at junctions.
Solenoids:
- These are coils of wire that expand/contract when electrical current is applied.
- Used to open/close switches and valves to turn on/off motors or cause water to flow or stop flowing in washing machines.
Motors:
- Used to move objects.
- Used in automatic greenhouses to open/close windows, open/close automatic doors etc.



Advantages and disadvantages of actuators
| Advantages | Disadvantages |
|---|---|
| Let a computer control physical things such as valves, motors and alarms. | Moving parts wear out and need regular maintenance. |
| Work automatically, so no person needs to be present. | A faulty actuator can stop the whole system working, or cause damage. |
| Can be used in dangerous places where people cannot work. | Do not work if there is a power cut, unless there is a back-up supply. |
| Can run for 24 hours a day without getting tired. | Can be expensive to buy and to install. |
Terms used in this section - Control outputs
The output produced by monitoring and control systems varies depending on the purpose of the system.
Common outputs include (with examples of use):
- Valves - for opening/closing outlets.
- Pumps - for pushing water around a central heating system.
- Buzzers/Alarms - to make a loud sound to get the attention of someone or scare away intruders.
- Lights/Lamps - to illuminate a street at night.
- Heaters - to heat chemicals in a reactor.
- Motors - to open/close windows in a greenhouse.






Terms used in this section - Input frequency
The time intervals at which sensors input data are known as input frequency.
Not all systems have the same input frequency:
- High frequency example - a vital signs monitor needs to input readings such as heart rate and temperature every few seconds to give accurate data about patient health.
- Low frequency example - an automatic street lamp system only needs data input every 30 minutes. This is because natural light levels change very gradually.



Monitoring and control systems
Sensors are used to input analogue environmental data into monitoring and control systems.
Monitoring and control systems differ at the output level:
- Monitoring - output has no effect on the next set of data input.
- Control - output can change next set of data input.

Examples of monitoring and control systems
Monitoring:
- Monitoring vital signs of a medical patient.
- Monitoring the presence of an intruder in a home.
- Monitoring the levels of pollution in a river.
Control:
- Turning on street lamps when it gets dark and turning them off when it gets light.
- Controlling the temperature in a central heating system.
- Turning on sprinkler systems in a greenhouse when soil gets too dry and turning the sprinkler off when soil is moist enough.


Difference between monitoring and control - Greenhouse

Monitoring (also sometimes called Measurement):
- Temperature sensor detects and inputs the levels of heat in the greenhouse.
- The microprocessor compares the data to pre-set values:
- If temperature is within acceptable range, just display the temperature on-screen.
- If temperature is outside of acceptable range, display the temperature on-screen and alert the gardener with an alarm.
- The gardener will decide to open or close a window depending on the data shown on-screen.
Control:

- Temperature sensor detects and inputs the levels of heat in the greenhouse.
- The microprocessor compares the data to pre-set values:
- If temperature is within acceptable range, do nothing.
- If temperature is outside of acceptable range, send a signal to an actuator to open/close the windows.
- The microprocessor makes the decision to open/close windows without the aid of the gardener.



Monitoring systems
Monitoring systems produce an output based on information received by sensors and instructions sent by the microprocessor:
- The output has no influence on any new data supplied by sensors.

Examples of monitoring systems - vital signs machine
Input (sensors):
- Sensors are attached to a patient:
- Sensors measure the patient’s heart rate, breathing, temperature etc.
- Sensor data is continuously fed to a microprocessor via an analogue-to-digital converter (ADC).
Processing (microprocessor):
- The microprocessor compares the sensor data to a range of acceptable pre-set values stored in memory.
Output (display and alarm):
- If all sensor data is within an acceptable range, vital sign values are displayed on-screen and nothing else.
- If any sensor data is outside the acceptable range, vital sign values are displayed on-screen AND an alarm is sounded to alert doctors to tend to the patient.

Examples of monitoring systems - burglar alarms
Input (sensors):
- Infra-red (motion) sensor - detects the movement of an intruder.
- Acoustic (sound) sensor - detects any noises made by an intruder.
- Pressure (weight) sensor - detects the weight of the intruder coming into the room.
- If the sensor data is analogue, it is sent to a microprocessor via an ADC.
Processing (microprocessor):
- The microprocessor monitors the sensor data in order to decide what the output will be.
- If the output device is analogue, digital signals from the processor are converted to analogue via a digital-to-analogue converter (DAC). The signals instruct the output device what to do.
Output (loud siren or bright light):
- If an intruder is not detected, the alarm will remain off.
- If an intruder is detected, the microprocessor will send a signal telling an actuator to switch on the alarm (which could be a loud siren or a security light).


Control systems
Control systems produce an output based on information received by sensors and instructions sent by the microprocessor:
- The output directly influences any new data supplied by sensors.

Examples of control systems - automatic street lamps
Input (light sensor):
- Light sensor in the lamp detects the levels of light in the environment.
- Sensor data is continuously fed to a microprocessor via an ADC.
Processing (microprocessor):
- The microprocessor is pre-programmed with a minimum acceptable level of light data.
- The microprocessor compares the light data from sensors with pre-programmed light data in its memory at regular intervals (once every 30 minutes, for example).
- Instructions from the processor telling actuators what to do are converted from digital to analogue using a DAC (if the output device is analogue).
Output (lamp):
- If sensor light data is < pre-programmed light data - actuators switch lamps on.
- If sensor light data is >= pre-programmed light data - actuators switch lamps off.

Examples of control systems - central heating
Input (temperature sensor):
- Heat sensor in the system detects temperature levels in the room.
- Sensor data is continuously fed into a microprocessor via an ADC.
Processing (microprocessor):
- The processor is pre-programmed with the desired room temperature (e.g. 20°C).
- The processor compares data from heat sensors with the desired room temperature in its memory at regular intervals (once every minute, for example).
- Signals instructing actuators what to do are sent via DAC.
Output (gas valve and water pump):
- If sensor temperature data is < pre-set value - actuators open the gas valve to the heater and turn on the water pump.
- If sensor temperature data is >= pre-set value - actuators close gas valve/turn off water pump.

Examples of control systems - car anti-lock braking
Input (magnetic sensor):
- Magnetic sensor in the system detects if a wheel rotates too slowly (locking up because the brake is being applied too firmly).
- Sensor data is fed into a microprocessor via an ADC several times per second.
Processing (microprocessor):
- The microprocessor compares the speed of the wheel to the speed of the other 3 wheels.
Output (brakes):
- If wheel speed = speed of the other 3 wheels - do nothing.
- If wheel speed < speed of the other 3 wheels - reduce the brake pressure so the wheel can rotate at the same speed as the other 3 wheels.
- If wheel speed > speed of other wheels - increase brake pressure until rotation is equal.

Examples of control systems - chemical process control
Input (sensors):
- Temperature sensor - detects the heat levels in the chemical reactor.
- pH sensor - detects acidity levels in the reactor.
- Sensor data is continuously fed to a microprocessor via an ADC.
Processing (microprocessor):
- The microprocessor compares the sensor data with pre-set values stored in memory.
- Digital signals from the processor to outputs are converted to analogue using a DAC.
Output (heaters and valves):
- If temperature <70°C - heaters switched on.
- If temperature >= 70°C - heaters switched off.
- If pH >3.5 - a valve is opened and acid added.
- If pH <=3.5 - the valve is closed and no more acid added.

End of the topic
You've completed the topic: lesson 7 of 7 published in this unit, and already 100% of the way through. Keep it up!
When you are ready, click the Next button below to move on to Data Storage and Backing up Data.