Sensors
Sensors
A DMC 2023
Sensors
Sensors are input devices which read or measure physical properties from their surroundings.
Examples include:
Page 1 of 7
O Level Computer Science P1 Hardware – Input Devices (Sensors) ©N.A DMC 2023
Page 2 of 7
O Level Computer Science P1 Hardware – Input Devices (Sensors) ©N.A DMC 2023
Examples of monitoring
• Monitoring of a patient in a hospital for vital signs such as heart rate, temperature, etc.
• Monitoring of intruders in a burglar alarm system
• Checking the temperature levels in a car engine
• Monitoring pollution levels in a river.
Examples of control
• Turning street lights on at night and turning them off again during daylight
• Controlling the temperature in a central heating/air conditioning system
• Chemical process control (for example, maintaining temperature and pH of process)
• Operating anti-lock brakes on a car when necessary
• Controlling the environment in a green house.
Page 3 of 7
O Level Computer Science P1 Hardware – Input Devices (Sensors) ©N.A DMC 2023
Monitoring applications
✓ Security systems
The security monitoring system will carry out the following actions:
Page 4 of 7
O Level Computer Science P1 Hardware – Input Devices (Sensors) ©N.A DMC 2023
Control applications
• when one of the car wheels rotates too slowly (i.e. it is locking up), a magnetic field sensor
sends data to a microprocessor
• the microprocessor checks the rotation speed of the other three wheels
• if they are different (i.e. rotating faster), the microprocessor sends a signal to the braking
system …
• … and the braking pressure to the affected wheel is reduced …
• … the wheel’s rotational speed is then increased to match the other wheels
• the checking of the rotational speed using these magnetic field sensors is done several times
a second …
• … and the braking pressure to all the wheels can be constantly changing to prevent any of
the wheels locking up under heavy braking ...
• … this is felt as a ‘judder’ on the brake pedal as the braking system is constantly switched off
and on to equalise the rotational speed of all four wheels
• if one of the wheels is rotating too quickly, braking pressure is increased to that wheel until
it matches the other three.
Page 5 of 7
O Level Computer Science P1 Hardware – Input Devices (Sensors) ©N.A DMC 2023
• the required temperature is keyed in and this is stored in the microprocessor memory (this is
called the pre-set value)
• the temperature sensor is constantly sending data readings to the microprocessor
• the sensor data is first sent to an ADC to convert the analogue data into digital data
• the digital data is sent to the microprocessor
• the microprocessor compares this data with the pre-set value
• if the temperature reading >= pre-set value then no action is taken
• if the temperature reading < pre-set value, then a signal is sent …
• … to an actuator (via a DAC) to open the gas valve to the heater
• … to an actuator (via a DAC) to turn on the water pump
• the process continues until the central heating is switched off.
Page 6 of 7
O Level Computer Science P1 Hardware – Input Devices (Sensors) ©N.A DMC 2023
• humidity sensor sends a signal to an ADC, which then sends a digital signal to the computer.
• The processor compares the input with stored (pre-set) values
• … and decides what action needs to be taken
• If humidity is > pre-set value, the computer sends a signal to a DAC to operate the motors to
open windows thus reducing the humidity.
• If it is < pre-set value, the computer sends a signal to open valves to spray water into the air
• If the reading = pre-set value, then no action is taken
• The control process continues as long as the system is switched on.
Reference: Cambridge IGCSE and O Level Computer Science (D. Watson & H. Williams)
Page 7 of 7