Input and Output Devices · Cambridge syllabus 3.2 · Lesson 2 of 4
Sensors
Sensors measure physical quantities and send the readings to a processor. The syllabus names fourteen: acoustic, accelerometer, flow, gas, humidity, infra-red, level, light, magnetic field, moisture, pH, pressure, proximity and temperature. An ADC converts an analogue reading into digital values when necessary, and the program interprets the readings according to its rules.
By the end, you can
- Understand how sensors collect physical data.
- Identify suitable sensors for different situations.
- Understand the role of an analogue-to-digital converter where required.
- Explain how sensor data can be processed by a computer.
- Temperature sensors.
- Light and infra-red sensors.
- Pressure, flow and level sensors.
- Acoustic sensors.
- Accelerometers and proximity sensors.
- Humidity and moisture sensors.
- Gas, pH and magnetic field sensors.
Sensor systems
A sensor is an input device that measures a physical quantity continuously and automatically, with no person involved. That last part is what makes automated systems possible: a sensor reports temperature or movement without anyone being there to look.
Most physical quantities are analogue — they vary smoothly and can take any value — while a computer can only work with discrete binary numbers. An analogue-to-digital converter bridges the gap, sampling the sensor signal at regular intervals and turning each reading into a binary value.
The whole chain runs: the sensor measures, the ADC converts, the microprocessor compares the reading with a stored value and decides, and an output device acts. Where the output is physical movement, a digital-to-analogue converter turns the decision back into a signal an actuator can use.
Some sensors are already digital and output binary directly, so no ADC is needed. A push switch is the simplest example, and many modern sensor modules do the conversion inside themselves.
The microprocessor does not just record readings. It compares each one with a preset value and acts on the comparison — which is what separates a control system from a monitoring system.
Worth remembering
- A sensor measures a physical quantity continuously and automatically.
- An ADC converts an analogue reading into binary the processor can use.
- Sensor, ADC, microprocessor, then actuator or output device.
Common sensors
The syllabus names fourteen sensors, and questions ask you to pick the right one for a situation, so know what each measures and where it is used.
A temperature sensor measures how hot or cold something is: central heating, ovens, greenhouses. A light sensor measures brightness: automatic street lights and screens that dim. An infra-red sensor detects infra-red radiation, such as the heat given off by a person, or a beam being broken: intruder alarms, automatic doors and counting people through a gate.
A pressure sensor measures force over an area: a car waiting at a barrier, or a person on a pressure mat. A flow sensor measures how fast a liquid or gas is moving through a pipe: water supply and fuel systems. A level sensor measures how full a container is: a fuel tank or a water tank.
An acoustic sensor measures sound: detecting breaking glass in an alarm or noise levels in a factory. An accelerometer measures changes in speed and direction: turning a phone screen round and detecting a car crash to set off an airbag. A proximity sensor detects how close an object is: parking sensors on a car and a phone screen switching off at your ear. A magnetic field sensor detects a magnetic field: a door or window sensor in an alarm, and a phone compass.
A humidity sensor measures moisture in the air: greenhouses and air conditioning. A moisture sensor measures the water in soil or a material: watering systems for plants. A gas sensor measures the amount of a gas such as carbon monoxide or carbon dioxide: gas alarms and air quality monitors. A pH sensor measures how acidic or alkaline something is: soil, fish tanks and swimming pools. Choose by asking what physical quantity really needs measuring; the answer is nearly always in the wording of the scenario.
Worth remembering
- Fourteen sensors: acoustic, accelerometer, flow, gas, humidity, infra-red, level.
- And: light, magnetic field, moisture, pH, pressure, proximity, temperature.
- Humidity is moisture in the air; a moisture sensor measures water in soil.
- Choose the sensor by the physical quantity the scenario needs measured.
Worked example
A greenhouse controller reads temperature and switches a fan when the reading exceeds a set threshold.
Practice
Warm-up · not marked
Check your understanding
Answer in your own words, then compare with the worked answer. Nothing here is saved or scored.
Worked answer
A light sensor measures brightness; a lamp or switching actuator changes the lighting.
Check your method, units and explanation against it.
Marked practice
Set 1 of 7 · easiest first · Checked as you go, with the worked answer. Sign in or create a free account to save your progress.