Syllabus coverage
- Understand what is meant by an input device and why it is required
- Understand what is meant by an output device and why it is required
- Understand what is meant by a sensor and the purposes of sensors
- Identify the type of data captured by each sensor and understand when each sensor would be used, including selecting the most suitable sensor for a given context
- Know the uses of the input devices listed in the syllabus: barcode scanner, digital camera, keyboard, microphone, optical mouse, QR code scanner, touch screen (resistive, capacitive and infra-red) and 2D and 3D scanners
- Know the uses of the output devices listed in the syllabus: actuator, DLP projector, inkjet printer, laser printer, LED screen, LCD projector, LCD screen, speaker and 3D printer
Part of the O Level Computer Science syllabus 2210.
Input devices and why they are needed
An input device is any hardware that converts data or instructions from the outside world into a form the computer can process, which means into binary. Without one a computer would have nothing to work on: a program has to be loaded, a command has to be typed, a photograph has to be captured, and a temperature has to be measured. Every one of those is an input.
The conversion is the important part of the definition. A keyboard does not send the letter A; it sends a code that represents the letter A. A microphone does not send sound; it sends a stream of numbers produced by sampling the sound wave. A barcode scanner does not send a pattern of bars; it sends the digits encoded in them. The device's job is always translation, from a human or physical form into binary.
Input devices are also used to control rather than to enter data. A mouse moves a pointer, a touch screen registers a finger, and a sensor reports a change in the physical world. In each case the computer receives a signal it can act on, which is what makes it an input.
Keyboards, pointing devices and microphones
The keyboard is the standard device for entering text and numbers. Each key press is converted into its character code, which is why a keyboard is fast and precise for text but slow for anything else. It is the right choice wherever a user has to type: writing a document, entering a password, or typing a search into a browser.
The optical mouse is used to move a pointer and to select and drag items on screen. It shines light onto the surface below it and a sensor takes repeated images of the surface, comparing consecutive images to work out how far and in which direction the mouse has moved. Because it has no rolling ball it does not collect dirt and it works on almost any flat surface, which is why it replaced the mechanical mouse.
The microphone converts sound waves into an electrical signal, which is then sampled and stored as binary numbers. It is used for recording speech and music, for voice calls, and for voice input where the software recognises spoken words. Its advantage is that it captures sound directly and in real time; its disadvantage is that it also captures background noise, so the recording is only as good as the room.
| Device | What it captures | Where it is appropriate |
|---|---|---|
| Keyboard | Key presses, converted to character codes | Typing text, numbers, passwords and commands |
| Optical mouse | Movement over a surface, and button clicks | Selecting, dragging and drawing on a desktop screen |
| Microphone | Sound waves, converted by sampling into binary | Recording speech or music, voice calls, voice input |
| Digital camera | Light through a lens, captured as a grid of pixels | Photographs and video, including images for a website or a phone |
Barcode scanners, QR code scanners and scanners
A barcode scanner reads the pattern of bars and spaces in a barcode by shining light on it and measuring the light reflected back, then converts the pattern into the digits it encodes. It is used at a supermarket till, in a library, and in a warehouse, because it enters a product code in a fraction of a second and without a typing error. It is appropriate wherever items already carry a printed code and speed and accuracy at the point of sale matter.
A QR code scanner reads a two-dimensional code, which stores data both across and down rather than in a single line, so it can hold far more than a barcode, including a web address. It is used to open a menu, pay for a ticket, or direct a phone to a website. It is appropriate where a user needs to reach information quickly with a phone camera, and where the code has to hold more than a short number.
A 2D scanner (a flatbed scanner) is used to convert a printed page or a photograph into a digital image. A 3D scanner is used to capture the shape of a solid object, building a digital model of its surface from many measurements. The 2D scanner is appropriate for documents and pictures that need to be stored or copied; the 3D scanner is appropriate where the shape itself is the data, such as making a part for a 3D printer or recording an object for a museum.
Touch screens: resistive, capacitive and infra-red
A touch screen is both an input device and an output device: it displays information and it detects where the user touches it. The three types work in different ways, and the differences explain where each is used.
A resistive touch screen has two transparent layers separated by a small gap. Pressing the screen pushes the layers together at that point and completes a circuit, so the position of the touch can be calculated. It responds to any object, including a gloved finger or a stylus, but it can be scratched, the layers reduce brightness, and it does not support multi-touch well. It is used on tills, ticket machines and industrial control panels.
A capacitive touch screen has a grid of transparent conductors that hold a small charge. A finger, which conducts, changes the capacitance at the point of contact, and that change is detected. It is bright and responsive and supports multi-touch, but it needs a bare finger, so it does not work through ordinary gloves. It is used on phones and tablets.
An infra-red touch screen has a grid of infra-red beams across the surface, with emitters along two edges and detectors along the others. Touching the screen breaks the beams at that point, and the position is calculated from which beams are interrupted. It works with any object and can be scaled to a large display, but it is affected by dust and dirt on the frame. It is used on large interactive displays and information kiosks.
| Type | How it detects a touch | Where it is appropriate |
|---|---|---|
| Resistive | Two layers are pressed together, completing a circuit | Tills, ticket machines and industrial panels; works with a glove or stylus |
| Capacitive | A finger changes the capacitance of a grid of conductors | Phones and tablets; bright, responsive and multi-touch, but needs a bare finger |
| Infra-red | A touch breaks beams of infra-red light across the surface | Large interactive displays and kiosks; works with any object |
Sensors: what they are and what they capture
A sensor is an input device that measures a physical quantity and converts it into a signal the computer can process. It is different from the input devices above in that nobody operates it: it measures continuously and automatically, which is what makes it the input for an automated system. A sensor is chosen because of what it measures, so the exam expects you to match the quantity, not the device name.
The syllabus limits sensors to fourteen types. Learn each one with the quantity it measures and one context, because the common exam question gives you a scenario and asks which sensor is most suitable and why.
| Sensor | Data captured | Typical use |
|---|---|---|
| Acoustic | Sound level or noise | Monitoring noise levels in a factory or near a road |
| Accelerometer | Acceleration, movement or tilt | Detecting the orientation of a phone, or a fall in a fitness tracker |
| Flow | The rate at which a liquid or gas flows | Measuring water in an irrigation system or a pipe |
| Gas | The presence or concentration of a gas | A gas leak alarm in a kitchen or a mine |
| Humidity | The amount of water vapour in the air | A greenhouse or a museum where moisture must be controlled |
| Infra-red | Heat radiation, or the interruption of an infra-red beam | An intruder alarm, or a remote control |
| Level | The height of a liquid or solid in a container | Filling a tank to the correct level |
| Light | Light intensity | Switching street lights on at dusk, or closing automatic blinds |
| Magnetic field | The strength or direction of a magnetic field | Detecting that a door has opened, or a compass |
| Moisture | The water content of soil or a material | Deciding when to water crops |
| pH | How acidic or alkaline a liquid or soil is | Checking water quality or soil for crops |
| Pressure | The pressure of a gas or liquid, or a force | Tyre pressure monitoring, or a weather station |
| Proximity | Whether an object is nearby, without contact | A parking sensor, or a phone screen switching off during a call |
| Temperature | How hot or cold something is | A thermostat, an oven, or a fridge |
Choosing the most suitable sensor
A question that asks you to choose a sensor is really asking you to match a physical quantity to a device, so read the scenario for the quantity being controlled, not for the machinery around it.
A greenhouse that waters its plants when the soil dries out needs a moisture sensor, because the variable is water in the soil. A greenhouse that opens a vent when the air becomes too humid needs a humidity sensor, because the variable is water vapour in the air. A tank that stops filling when it is nearly full needs a level sensor. A barrier that opens when a car arrives needs a proximity or an infra-red sensor, depending on whether the system detects an object near it or a beam being broken.
Two rules help. First, name the quantity precisely: temperature, pressure, light, pH. Second, justify the choice by saying what the sensor measures and what the system does with that value, for example that a temperature sensor reports the value to the microprocessor, which switches the heater on when the reading falls below the set value.
Output devices: displays and projectors
An output device converts processed data from the computer into a form a human can understand or a machine can use. Without one the result of the processing would stay inside the machine. The output may be text, an image, sound, a physical movement or a printed page.
An LCD screen is the flat panel in a laptop, a phone or a monitor. It works by passing light through liquid crystals whose alignment is changed by an electric field, with a backlight behind them; each pixel is filtered to give its colour. It is thin, light and low-powered, which makes it appropriate for portable devices and for any screen that has to be looked at closely.
An LED screen uses light-emitting diodes as the light source or as the pixels themselves. It is brighter and has better contrast than a plain LCD, and large LED displays are used for advertising boards, stadium screens and information displays where the image must be visible from a distance and in daylight.
An LCD projector passes light through an LCD panel and projects the image onto a screen, and a DLP projector instead reflects light off a chip covered in tiny movable mirrors, switching each mirror on and off very rapidly to build the image. A projector is the right output device wherever an image has to be shown to a room of people rather than to one person: a classroom, a lecture theatre or a cinema. DLP projectors generally give sharper contrast and deeper blacks, while LCD projectors are often brighter for the same cost.
| Device | How it produces output | Where it is appropriate |
|---|---|---|
| LCD screen | Light passes through liquid crystals that control each pixel | Laptops, phones and monitors; thin, light and low-powered |
| LED screen | Light-emitting diodes form the pixels or the backlight | Large advertising boards and stadium displays; bright with strong contrast |
| LCD projector | Light passes through an LCD panel and is projected onto a screen | Classrooms and meeting rooms where an image must be seen by many people |
| DLP projector | Light reflects off a chip of tiny movable mirrors | Cinemas and presentations needing strong contrast |
Printers: inkjet, laser and 3D
An inkjet printer works by spraying tiny droplets of ink onto the paper through a print head that moves across the page. It is cheap to buy and produces good colour, which makes it appropriate for home use and for printing photographs, but it is slow on long documents and the ink cartridges are expensive per page and can dry out if the printer is left unused.
A laser printer works by using a laser to draw the page as an electrostatic image on a rotating drum; toner, a fine powder, is attracted to the charged areas, transferred to the paper and then fused by heat. It is fast, quiet and cheap per page, and the toner does not dry out, which makes it appropriate for offices and schools that print large numbers of text documents. Its weakness is that colour printing is expensive and photographic quality is lower than an inkjet's.
A 3D printer builds a solid object layer by layer from a digital model, melting and depositing a filament or hardening a resin. It is used to make a one-off part, a prototype or a replacement component without the cost of setting up a factory production line. It is appropriate where an object is needed quickly and in small numbers, and it is slow and limited in the materials it can use.
The speaker converts an electrical signal into sound and is the output device for any result that has to be heard: music, speech, alerts and the audio of a video. An actuator is an output device that produces movement. It converts a signal from the processor into a physical action, such as opening a valve, turning a motor or moving a robotic arm, which is what allows an automated system to affect the world rather than just report on it.
| Printer | How it works | Where it is appropriate |
|---|---|---|
| Inkjet | Sprays droplets of ink onto the paper from a moving print head | Home printing and photographs; cheap to buy and good colour, but slow and costly per page |
| Laser | A laser draws a charged image on a drum, toner is transferred and fused by heat | Offices and schools printing large volumes of text; fast and cheap per page |
| 3D | Builds a solid object layer by layer from a digital model | One-off parts, prototypes and replacement components |
Working together: input, process and output
Real systems use the devices together. In an automatic door, a proximity or infra-red sensor is the input, a microprocessor is the process, and an actuator that opens the door is the output. In a supermarket, the barcode scanner is the input, the stock database is the process, and the LCD screen at the till and the laser printer for the receipt are the outputs.
The pattern to write in an answer is: name the input device and the data it captures, say what the processor does with that data, then name the output device and what it produces. A question about an automated system is marked on that chain, and a question about a single device is marked on its use and its suitability for the context, so keep the two kinds of answer separate.
Key terms you must be able to define
- Input device
- Hardware that converts data or instructions from the outside world into a form the computer can process, which means into binary.
- Output device
- Hardware that converts processed data from the computer into a form a human can understand or a machine can use, such as text, an image, sound or movement.
- Sensor
- An input device that measures a physical quantity, such as temperature or light, and converts it into a signal the computer can process.
- Actuator
- An output device that converts a signal from the processor into a physical movement, such as opening a valve or turning a motor.
- Barcode scanner
- A device that shines light on a barcode and reads the reflected pattern to recover the digits encoded in it, used at tills and in libraries.
- QR code scanner
- A device or camera that reads a two-dimensional code holding data across and down, so it can store far more than a barcode, including a web address.
- Optical mouse
- A pointing device that shines light on a surface and compares successive images of it to work out the direction and distance of movement.
- Resistive touch screen
- A touch screen with two transparent layers that are pressed together to complete a circuit at the point of contact. It works with any object but is easily scratched.
- Capacitive touch screen
- A touch screen with a grid of conductors whose capacitance changes when a finger touches it. It is bright and supports multi-touch but needs a bare finger.
- Infra-red touch screen
- A touch screen with a grid of infra-red beams across its surface; a touch breaks the beams and the position is calculated from which beams are interrupted.
- 2D scanner
- A device that converts a flat printed page or photograph into a digital image.
- 3D scanner
- A device that captures the shape of a solid object and builds a digital three-dimensional model of its surface.
- Inkjet printer
- A printer that sprays droplets of ink onto paper from a moving print head. It is cheap to buy and good for colour, but slow and costly per page.
- Laser printer
- A printer that uses a laser to form a charged image on a drum, transfers toner to the paper and fuses it with heat. It is fast and cheap per page for text.
- 3D printer
- A printer that builds a solid object layer by layer from a digital model, used for one-off parts and prototypes.
- DLP projector
- A projector that reflects light off a chip of tiny movable mirrors to build an image on a screen, giving strong contrast.
- LCD projector
- A projector that passes light through an LCD panel and projects the resulting image onto a screen.
In context
2210 sets its questions inside systems a student already uses - a school network, a phone, a supermarket till, a vending machine, a website. These show how the theory is applied to a context you have not seen before, then you answer for the system you are given.
The barcode scanner reads the bars on each item and converts them into the product code, which is fast and avoids the typing errors a keyboard would produce. The computer looks the code up in its stock database, displays the name and price on the LCD screen facing the customer, and prints a receipt on a thermal or laser printer. The scanner is the right input device here because every item already carries a printed code and the queue has to keep moving.
A moisture sensor in the soil reports how much water it contains and a temperature sensor reports the air temperature. The microprocessor compares each reading with a set value: if the soil is too dry it opens a valve through an actuator, and if the air is too warm it opens a vent. A humidity sensor may control a misting system. The choice of sensor follows the quantity being controlled, which is why a moisture sensor and a humidity sensor are not interchangeable.
The teacher's laptop connects to a DLP projector so that the whole class can see the screen at once, which is the reason for choosing a projector over a larger monitor. A touch screen on the interactive board lets the teacher select and annotate directly, using a capacitive or infra-red panel depending on whether a finger or a pen is used. The speaker plays the audio from a video, and a laser printer produces the handouts.
A proximity sensor at the barrier detects a vehicle waiting and sends a signal to the microprocessor, which raises the barrier with an actuator and lights a display showing the number of free spaces. An infra-red beam across each bay can detect whether a car is parked in it. The output is both physical, through the actuator, and visual, through the LED sign, which is why an automated system needs output devices of more than one kind.
A capacitive touch screen is both input and output: it displays the interface and detects where a finger touches it. A microphone captures speech for a call, a digital camera captures images as a grid of pixels, and an accelerometer detects when the phone is turned so that the screen can rotate. The speaker and the screen provide the output, and the choice of a capacitive panel rather than a resistive one is what allows multi-touch gestures and a brighter display.
Flashcards
Click a card to flip it. Mark honestly — the tracker uses this.
Exam-style questions
7 questions, 21 marks. Write your answer and press Mark my answer — it is marked against the scheme and tells you which points you made and what would gain the next mark. You can still reveal the scheme and mark it yourself instead.
Mark scheme — tick each point you actually made
Mark scheme — tick each point you actually made
Mark scheme — tick each point you actually made
Mark scheme — tick each point you actually made
Mark scheme — tick each point you actually made
Mark scheme — tick each point you actually made
Mark scheme — tick each point you actually made
Exam technique for this topic
- Read the question for the word 'use' or the word 'how'. A question that asks what a device is used for wants contexts, not a description of its internal operation, and the reverse is also true.
- For sensor questions, name the exact quantity. 'A sensor to measure how hot it is' should be written as 'a temperature sensor', and 'water in the soil' as 'a moisture sensor', not 'a humidity sensor'.
- When asked to choose the most suitable device, give the choice and then a reason linked to the scenario: speed, accuracy, no contact, portability, or the size of the audience. A choice with no reason scores half.
- For printers, learn the trade-off in both directions: inkjet is cheap to buy and good for photographs but slow and expensive per page; laser is fast and cheap per page for text but expensive for colour.
- Remember that a touch screen is both an input and an output device. If a question asks for one of each in a device, the touch screen can be named once, but say clearly which role you are describing.
Why students lose marks here
Where this fits in O Level Computer Science 2210
This page is one topic of Cambridge O Level Computer Science 2210. O Level Computer Science 2210 is the course home: every area and every topic in Cambridge's own order, the papers you sit and what each one tests, and the exam-practice tools. The full topic list, with each topic linked to its revision page, is on the O Level Computer Science 2210 syllabus page.