3.2 Input and output devices

Show All Section Notes

Input Devices

1. What Counts as an Input Device

An input device is any hardware that puts data into a computer system. The pattern is the same for all of them: something physical in the real world — light, pressure, sound, movement — is measured and converted into the binary the processor can work with.

Exam questions on this section rarely ask what a device is for. They ask how it works. So for each device below, learn the sequence of steps, not just the description.

2. Barcode Scanner

A barcode is a series of dark and light lines of varying thickness that represent a number.

How it works
  1. A light source — an LED or a laser — is shone onto the barcode.
  2. The light is reflected back. Dark bars reflect less light; light bars reflect more.
  3. Sensors (photodiodes) detect the reflected light and produce a varying electrical signal.
  4. The signal is converted into a binary number.
  5. That number is used to look the item up in a database, which returns its price and description — the price is not stored in the barcode itself.
  6. The stock level for that item is automatically reduced by one.
Supermarket checkoutsLibrariesParcel tracking
AdvantagesDisadvantages
Much faster than typing the code inThe barcode can be creased, dirty or damaged and then will not scan
Fewer errors, because no one has to read and retype a numberHolds only a small amount of data — typically a 13-digit number
Stock control is updated automatically and in real timeUseless without the database it points into

3. QR Code Scanner

A QR (Quick Response) code is a matrix of black and white squares. Because it stores data in two dimensions rather than one, it holds far more than a barcode — thousands of characters rather than a dozen or so digits.

How it works
  1. A camera — usually in a smartphone or tablet — captures an image of the code.
  2. Software locates the three large squares in the corners, which tell it the code's position and orientation. This is why a QR code can be read upside down or at an angle.
  3. The pattern of light and dark squares is decoded into binary and then into the data it represents.
  4. The device acts on that data — typically opening a web address.

QR codes include built-in error correction, so they still scan correctly when part of the code is dirty, damaged or covered by a logo.

Web links in advertisingEvent ticketsMobile payments
The security point examiners like: a QR code is not human-readable, so you cannot tell where it leads before scanning it. A malicious code can send a user to a fake site designed to steal login or payment details, or trigger a download. That unreadability is a genuine disadvantage, not just a curiosity.

4. Digital Camera

How it works
  1. Light enters through the lens, which focuses it onto an image sensor (a CCD or CMOS chip).
  2. The sensor's surface is divided into millions of tiny light-sensitive elements — the pixels.
  3. Each pixel produces an electrical charge proportional to the amount of light falling on it.
  4. An analogue-to-digital converter turns each charge into a binary value.
  5. The camera's processor assembles the values into an image file, usually compressing it, and writes it to a memory card.

The number of pixels is the camera's resolution. More pixels means more detail — and a larger file.

5. Keyboard

How it works
  1. Pressing a key completes a circuit beneath that key.
  2. The keyboard's processor detects which circuit in the key matrix has closed.
  3. It looks the position up in a character map to find the matching character code (such as ASCII).
  4. That code is sent to the computer, which displays or stores the character.
AdvantagesDisadvantages
Reliable, and needs no training to use for basic entrySlow for large volumes of data compared with automatic methods
Text can be entered and corrected directlyTyping mistakes introduce errors that automatic input would not
Almost universally availableProlonged use is associated with repetitive strain injury (RSI)

6. Optical Mouse

How it works
  1. An LED underneath illuminates the surface below the mouse.
  2. A tiny sensor captures thousands of images of the surface every second.
  3. A processor compares consecutive images to work out the direction and distance moved.
  4. That movement data is sent to the computer, which moves the on-screen pointer to match.

Compared with the older mechanical ball mouse it has no moving parts to collect dirt, so it needs no cleaning, and it is more accurate. It will not track well on glass or a plain, featureless glossy surface, because there is no detail for it to compare between images.

7. Microphone

How it works
  1. Sound waves reach a diaphragm and make it vibrate.
  2. The vibration is converted into a varying electric current — an analogue signal whose shape follows the sound wave.
  3. An ADC samples that signal at regular intervals and converts each sample into binary.
  4. The binary data is stored or transmitted.

The sampling rate (how often samples are taken) and the sampling resolution (how many bits per sample) determine how closely the digital version matches the original sound.

8. 2D Scanner

A 2D scanner, usually a flatbed, digitises a flat document or photograph.

How it works
  1. The document is placed face down on the glass.
  2. A bright light illuminates it while a scan head moves along the length of the document.
  3. Mirrors and lenses direct the reflected light onto a CCD.
  4. The CCD converts the light into electrical signals, which are digitised into a bitmap image.

The result is a picture of the page. To turn a scanned page of text into text that can be edited, OCR (optical character recognition) software must process the image and identify the characters in it.

Digitising documentsScanning photographsPassport checking at airports

9. 3D Scanner

A 3D scanner captures the shape of a solid object rather than a flat surface.

How it works
  1. The object is scanned using lasers, white light, or X-rays / CT scanning for medical use.
  2. The scanner records the position of a very large number of points on the object's surface, measuring its x, y and z dimensions.
  3. Software builds those measurements into a 3D model.
  4. The model can be edited, stored, or sent to a 3D printer to produce a physical copy.
Medical prosthetics and dentistryReverse engineering partsArchaeologyAnimation and CGI

10. Touch Screens

A touch screen is both an input and an output device. The syllabus names three technologies, and they are distinguished by what physically happens when you touch the screen.

Resistive

Two transparent conductive layers are separated by a thin gap. Pressing the flexible top layer makes it touch the bottom layer, completing a circuit at that point. The change in voltage is measured and used to calculate the coordinates of the touch.

Capacitive

A glass layer is coated with a transparent conductor holding a uniform electrostatic charge. A bare finger conducts electricity, so touching the screen changes the electrostatic field at that point. The change is measured and the coordinates calculated.

Infrared

Emitters and detectors around the edge of the screen create an invisible grid of infrared beams just above the surface. Touching the screen breaks a beam horizontally and a beam vertically, and the coordinates come from which two beams were interrupted. (Some infrared screens detect the warmth of a finger instead.)
ResistiveCapacitiveInfrared
DetectsPressureChange in electrostatic fieldBroken light beams
CostCheapestMediumMost expensive
DurabilityPoor — the top layer wears and scratchesGood — a solid glass surfaceGood
Multi-touchNoYesYes
Gloved hand or stylusWorksDoes not work with an ordinary glove or plain stylusWorks with anything
Visibility in sunlightPoorer — multiple layers reduce clarityGoodGood
WeaknessNot durable, single touch onlyNeeds a conductive touchCost; dirt or strong light can interfere with the beams

11. Exam Focus

Describe the process, in order. "A barcode scanner scans the barcode" earns nothing. Light source → reflection differs between dark and light bars → sensor detects it → converted to binary → database lookup. The marks are in the sequence.
The price is not in the barcode. The barcode holds a number that identifies the product; the price comes from the database record that number points to. This matters — it is why a shop can change prices without reprinting labels.
Choose touch screen technology from the scenario. Outdoors or industrial, with gloves → resistive or infrared. A phone needing pinch-to-zoom → capacitive. A large interactive whiteboard → infrared. Justify by the named property, not by "it is better".