Study Guide
Input and Output Devices
How a computer gets data in and results out: why input and output devices are needed, and how scanners, cameras, touch screens, keyboards, microphones, mice, screens, projectors, printers, speakers, actuators and 3D printers actually work, so that the right one can be chosen for a job.
Lesson 3.4 Computer Systems
For: Cambridge IGCSE Computer Science learners
Stage: Think
A kiosk that takes things in and gives things out
A school library (a made-up one) has a self-service kiosk. A pupil holds a book under a small window, and the kiosk beeps. The screen shows “Due back on 1 December”, the pupil taps “Print receipt” on the screen, and a slip of paper comes out.
Think it through
Make two lists: everything the kiosk takes in from the pupil and the book, and everything it gives out.
- Hint 1: What does the kiosk need to know to find the right book? What does it do in reply?
Show what happens
Takes in: the book’s barcode, and the pupil’s tap on the screen. Gives out: the beep, the words on the screen, and the printed receipt. Something has to carry data into the computer and something has to carry the result out, and a computer needs devices for both.
An input device sends data into a computer so that it can be processed. A computer can only work on the data it receives, so without input devices it would have nothing to process. An output device presents the results of processing to the user, or acts on them. The results of processing would be useless if they stayed inside the computer, so output devices are needed to show, say, print or do something with them.
Check your understanding
Show the answer
Answer: B. The screen that shows the due date.
Input devices send data in; output devices present results.
Stage: Predict
Reading stripes, squares and scenes
At the till of the school shop (also made up), a barcode scanner reads a packet of crisps and the till displays its name and price.
Think it through
Does the barcode on the packet contain the price? Think about what would happen on the day the shop changes the price of crisps.
- Hint 1: If the price were printed into the barcode, what would have to be done to every packet?
Show what happens
Usually it does not. A barcode normally holds only a number that identifies the product. The till looks the number up in the shop’s database to find the name and the current price, so the price can change without reprinting any packets.
A barcode scanner shines a beam of light, usually a laser, across the barcode. The dark bars absorb most of the light and the white spaces reflect it, so the light that comes back is a pattern of bright and dim. A light sensor measures this pattern, and the widths of the bars and spaces are turned into the product’s number, which is sent to the computer.
A QR code scanner reads a QR code, a square pattern of small dark and light squares. A QR code is read in two dimensions rather than along one line, so it can hold much more data than a barcode, such as a web address, and it can be read from any angle. The scanner is a camera: it takes a picture of the code, finds the three large squares in its corners to work out which way up it is, and decodes the pattern of small squares into the data. (A phone camera with the right software is a QR code scanner.)
A digital camera has a lens that focuses light from the scene onto an image sensor, a chip covered with millions of tiny light-sensitive cells. Each cell measures how much red, green or blue light reaches it and turns the amount into a number. The numbers for all the cells together are the picture: a grid of dots, called pixels, stored as a file.
Check your understanding
Show the answer
Answer: C. It measures the light reflected back from the dark bars and the white spaces.
A barcode scanner measures the pattern of reflected light.
Stage: Discover
Scanning a page and scanning an object
Think it through
A flat photograph of a clay vase and a 3D model of the same vase on a computer: what can you do with the 3D model that you cannot do with the photograph?
- Hint 1: Can you look at the back of the vase in the photograph?
Show what happens
You can turn it round and see every side, measure it, change its shape, or even print a copy of it. The model records the vase’s shape, and the photograph records only how it looked from one side.
A 2D scanner (a flatbed scanner) copies a flat page or photograph. A bright lamp and a row of light sensors move slowly under the glass, and the sensors measure how much light each tiny part of the page reflects, line by line. The measurements are turned into a digital image, which can be stored, edited or printed.
A 3D scanner records the shape of a real object. It measures the distance from the scanner to a very large number of points on the surface of the object. Some shine a laser line or a pattern of light on the object and use a camera to see how the line bends over its surface, which shows the shape; others combine many photographs taken from different sides. The points make a 3D model on the computer, which can be edited, measured, or sent to a 3D printer.
Check your understanding
Show the answer
Answer: A. A 2D scanner records a flat image of a page; a 3D scanner records shape from many surface points.
2D: a flat image. 3D: a model of a shape.
Stage: Think
Three ways to tell that something touched the screen
Think it through
A screen has to tell that a finger has touched it, and where. Suggest at least two different things the screen could detect to find out.
- Hint 1: What happens to the screen when a finger presses it? What happens to the light or the electricity near it?
Show what happens
It could detect a press (the screen is pushed), a change in electricity (a finger conducts it), or interrupted light (a finger blocks it). These are exactly the three ways below.
Do not confuse: Three kinds of touch screen
- How does it sense?Resistive
- Two thin layers lie close together with a tiny gap. A press pushes them together at that spot and completes an electrical circuit; the position is worked out from the electrical signal.Works with a finger, a gloved finger or a stylus, but needs a firm press.
- How does it sense?Capacitive
- The screen holds a weak electrostatic field across it. A conductive object, such as a fingertip, changes the field at the point it touches, and sensors find the point.Needs only a light touch and can follow several fingers, but ignores gloves and pens that do not conduct.
- How does it sense?Infra-red
- A grid of invisible infra-red beams lies just above the screen, with emitters along two edges and detectors opposite them. A touch breaks some beams, and which ones are broken give the position.Works with anything that blocks the beams, so it suits large screens and kiosks.
A touch screen is both an input device, because it senses touch, and an output device, because it also shows a picture.
Apply it
Show the answer
Answer: D. Capacitive, because it senses a conductive touch and rubber does not conduct.
Capacitive screens need a conductive touch.
Apply it
Show the answer
Answer: B. Infra-red, because anything that breaks the beams is detected, however light the touch.
Infra-red screens detect anything that breaks the beams.
Stage: Predict
Mice, keys and microphones
Think it through
An optical mouse has no rolling ball underneath. How might it tell which way, and how far, it has been moved over a desk?
- Hint 1: Think about what a camera could notice on the desk surface.
Show what happens
It could watch the surface: if what it sees slides to the left, the mouse has moved to the right. That is almost exactly how it works.
An optical mouse shines light (an LED or a laser) onto the surface beneath it. A tiny sensor takes many pictures of the surface every second, and the mouse’s chip compares each picture with the one before to work out the direction and distance moved. That movement, with any button clicks and scroll-wheel turns, is sent to the computer.
A keyboard has a switch under each key. Pressing a key completes an electrical circuit, and a controller in the keyboard works out which circuit it was and sends the computer a code for that key.
A microphone has a thin sheet, called a diaphragm, that vibrates when sound waves reach it. The vibrations are turned into a varying electrical signal, which is then converted into digital values (samples) that the computer can store and process.
| Input device | What it senses |
|---|---|
| Barcode scanner | The pattern of reflected light |
| Microphone | |
| Optical mouse | |
| Keyboard | |
| Capacitive touch screen | |
| Infra-red touch screen |
- Each device turns something physical (light, sound, movement, a press, a field, a beam) into data.
Show the completed table
| Input device | What it senses |
|---|---|
| Barcode scanner | The pattern of reflected light |
| Microphone | sound |
| Optical mouse | movement |
| Keyboard | key presses |
| Capacitive touch screen | electrostatic field |
| Infra-red touch screen | broken beams |
Apply it
Show the answer
Answer: A. Clear glass has so few marks that the mouse cannot tell how the surface moved between pictures.
An optical mouse compares successive pictures of the surface, so it needs a surface with some detail.
Stage: Think
Two ways to light a pixel
Every screen picture is made of thousands of tiny dots called pixels.
Think it through
Where could the light of a pixel come from: from the pixel itself, or from a lamp behind it? Which design would let a screen show a truly black pixel more easily, and why?
- Hint 1: What would a pixel that makes its own light do to show black? What would a pixel with a lamp behind it have to do?
Show what happens
A pixel that makes its own light can show black simply by being switched off. A pixel lit from behind has to block the light, and some always leaks through. Both designs are in use.
An LCD screen (liquid crystal display) makes no light of its own for each pixel. A bright lamp, the backlight, shines from behind. In front of it are liquid crystals that can be switched to let light through or to block it, one tiny part per pixel, and red, green and blue colour filters so that each pixel can make colours.
An LED screen (light emitting diode) has pixels that make their own light: each pixel is made of tiny LEDs, usually one each for red, green and blue. A black pixel is simply an LED that is switched off. Very large outdoor display boards work this way, and so do the OLED screens in many phones.
The names are often confusing in shops: many televisions sold as “LED TVs” are in fact LCD screens that are lit from behind by LEDs.
Check your understanding
Show the answer
Answer: C. In an LCD a backlight shines through liquid crystals that pass or block it; an LED pixel makes its own light.
LCD: light is blocked or let through. LED: pixels make light.
Stage: Discover
Making a picture on a wall
Think it through
A projector has a single bright lamp but must make a picture with millions of pixels, each of a different brightness. What does it have to do to the lamp’s light between the lamp and the screen?
- Hint 1: Which parts of the beam must be let through, and which must be stopped or sent away?
Show what happens
It has to control the light pixel by pixel: let some parts of the beam through (or towards the lens) and stop or send away others. The two projectors below do this in different ways.
An LCD projector splits the light of its bright lamp into red, green and blue. Each colour passes through its own small LCD panel, which blocks the light pixel by pixel, much like an LCD screen. The three coloured pictures are then combined by a lens and focused onto the screen.
A DLP projector (digital light processing) has a chip covered with millions of microscopic mirrors, one for each pixel. Each mirror can tilt rapidly, thousands of times a second, towards the lens, so the pixel is bright, or away from it, so the pixel is dark. The longer a mirror tilts towards the lens, the brighter its pixel. The lamp’s light usually passes through a spinning colour wheel, so that the mirrors reflect red, green and blue in turn, quickly enough that your eye blends them.
Check your understanding
Show the answer
Answer: D. Millions of tiny mirrors tilt towards or away from the lens, making pixels bright or dark.
DLP: a chip of microscopic mirrors, one per pixel.
Stage: Predict
Putting ink on paper
Think it through
A printer has to get tiny dots of colour onto a page. What are two different ways it might do this?
- Hint 1: It could throw something at the page, or it could stick something on and then fix it in place.
Show what happens
It could spray tiny drops of liquid ink onto the paper, or it could stick a fine powder to the paper and then fix it in place. Both methods are used: the first is the inkjet printer and the second the laser printer.
An inkjet printer has a print head with many tiny nozzles. The head moves across the page and sprays microscopic droplets of liquid ink, usually cyan, magenta, yellow and black, onto the paper, while the paper moves forward line by line. The droplets are forced out either by heating the ink or by a tiny crystal that squeezes it.
A laser printer has a rotating drum. A laser beam sweeps across the drum and changes its electrical charge in a pattern that matches the page. A fine powder called toner sticks to the charged pattern, and the drum rolls the toner onto the paper. Heated rollers then melt the toner so that it bonds to the paper.
Do not confuse: Inkjet and laser printers
- What goes on the paper?Inkjet
- Tiny drops of liquid ink sprayed through nozzles.Often used for photographs and small amounts of printing.
- What goes on the paper?Laser
- Toner powder, stuck to a charged drum pattern and then melted onto the paper by heat.Often used for large amounts of text, because it is fast and cheap per page.
Check your understanding
Show the answer
Answer: B. A laser makes a charge pattern on a drum, toner sticks to it and is moved to paper, then heated.
A laser printer uses a charged drum, toner and heat.
Stage: Discover
Sound, movement and solid objects
Think it through
Besides words and pictures on a screen or paper, what other kinds of output might a computer give? Suggest two.
- Hint 1: Think of a smart speaker, an automatic door and a machine that makes things.
Show what happens
It can give sound (a speaker), movement (a door that opens, a robot arm) and even a solid object (a 3D printer). These are the last three output devices in this lesson.
A speaker turns an electrical signal into sound. The signal passes through a coil of wire attached to a paper or plastic cone, and the coil sits in the field of a magnet. As the signal rises and falls, the coil is pushed and pulled, so the cone vibrates and makes the air vibrate: sound waves.
An actuator turns a signal from a computer into physical movement. A motor that opens a vent or turns a robot’s joint, and a valve that lets water into a washing machine, are actuators. They are how a computer makes something happen in the real world.
A 3D printer builds a solid object from a 3D model. It slices the model into very thin layers, and then builds the object one layer at a time. A common type melts a plastic thread and squeezes it out through a nozzle that moves to trace each layer, and each layer cools and sticks to the one below.
| Output device | What it produces |
|---|---|
| Speaker | |
| Actuator | |
| 3D printer | |
| Laser printer | |
| DLP projector |
- Match each device to the kind of output it exists to give.
Show the completed table
| Output device | What it produces |
|---|---|
| Speaker | sound |
| Actuator | movement |
| 3D printer | object |
| Laser printer | page |
| DLP projector | picture |
Check your understanding
Show the answer
Answer: A. It builds the object up in thin layers, following a 3D model.
3D printing is adding material layer by layer.
Stage: Apply
Choosing the right device
Apply it
Show the answer
Answer: C. A QR code, which can hold a web address and be read by a camera.
QR codes hold more data than barcodes and are read by cameras.
Apply it
Show the answer
Answer: D. A 3D scanner, because it measures surface points to record the shape.
Capturing a shape needs a 3D scanner.
Apply it
Show the answer
Answer: B. A laser printer, because it is fast and cheap per page for lots of text.
Laser printers suit large amounts of text.
Apply it
Show the answer
Answer: A. A barcode usually stores only a product number; the price is looked up in the shop’s database.
The barcode identifies the product; the database holds the price.
Apply it
Show the answer
Answer: D. An actuator, such as a motor that pushes the window open.
An actuator turns a signal into movement.
Stage: Consolidate
Show what you know
Think it through
Choose one input device and one output device from this lesson. Explain how each one works, in your own words, and why a computer needs devices like them.
Show a model answer
A good answer says how each device really works and ties the two together. For example: “A capacitive touch screen has an electrostatic field that a fingertip changes, so the screen finds where it was touched and sends that to the computer as input. A speaker passes the computer’s signal through a coil in a magnet’s field, so the cone vibrates and makes sound as output. Without input the computer has nothing to process, and without output nobody can use the results.”
Apply it
Show the answer
Answer: C. A DLP projector.
Input devices send data in; a projector presents it.
- An input device sends data into a computer; an output device presents or acts on results. Both are needed: without input there is nothing to process, and without output the results cannot be used.
- Barcode scanners measure reflected light from the bars; QR code scanners are cameras that read a square code holding more data; digital cameras use an image sensor of millions of light-sensitive cells. 2D scanners copy flat pages; 3D scanners measure points on an object’s surface to record its shape.
- Resistive touch screens detect a press that pushes two layers together; capacitive screens detect a conductive touch changing an electrostatic field; infra-red screens detect broken infra-red beams.
- An optical mouse compares pictures of the surface; a keyboard closes a circuit under each key; a microphone turns the vibrations of sound into a signal.
- LCD screens let light from a backlight through, or block it; LED screens make light in each pixel. LCD projectors use liquid-crystal panels; DLP projectors use millions of tiny mirrors.
- Inkjet printers spray ink; laser printers use a charged drum, toner and heat. Speakers vibrate a cone; actuators produce movement; 3D printers build objects layer by layer.
Sources and scope
- What this lesson is. The fourth lesson of the Computer Systems module, written for this site. It teaches Cambridge IGCSE Computer Science (0478) points 3.2.1 and 3.2.2 (2026 to 2028, version 6), grouping the devices by how they work. Sensors are in Lesson 5. Its curriculum links are provisional and imply no endorsement by any examination board. It has not been approved by the site owner.
- Original material. The library kiosk, the school shop, the museum display, the school office, the school greenhouse and the pupils named are fictional and were written for this lesson.
- Simplified on purpose. Each device is explained at IGCSE depth. Real devices vary: barcodes come in several forms, touch screens are built in several ways, laser printers charge their drums in different ways, and 3D printers use several methods besides melting plastic. QR code decoding, error correction and the electronics of each device are not taught.
An output device that turns a signal from a computer into physical movement, such as a motor that opens a vent.
An organised collection of data stored so that it can be searched, sorted and updated.
Hardware that sends data into a computer so that it can be processed, such as a keyboard, a scanner or a microphone.
Hardware that presents the results of processing, or acts on them, such as a screen, a printer or a speaker.
One of the tiny squares that make up an image, each of which has a single colour stored as a binary code.
An input device that measures a physical property of its surroundings, such as temperature or light, and sends the readings to a computer as data.
Your progress on this lesson
Saved in this browser only. It is not sent anywhere, does not follow you to another device, and is lost if you clear this site’s data.
This browser is not allowing the site to save progress, so it will be forgotten when you leave the page.