Input and Output Devices
Why a computer needs input and output devices, how each device in the syllabus works, and how to choose the right sensor.
WATCH IT EXPLAINED
EXPLORE IT IN 3D
The gadget bench
Every device on this bench is cabled to one computer. Sort them, scan a barcode, test three touch screens, print a page and a cone — then let a greenhouse decide for itself.
Input and output devices
Input devices put data into a computer; output devices bring results out to people or the world.
A computer can only process data it has been given. And its results are no use if they stay inside it.
| Input device | Output device | |
|---|---|---|
| Job | lets data be entered into a computer | takes data from the computer |
| Turns | something from the outside world into binary data the computer can process | data into a form a person can see, hear or use, or into a physical action |
| Example | a key press, a sound, a picture or a measurement goes in | a picture, a sound or a movement comes out |
Example:Some devices are both. A touch screen is an input device, because it senses your touch. It is also an output device, because it shows the picture.
Barcode and QR code scanners
Scanners read the pattern of dark and light, turn it into binary, and the computer looks it up.
A barcode scanner works like this:
- It shines light, for example from a laser, across the barcode.
- The dark bars reflect less light than the white spaces.
- The scanner turns the pattern of reflected light into binary. That gives the number printed under the bars.
- The computer looks the number up, for example in a shop's database, to find the product and its price.
A QR code is a two-dimensional grid of dark and light squares. A phone's camera often reads it. The large squares in its corners are used for orientation, so it can be read at any angle. It can hold data such as a web address.
Digital cameras and 2D and 3D scanners
Cameras and scanners measure light and turn the measurements into a digital image or model.
Digital camera
- Light passes through the lens onto an image sensor, a charge-coupled device (CCD).
- The sensor is divided into pixels. Each pixel measures the light that reaches it.
- An analogue-to-digital converter turns those measurements into binary.
| Scanner | What it does | Result |
|---|---|---|
| 2D scanner | shines a light across a document on its glass; mirrors and lenses capture the reflected light | a 2D digital image |
| 3D scanner | shines a laser or a light over the surface of a solid object and records its measurements, such as width, height and depth | a 3D digital model of the object |
Keyboard, optical mouse and microphone
Each of these input devices turns a press, a movement or a sound into signals the computer uses.
All three are input devices. Here is what happens inside each one.
| Device | How it works |
|---|---|
| Keyboard | A key pushes a switch on a circuit board and completes a circuit. Signals go to the computer, which works out which key was pressed. |
| Optical mouse | An LED shines red light onto the surface below. The light reflects back through a lens and is turned into values, which are sent to the computer. The computer works out the direction and the speed of the movement. |
| Microphone | Sound waves make a diaphragm (a thin sheet) vibrate. This produces an electrical signal. An analogue-to-digital converter samples that signal to turn it into binary. |
Remember:A sound is analogue: it changes smoothly. It must be turned into binary before the computer can process it.
Resistive touch screens
A resistive screen works by pressure: pushing two layers together completes a circuit.
A resistive touch screen has two layers with a small gap between them.
- Pressing the screen pushes the top layer into the bottom layer.
- The layers touch and complete a circuit, so electricity flows.
- The screen calculates the coordinates of the touch.
| Advantages | Disadvantages |
|---|---|
| cheap to manufacture | can be hard to see in sunlight |
| works with a finger, a glove or a pen | the top layer can be scratched or worn |
| usually cannot detect more than one touch at a time |
Capacitive touch screens
A capacitive screen senses the change in charge where a finger, which conducts, touches the glass.
A capacitive screen is glass with a transparent layer that conducts electricity. The layer holds a small electrical charge.
- A finger also conducts. So touching the screen changes the charge at that point.
- Sensors measure the change to work out the coordinates of the touch.
| Advantages | Disadvantages |
|---|---|
| detects several fingers at once (multi-touch) | only responds to things that conduct |
| clear picture, even in sunlight | does not work with ordinary gloves or a plastic pen |
| durable surface | its glass can crack |
Infra-red touch screens
An infra-red screen finds a touch by seeing which invisible light beams are broken.
An infra-red touch screen has an invisible grid of infra-red beams across it, made by LEDs.
- Anything that touches the screen breaks some of the beams: a finger, a glove or a pen.
- Sensors detect which beams are broken.
- The broken beam in each direction gives the position of the touch.
| Advantages | Disadvantages |
|---|---|
| durable | expensive to manufacture |
| allows multi-touch | its glass can crack |
| works with any object |
Screens and projectors
Screens and projectors control the light of every tiny pixel to build the picture.
| Device | How it makes the picture |
|---|---|
| LCD screen | Lit from behind, for example by LEDs. Liquid crystals are switched to let that light through or block it. Each pixel's red, green and blue filters mix to make its colour. |
| LED screen | Its pixels are made from red, green and blue LEDs. |
| LCD projector | Also uses liquid crystals. A lens projects its image. |
| DLP projector | A chip has a grid of tiny mirrors, one for each pixel. Each mirror tilts to reflect light towards the lens or away from it. A colour wheel adds the colour. |
Watch out:A screen sold as 'LED' can be an LCD lit by LEDs.
Inkjet and laser printers
An inkjet sprays drops of ink; a laser printer uses static electricity to stick toner powder to paper.
Inkjet printer: the print head moves across the paper. Its nozzles spray tiny drops of ink onto it. Each drop is made either by heating the ink into a bubble, or with a vibrating piezoelectric crystal.
Laser printer: it uses static electricity.
- A laser changes the charge on a charged, rotating drum to draw the page.
- Charged toner powder sticks only there.
- The charged paper pulls the toner off the drum.
- A fuser melts the toner so that it stays on the paper.
| Inkjet | Laser | |
|---|---|---|
| Best for | small numbers of documents and photographs | printing in high volumes, because it is fast |
3D printers
A 3D printer builds a solid object layer by layer, from the bottom up.
A 3D printer uses a digital design made with CAD software (computer-aided design). It builds the object from the bottom up. Each layer is fused to the one below. For example, it:
- heats plastic and pushes it through a nozzle; or
- hardens a liquid resin with an ultraviolet laser.
Thinner layers give a smoother object. But they mean more layers and a longer print.
Example:A cone 30 mm tall, printed at 0.2 mm a layer, takes 150 layers.
3D printers are used to make prototypes and models of a design.
Speakers and actuators
Speakers and actuators are output devices that turn an electrical signal into sound or movement.
A speaker turns an electrical signal back into sound.
- The electric current passes through a coil. This makes the coil an electromagnet.
- As the sound signal changes, the current changes direction. So a permanent magnet pushes and pulls the coil.
- The coil moves the speaker's cone (its diaphragm) back and forth.
- The cone makes the air vibrate, and we hear sound.
An actuator is an output device that turns an electrical signal into physical movement. For example, it drives a motor or works a switch.
Example:An actuator is how a computer acts on the world, for example by opening an automatic door.
Sensors
A sensor measures a physical quantity; the program, not the sensor, decides what to do.
A sensor is an input device. It measures a physical quantity and sends the reading to a computer or microprocessor. The reading is usually an analogue signal. An ADC (analogue-to-digital converter) turns it into binary.
The 14 sensors you need to know:
| Sensor | Measures | Used in |
|---|---|---|
| acoustic | sound level | burglar alarms |
| accelerometer | acceleration and tilt | crashes, VR headsets |
| flow | liquid or gas flowing | pipes |
| gas | amount of a gas | river pollution |
| humidity | water vapour in the air | greenhouses |
| infra-red | body heat, broken beams | security, auto doors |
| level | how high a liquid is | washing machines |
| light | light intensity | street lights |
| magnetic field | magnetic field change | cars at traffic lights |
| moisture | water in the soil | plant watering |
| pH | acidity or alkalinity | soil, rivers |
| pressure | force pressing on it | traffic lights |
| proximity | how close an object is | robots and obstacles |
| temperature | temperature | central heating |
Watch out:There is no motion sensor on the list. To choose a sensor, ask which physical quantity the situation really depends on.
Sort each device by what it does for the computer.
PICK ONE, THEN PICK ITS GROUP
- empty
- empty
- empty
KEY TERMS
CHECK YOURSELF
1.A greenhouse system must monitor the growing conditions. Which sensors fit best?
2.Which printer suits a busy office printing thousands of pages?
3.Why does a capacitive touch screen not work through thick gloves?
4.A ticket machine's touch screen shows the choices and lets you press one. What kind of device is it?
5.A burglar alarm must notice a person moving in a dark room. Which sensor should it use?
6.A greenhouse temperature sensor reads 35 °C and a window opens. What decided to open the window?