← IGCSE Computer Science · Cambridge · GCSE Computer Science revision
⭐ 0
Cambridge IGCSE Computer Science (0478/0984) · Topic 3 (3.2) Input and output devices and sensors
Mini-Lesson

Input and output devices and sensors

3 missions. Guess, learn, then check. Your place is saved.

  1. Mission 1Your phone screen feels your finger but not your glove. Why?
  2. Mission 2How can millions of tiny mirrors make a cinema picture?
  3. Mission 3How does your phone know which way up it is?
Mission 1

Your phone screen feels your finger but not your glove. Why?

Make a guess: Your phone screen feels your finger but not your glove. Why?

Hardware · input devices

Input devices

  • An input device lets data be entered into a computer so that it can be processed. Without input, the computer has nothing to work on.
  • Each one turns something in the real world (a key press, a sound, a movement) into data.
DeviceHow it works
KeyboardKeys sit over a grid of row and column wires. Pressing a key connects one row to one column. The keyboard scans the grid to find which key it is and sends that key's character code to the computer
MicrophoneSound waves make a thin diaphragm vibrate. Its movement produces a varying electrical signal, which is converted to digital so the computer can store and process it
Optical mouseAn LED lights the surface below. A small image sensor takes over 1,000 images a second. A processor compares each image with the last to work out the direction and distance moved, and sends this to the computer to move the pointer
Hardware · input devices

Cameras and scanners

  • All three use a sensor made of light-sensitive cells, then convert the readings to digital data.
DeviceHow it works
Digital cameraA lens focuses light onto an image sensor with millions of light-sensitive cells. Each cell turns light into an electric charge; red, green and blue filters record colour. The readings are converted to digital and stored as the pixels of an image
2D scannerA document lies on a glass plate and is lit by a bright light as the scan head moves along it. Reflected light is directed by mirrors and a lens onto a sensor, which turns it into an electrical signal; this is converted to digital to make an image
3D scannerLasers or patterns of light are shone onto a solid object, and a camera sensor records the reflected light. The scanner calculates the distance to millions of points on the surface, giving their coordinates. The object (or scanner) is moved so every side is captured, and the points are joined into a 3D model
Hardware · input devices

Barcode and QR code scanners

Barcode scannerscannerLEDsensorbeamabsorbedWhite spaces reflect light back to the sensor.Black bars absorb most of it.decodednumberprice looked up
DeviceHow it works
Barcode scannerShines light (from an LED or laser) onto the barcode. White spaces reflect much more light than black bars, which absorb most of it. A sensor turns the reflected light into an electrical signal, and the pattern of bar widths is decoded into a number
QR code scannerA camera captures a 2D grid of black and white squares, and software decodes the pattern. Three large squares in the corners let it be read at any angle. It can hold far more data than a barcode, such as a web address
  • A barcode's number identifies the product. The price is looked up in a database; it is not stored in the bars.
Quick check
?A shop's barcode scanner is pointed at the barcode on a tin of beans. What is the scanner actually detecting?
Hardware · input devices

Resistive and capacitive touch screens

Resistive and capacitiveResistivegloved finger pressesflexible top sheetrigid glassconducting coatings shown orange; small spacer dotskeep them apartcircuit completedCapacitiveglass with a conducting layerbare fingercurrent drawngloveinsulator: no change
  • There is more than one kind of touch screen. They detect a touch in different ways.
TypeHow it detects a touch
ResistiveA flexible top sheet sits over a rigid glass layer. Each has a conducting coating on the inside, kept apart by tiny insulating spacer dots. Pressing pushes the two layers together at one point, completing a circuit. The voltage measured there gives the position
CapacitiveGlass is coated with a transparent conducting layer that holds an even electric field (charge). A bare finger conducts, so it draws a small current from the screen where it touches. The controller measures the change to calculate the position
Hardware · input devices

Infra-red touch screens and comparing them

Infra-red touch screengloveyxLEDs: left and bottom edges · sensors: right and topedgesinfra-red beams (invisible)
  • Infra-red: LEDs along two edges send a grid of invisible infra-red beams across the screen to sensors on the opposite edges. A touch blocks one or more beams; the blocked horizontal and vertical beams give the position.
ResistiveCapacitiveInfra-red
Works with a glove or plastic stylus?Yes, any pressureNo, needs a conductor such as skinYes, any object that blocks the beams
Several touches at once?Usually one touch onlyYes (multi-touch)Yes
Other pointsCheap; plastic top sheet scratches more easily and makes the image less clearGlass surface: clear, bright and hard-wearingGlass surface; very bright light can affect the sensors
Quick check
?Factory workers wearing thick gloves need a touch screen. Which choice is best, and why?
Quick check
?A museum wants a large wall touch screen. Several children must be able to use it at once, some with plastic pen-shaped pointers. Which type is most suitable?
Mission check

?Your phone screen feels your finger but not your glove. Why?
Mission 2

How can millions of tiny mirrors make a cinema picture?

Make a guess: How can millions of tiny mirrors make a cinema picture?

Hardware · output devices

Output devices and screens

LCD and LED screensLCD pixelLEDbacklightliquidcrystalsblockedfilterscrystalsgive outno lightLED pixelno backlighteach LED givesout its own light
  • An output device presents the results of processing in a form people can see, hear or use, or makes something physically happen. Without one, results stay inside the computer.
DeviceHow it works
LCD screenEach pixel contains liquid crystals. A backlight (now usually LEDs) shines from behind. A voltage changes the crystals so they block light or let it through, and red, green and blue filters give each pixel its colour. The crystals give out no light themselves
LED screenEach pixel is made of tiny red, green and blue LEDs that give out their own light, so no backlight is needed. Very bright, so used for large outdoor and stadium screens
  • A TV sold as an "LED TV" is usually an LCD screen with an LED backlight.
Hardware · output devices

LCD and DLP projectors

DLP and LCD projectorsDLP projector: mirrors reflectlampcolour wheelDLP chipclose-upon: into the lensoff: to a light absorberLCD projector: light passes throughlampdichroicmirrorsLCD panelsprismlens
DeviceHow it works
DLP projectorLight shines onto a DLP chip covered in up to 8.8 million tiny mirrors, one for each pixel. Each mirror tilts one way to reflect light into the lens (a bright pixel) or the other way to reflect it away (a dark pixel). Mirrors switch thousands of times a second; the longer a mirror is on, the lighter its shade of grey. Colour comes from a spinning red, green and blue colour wheel, or from three chips, one per colour
LCD projectorWhite light from a bright lamp is split by special mirrors into red, green and blue beams. Each beam passes through its own small LCD panel, which blocks or lets through light for each pixel. A prism combines the three images, and a lens enlarges and focuses the picture onto the screen
  • Key difference: DLP reflects light off mirrors; LCD passes light through liquid crystals.
Quick check
?In a DLP projector, one pixel must be shown as mid-grey rather than white. What does its mirror do?
Hardware · output devices

Inkjet printers

Inkjet printerInkjet print headbelt and motorprint headpaperpaper moves onThermal nozzlePiezoelectric nozzleheaterbubbleliquid inkdropletcrystalflexesno heatdroplet
StepWhat happens
1Data for the page is sent from the computer and stored in the printer's memory (buffer)
2Paper is fed in, and a motor moves the print head across the page on a belt
3The print head fires tiny droplets of liquid ink from many nozzles onto the paper
4Thermal heads heat the ink to form a bubble that pushes a droplet out. Piezoelectric heads use a crystal that changes shape when a current is applied, pushing a droplet out without heating
5The paper moves on a little and the next line is printed, until the page is complete
  • Colour inkjets use separate cyan, magenta, yellow and black inks.
  • Good for photos and small numbers of copies. The printer is cheap, but ink makes each page cost more.
Hardware · output devices

Laser printers

Laser printerdrum234567paperturns clockwise2charging roller gives the drum a charge3laser and rotating mirror change the charge4toner hopper: powder toner sticks to the pattern5transfer roller under the paper pulls toner onto it6fuser rollers: heat and pressure7discharge lamp clears the drum
StepWhat happens
1Data for the whole page is sent to the printer and stored in its memory
2A rotating drum is given an electric charge
3A laser scans across the drum, changing the charge on parts of it, so the charge pattern matches the text and images
4Charged powder toner sticks only to that pattern on the drum
5The paper is given a charge that pulls the toner off the drum onto the paper
6A fuser (heated rollers) melts the toner and presses it onto the paper so it stays
7The charge is removed from the drum, ready for the next page
  • Fast with a low cost per page, so good for printing many copies.
Quick check
?In a laser printer, what happens next, straight after the laser has scanned across the drum?
Hardware · output devices

3D printers, speakers and actuators

DeviceHow it works
3D printerBuilds a solid object layer by layer from a digital design (made in CAD software or by a 3D scanner). Methods include: plastic melted and squeezed through a moving nozzle; a laser or light hardening liquid resin; a laser fusing fine powder
SpeakerDigital sound data is converted to a varying electrical signal and amplified. The signal flows through a coil attached to a cone. The coil becomes a magnet that is pushed and pulled by a permanent magnet, so the cone vibrates and makes sound waves
ActuatorTurns an electrical signal from a computer or microprocessor into physical movement, such as a motor turning, a valve opening or a pump starting
Quick check
?A school office prints about 500 letters a day and wants fast printing at a low cost per page. Which output device is best?
Mission check

?How can millions of tiny mirrors make a cinema picture?
Mission 3

How does your phone know which way up it is?

Make a guess: How does your phone know which way up it is?

Hardware · sensors

What a sensor does

What a sensor doesphysical property:temperature 21 °CTemperaturesensorreadings(data), sentcontinuallyMicroprocessordisplay itstore itact on it
  • A sensor is an input device that measures a physical property, such as temperature or light, and sends the reading as data.
  • It takes readings continually and sends them as data the microprocessor can use.
  • A sensor only measures. The microprocessor uses the data: to show it, store it or act on it.
  • Purpose: gather accurate data day and night, even where it is unsafe for people.
Hardware · sensors

Sensors for movement and position

Sensors in a phoneproximitylightaccelerometermagnetic fieldpressure (air)xyz
  • Your phone contains several different sensors. Each measures one thing.
SensorData capturedWhen it is used
AccelerometerAcceleration along three axes (x, y, z), including the pull of gravity: changes in speed, tilt and directionRotating a phone's screen; counting steps; detecting a crash to set off a car airbag
Magnetic fieldStrength and direction of a magnetic fieldPhone compass and maps; detecting a magnet moving away when a door or window opens
ProximityWhether an object is near, without touching itTurning a phone screen off at your ear during a call; car parking sensors
Infra-redInfra-red radiation: heat from a moving warm body, or whether an infra-red beam has been brokenDetecting intruders in a burglar alarm; automatic doors
PressurePressure or force pressing on it, including air pressurePressure mat in an alarm; tyre pressure; weather station
Quick check
?A car's airbag must inflate within a fraction of a second of a crash. Which sensor provides the data that a crash is happening?
Hardware · sensors

Sensors for the air and surroundings

SensorData capturedWhen it is used
TemperatureTemperature (°C)Central heating; ovens; greenhouses; weather stations
HumidityAmount of water vapour in the air (relative humidity, %)Greenhouses; museums and art galleries; weather stations
LightLight intensity (brightness)Street lights switching on at dusk; adjusting screen brightness
GasAmount of a particular gas, such as carbon dioxide, carbon monoxide or oxygenCarbon monoxide alarm at home; carbon dioxide in a greenhouse or classroom
AcousticSound: how loud it is and its patternDetecting breaking glass in an alarm; noise monitoring near an airport; voice-activated devices
Hardware · sensors

Sensors for liquids and soil

Sensors for liquids and soilsoilmoistureprobe (in thesoil)humidity sensor (inthe air)level sensor(on the tank)flow sensor(on the pipe)pH probe (in the pond)
SensorData capturedWhen it is used
MoistureWater content of soil or a materialWatering plants only when the soil is dry; finding damp in walls
LevelHeight of a liquid (or a solid such as grain) in a containerFuel gauge in a car; water tanks; grain silos
FlowRate at which a liquid or gas moves through a pipeWater supply pipes; fuel flow in an engine; air flow in ventilation
pHHow acidic or alkaline a liquid or soil is (pH 0 to 14)Swimming pools; fish tanks; soil testing; chemical processes
  • Check the context: soil → moisture; air → humidity; container → level; pipe → flow.
Quick check
?A gardener wants plants watered automatically, but only when the soil becomes dry. Which sensor is most suitable?
Quick check
?A leisure centre needs the swimming pool water checked automatically, so that it never becomes too acidic. Which sensor is most suitable?
Your answer
?A factory fills tanks with orange juice. Filling must stop before a tank overflows. Name the type of sensor needed.
Mission check

?How does your phone know which way up it is?
Recap

Big ideas

  • An input device turns something in the real world into data the computer can process; most use a sensor and convert its readings to digital.
  • Barcode scanners detect reflected light from bars and spaces; QR scanners use a camera to read a 2D grid of squares.
  • Resistive screens need pressure, capacitive screens need a conductor such as skin, infra-red screens detect blocked beams.
  • Output devices turn processed data into something seen, heard or done: LCD screens block a backlight, LED screens make their own light.
  • DLP projectors reflect light off millions of tilting mirrors; LCD projectors pass light through three LCD panels.
  • Inkjets fire liquid ink droplets from a moving head; laser printers use a charged drum, toner and a heated fuser; 3D printers build objects layer by layer.
  • A sensor measures one physical property and sends the readings continually as data; the microprocessor uses that data.
  • Match the sensor to exactly what must be measured: moisture for soil, humidity for air, level for a container, flow for a pipe.
  • Accelerometers measure movement and tilt, including gravity; proximity detects nearby objects; infra-red detects body heat or broken beams.
🏆

Mini-lesson complete!

⭐⭐⭐

You've worked through Input and output devices and sensors for Cambridge IGCSE Computer Science (0478/0984). 🎉

  1. Mission 1Your phone screen feels your finger but not your glove. Why?
  2. Mission 2How can millions of tiny mirrors make a cinema picture?
  3. Mission 3How does your phone know which way up it is?

Your stars: 0 / 0

Next: more IGCSE Computer Science · Cambridge lessons and games on the IGCSE Computer Science · Cambridge page.

📣 Smashed it? Share your score

Challenge a mate to beat your stars, or show a parent how you got on.

→ Back to IGCSE Computer Science · Cambridge

Specification points and sources for this lesson are listed at the bottom of the page.

Sources (34)

The specification points and sources behind this lesson.

  1. 1 Cambridge IGCSE 0478 syllabus 2026–2028, 3.2.1, p. 17
  2. 2 Cambridge IGCSE 0478 syllabus 2026–2028, 3.2.2, p. 17
  3. 3 Cambridge IGCSE 0478 syllabus 2026–2028, 3.2.3, p. 17
  4. 4 ScienceAlert, "How does a touchscreen actually work?": https://www.sciencealert.com/how-does-a-touchscreen-actually-work
  5. 5 Elo Touch Solutions, Touch Technology Comparison chart: https://docs.elotouch.com/collateral/ELO_Touch_Technology_Comparison_16114AEB00023.pdf
  6. 6 Microsoft Applied Sciences, "Anti-ghosting": https://www.microsoft.com/applied-sciences/projects/anti-ghosting
  7. 7 Shure, "Mic basics: transducers": https://www.shure.com/en-GB/insights/mic-basics-transducers
  8. 8 TechTarget, "optical mouse": https://www.techtarget.com/whatis/definition/optical-mouse
  9. 9 Canon UK, "Image sensors explained": https://www.canon.co.uk/pro/infobank/image-sensors-explained/
  10. 10 Tom's Hardware, "Under scrutiny: four 1200 dpi scanners": https://www.tomshardware.com/reviews/scrutiny,443-3.html
  11. 11 Artec 3D, "Laser 3D scanning": https://www.artec3d.com/learning-center/laser-3d-scanning
  12. 12 Keyence, "What is an industrial barcode scanner?": https://www.keyence.com/blog/what-is-an-industrial-barcode-scanner.jsp
  13. 13 Keyence, "What is a QR code?": https://www.keyence.com/ss/products/auto_id/codereader/basic_2d/qr.jsp
  14. 14 Elo, "How does Elo's AccuTouch technology work?": https://elosupport.elotouch.com/hc/en-us/articles/31648769206423-How-does-Elo-s-AccuTouch-technology-work
  15. 15 Elo, "How does Surface Capacitive technology work?": https://elosupport.elotouch.com/hc/en-us/articles/31649763394711-How-does-Surface-Capacitive-technology-work
  16. 16 Elo, "How does Infrared (IR) technology work?": https://elosupport.elotouch.com/hc/en-us/articles/31651321555735-How-does-Infrared-IR-technology-work
  17. 17 Topway (LCD module manufacturer), "LCD touch screen comparison": https://topwaydisplay.com/en/blog/lcd-touch-screen-comparison
  18. 18 Texas Instruments, "DLP technology" overview (DLPB010A): https://ti.com/lit/ml/dlpb010a/dlpb010a.pdf
  19. 19 Computerworld, "Digital light processing": https://www.computerworld.com/article/1712816/digital-light-processing.html
  20. 20 Which?, "What are LCD and LED TVs and what's the difference?": https://www.which.co.uk/reviews/televisions/article/tv-screen-technology-explained/what-are-lcd-and-led-tvs-and-whats-the-difference
  21. 21 ViewSonic, "Direct view LED video wall vs LCD video wall": https://www.viewsonic.com/library/tech/direct-view-led-video-wall-vs-lcd-video-wall-whats-the-difference/
  22. 22 Epson, "3LCD projection technology": https://corporate-origin.epson.biz/en/technology/overview/projector/3lcd.html
  23. 23 Epson, "Micro Piezo technology": https://www.epson.ae/discover/printers/micro-piezo-technology
  24. 24 HP, "How LaserJet printers work": https://www.hp.com/my-en/tech-takes/printers/explainer/how-laser-jet-printers-work-science-mechanics.html
  25. 25 Formlabs, "FDM vs SLA vs SLS": https://formlabs.com/blog/fdm-3d-printing-design-guide/
  26. 26 AVIXA, "How do speakers work?": https://www.avixa.org/explore/articles/how-do-speakers-work
  27. 27 FIRGELLI Automations, "What is an actuator?": https://www.firgelliauto.com/blogs/news/what-is-an-actuator
  28. 28 Microsoft Press, "CompTIA A+ Rapid Review: Printers": https://microsoftpressstore.com/articles/article.aspx?p=2201308
  29. 29 Canon, "Technology used in laser printers and multifunction printers": https://global.canon/en/technology/support18.html
  30. 30 Android Developers, "Sensors overview" (Table 1): https://developer.android.com/develop/sensors-and-location/sensors/sensors_overview
  31. 31 Bosch Semiconductors, "Sensors for safety systems": https://www.bosch-semiconductors.com/products/mems-sensors/safety-systems/p-automotive-mems-sensors.html
  32. 32 Murata, "Pyroelectric infrared sensors: basic notes": https://www.murata.com/en-eu/products/sensor/infrared/overview/basic/note
  33. 33 Vernier, "CO2 Gas Sensor" user manual: https://www.vernier.com/files/manuals/co2-bta/co2-bta.pdf
  34. 34 Vernier, "Soil Moisture Sensor" user manual: https://www.vernier.com/manuals/SMS-BTA