Year 12

AQA A level Computer Science [P1] Hardware Notes

Hardware

— Computer Science · AS & A Level (9618) · Paper 1 —
★ Exam Tip: This chapter is pure memorisation — the same questions repeat every year and the mark scheme is almost identical each time. Expect: basic internal operation of a 3D printer, laser printer, microphone, speaker (5–6 marks), hard disk (~5 marks) and SSD · differences (RAM/ROM, DRAM/SRAM, PROM/EPROM/EEPROM, DVD-RW/DVD-RAM) · RAM & ROM scenario questions · embedded system definition + scenario. Sir's advice: relate each point to something you know, translate it into your own language, write it again & again, and watch a YouTube video of every device (they help where diagrams can't).
Note (syllabus): Devices covered here: 3D printer, laser printer, microphone, speaker, resistive touch screen, capacitive touch screen, VR headset. Keyboard, mouse and tracker-ball were removed from the syllabus; VR headset is newly added (9618) so write as much as you can. Diagrams are only to help you relate — labelling a diagram is not asked (laser printer especially: only the basic internal operation).

1. Input & Output Devices

① 3D Printer — basic internal operation

Idea: builds a solid 3D object layer by layer from melted plastic. A very time-consuming process (one layer at a time).

solid plastic (filament) melted → nozzle nozzle stepper motors move nozzle (x, y, z) fan cools layer layers stacked on the bed (layer 1 at the bottom)
molten plastic is squirted out in the shape of each slice, layer after layer
  1. The object is designed using computer-aided design (CAD) software. Any CAD package; Windows even has a 3D-printer/3D app. You draw the 3D shape here.
  2. The software splits the object into slices. = thin horizontal layers (layer 1, 2, 3 …) — e.g. a human face is cut into many thin layers. This is the software's job. (Not "symmetry lines" — just ordinary layers.)
  3. The data about the slices is sent to the printer. The coordinates of every slice go to the 3D printer.
  4. The solid plastic is melted and transferred to the nozzle.
  5. A stepper motor moves the nozzle into position. Stepper motors on the x- and y-axes (and z for height); the nozzle is joined to them. Basic maths/coordinate algorithms decide where to move.
  6. The nozzle extrudes the molten plastic. The plastic loaded in step 4 now comes out at that position.
  7. The previous steps are repeated until the layer is complete.
  8. A fan cools the layer.
  9. Each layer is printed by following the same steps. Repeat for every slice ⇒ finished 3D shape.
① CAD design ② slice → layers ③ send to printer ④ melt → nozzle ⑤ stepper moves ⑥ extrude plastic ⑦ repeat → layer ⑧ fan cools ⑨ next layer: repeat the same steps ⇒ whole object
whole story in one line — learn it as a story, not as nine separate points

② Laser Printer — basic internal operation

Basic idea: unlike charges attract, like charges repel — the whole printer uses this physics!

Parts to know: drum, laser, moving mirror, toner, paper tray, fuser. Paper travels: tray → drum → fuser → exit.

drum laser moving mirror toner fuser paper tray paper out + + + +
laser scans the charged drum · toner sticks only where charged · paper picks it up · fuser seals it
  1. The revolving drum is initially given an electrical charge. + or − (either).
  2. A laser beam bounces off a moving mirror and scans back and forth across the drum. Mirrors move ⇒ laser sweeps the drum.
  3. Discharging certain points (the letters / images to be printed) as electrical charges. e.g. to print "A" the laser discharges exactly the shape of A on the drum.
  4. The drum is coated with oppositely charged toner, which only sticks to charged areas. Toner = the ink. e.g. drum +, toner − ⇒ sticks only to the charged pattern.
  5. The pattern on the drum is transferred to the paper. Paper comes from the paper tray, passes the drum.
  6. The paper is passed through the fuser to seal the image.
  7. The electrical charge is removed from the drum and excess toner is collected. Drum is cleaned, ready for the next page.
Note: Sir said the fuser "seals the image" by removing the charge on the paper. In real printers the fuser uses heat + pressure to melt the toner onto the paper permanently. For the exam, write the board wording: "paper is passed through the fuser to seal the image".

③ Microphone — basic internal operation

Link: needs a little physics (electromagnets). A microphone is a speaker in reverse!
sound wave diaphragm coil NS magnet electric signal
sound → diaphragm vibrates → coil moves past magnet → electric signal
  • The microphone has a diaphragm.
  • The incoming sound wave causes (it to) vibrate — diaphragm moves back, forward, back, forward following the wave.
  • causing a coil to move past a magnet. Diaphragm is attached to the coil ⇒ coil moves ⇒ current is induced (it behaves as an electromagnet near the permanent magnet, attracted/repelled).
  • An electric signal is produced. …and this electrical signal is then stored / sent on.
Trick: want the reverse (electric signal → sound)? Run the same process backwards ⇒ you have a speaker.

④ Speaker — basic internal operation

★ Exam: a basic 5–6 mark question that comes every year. Same question, same answer — write it out!

Parts: cone (= diaphragm), coil of wire (voice coil), permanent magnet, dust cap (dust cap keeps dust out).

cone dust cap coil NS permanent magnet electrical signal in sound wave vibrates
current in coil = electromagnet ⇒ pushed/pulled by permanent magnet ⇒ coil + cone vibrate ⇒ air vibrates ⇒ sound
  1. Takes an electrical signal and translates it into physical vibrations to create sound waves.
  2. An electric current in the coil creates an electromagnetic field.
  3. Changes in the audio signal cause the direction of the electric current to change.
  4. The direction of the current determines the polarity of the electromagnet. polarity = N or S pole (north on top then south, flips every time the current flips).
  5. The electromagnet is repelled by or attracted to the permanent magnet.
  6. Causing the coil to vibrate.
  7. The movement of the coil causes the cone to vibrate (coil is attached to the cone).
  8. The vibration is transmitted to the air in front of the cone. Cone pushes & pulls the air ⇒ sound wave. (Put small balls on a speaker and they jump — that is the cone vibrating.)
  9. The amount of movement will determine the frequency and amplitude of the sound wave produced.
Qshort answer

What are the components of the speaker?

Cone · coil of wire · permanent magnet · dust cap


⑤ Resistive Touch Screen

Tip: relate it! Don't just cram. Which screen a phone uses depends on the phone, so the exam can't ask "where is it used".
finger presses top plate / film (charged) air gap bottom plate (charged) display contact!
pressure pushes the top plate onto the bottom one ⇒ circuit completes at that point
  • Consists of two charged plates.
  • Pressure causes the plates to touch, completing the circuit.
  • Point of contact is registered.
  • Coordinates are used to calculate the position.

⑥ Capacitive Touch Screen

Still a touch screen, just a different name/technology.

sensorsensor sensorsensor finger charge flows to the finger
sensors in the corners detect the change in charge ⇒ position
  • Made from materials that store electric charge. (a surface material that holds a charge)
  • When touched, charge is transferred to the finger.
  • Sensors at the screen corners detect the change.
  • Point of contact is registered.
  • Coordinates are used to calculate the position.
ResistiveCapacitive
Triggerpressure pushes 2 plates togetherfinger takes away charge
Circuitplates touch ⇒ circuit completedsensors at corners detect change
Same last stepspoint of contact registered → coordinates calculate the position

⑦ Virtual Reality (VR) Headset

Newly added: some content may still be missing from the syllabus notes — so write everything you can in the exam. It was the last device of the input/output part.
computer LCD / feed 1 LCD / feed 2 lens eyes gyroscope /accelerometer cable head moves ⇒ video moves with it
two feeds → LCD(s) → lenses → eyes · sensors track head movement · binaural sound in the headphones
  • Video is sent from a computer to the headset using a cable. (computer, or even a mobile)
  • Two feeds are sent to an LCD. Sometimes two screens are used (one per eye); sometimes one LCD with two different feeds.
  • Lenses are used for focusing and reshaping the image. The two lenses in front of the eyes.
  • Most headsets use a 60 to 120 frame rate and 110° field of view to make it realistic. frame rate = number of images shown per second (60–120 Hz/fps).
  • Gyroscopes or accelerometers are used to detect head movement. Two kinds of sensors measure where your head moves so the video can move with it.
  • Headsets use binaural sound. Different sound to each ear: sound from the right ⇒ the character is on your right (e.g. footsteps in a game, 3D-sound videos on headphones).

2. Primary Memory — RAM & ROM

Computer memory is of two types: primary memory and secondary memory. (Primary vs secondary was O-Level; the new A-Level bit is the types of RAM and ROM.) Today: primary memory first.

Memory Primary Memory Secondary Memory RAM ROM SRAMDRAM PROMEPROMEEPROM magnetic · optical · solid state (section 5)
focus now: primary memory = RAM (SRAM, DRAM) and ROM (PROM, EPROM, EEPROM)

RAM = Random Access Memory · ROM = Read Only Memory

Difference between RAM and ROM

RAMROM
① volatile?Volatile = temporary memoryNon-volatile = permanent memory
② dataData can be altered in RAMData cannot be changed
③ storesStores data in useStores boot-up instructions (BIOS)
④ accessRead / writeRead only
Memory trick: RAM ⇒ Volatile (R-A-V…). Sir used a character "Ravan" to remember it — make your own! Everyone remembers "temporary" but forgets the word volatile.

e.g. 3 Chrome tabs + a Word doc open ⇒ switch the PC off ⇒ all lost, because it all sat in RAM. ROM keeps its content with power off — e.g. the BIOS (Basic Input Output System) = the boot-up instructions needed to start Windows. ROM chips come empty from the maker; the manufacturer puts the data in once (can't remove it in plain ROM).

Secondary(hard drive) PrimaryRAM CPU load cache main dish (secondary) → your plate (RAM) → you eat (CPU)
data is lifted from the hard drive into RAM, then the CPU processes it (cache helps the transfer)

Sir's analogy: secondary memory = the big serving dish (all the food/data stored); primary memory = your plate. To use food you must first move it from the dish onto the plate — likewise data must be brought from the hard drive into RAM (not ROM) before the CPU can work on it.

Uses of RAM and ROM — scenario questions

★ Exam Tip: The examiner changes the device (3D printer, laser printer, remote-control toy car — one came in 2022!). The scenario may differ, so change the wording to fit the device. For RAM focus on the currently running part / current instructions; for ROM it is almost always operating system / setup instructions / boot-up instructions.
3D Printer
RAMstores the current running parts of the 3D printer software · stores the content of the buffer · stores the current progress of the printer · stores data about the layers being printed · stores data about the printer, e.g. nozzle position
ROMstores the operating system for the 3D printer · stores the setup instructions for the 3D printer
Laser Printer
RAMstores the currently running part of the laser printer software · stores the data being printed / in buffer · stores the current progress of printing · stores information of the printer, e.g. toner level
ROMstores the operating software of the printer · stores the boot-up instructions of the printer
Buffer: a temporary storage area in the RAM that stores data transferring between two or more devices. e.g. the grey/white "buffering" bar on a YouTube video — bits arrive from the server and wait in RAM before moving to your PC.

3. Types of RAM — DRAM vs SRAM

DRAM = Dynamic Random Access Memory (main memory) · SRAM = Static Random Access Memory (cache). Diagrams only help you relate — they have never been asked.

1 transistor capacitor charge leaks refresh = recharge
DRAM cell: 1 transistor + 1 capacitor
flip-flop (latch) more than 1 transistor 0 / 1
SRAM cell: transistors arranged as a flip-flop

Flip-flop = a logic circuit that traps (latches) one bit, either 0 or 1. (all types — SR, JK … with truth tables — are studied in A2; here just know the idea). Logic-gate symbols are only drawn to understand the concept: really it's transistors, capacitors and wires on a board that behave like AND / OR / XOR.

QExplain the difference between DRAM and SRAM

Always talk about both in a "difference" question. (board: red = DRAM, green = SRAM)

DRAMSRAM
refreshhas to be refreshedno refresh required
componentsuses a single transistor and capacitoruses more than one transistor
each bitstored as a chargestored using a flip-flop
powerhigher power consumptionless power consumption
costless expensive (fewer transistors)more expensive (more transistors)
access timeslow (refresh needed)faster (no refresh)
storagemore storageless storage
used inmain memorycache memory
Note: SRAM uses transistors arranged as flip-flops and DRAM uses transistors and capacitors.
Don't just cram — link the points: charge leaks ⇒ must refresh ⇒ refreshing again & again ⇒ more power + slower access. SRAM never leaks ⇒ no refresh ⇒ less power, faster.

Why refresh? a DRAM bit is a charge/voltage and with time it leaks away; if it isn't recharged the data would be lost. Why cheaper? fewer transistors per bit (transistors cost money). Why more storage? a flip-flop holds only one bit and takes several transistors, so SRAM holds less in the same space.

Cache analogy:
a dish of biryani and a dish of vegetables; most people keep eating the biryani. So keep the most-used dish close to everyone = cache memory (SRAM), instead of going back to the far dish each time. Cache is part of RAM — it has nothing to do with ROM!

4. Types of ROM — Read Only Memory

PROM : Programmable Read Only Memory
EPROM : Erasable Programmable Read Only Memory
EEPROM : Electrically Erasable Programmable Read Only Memory

Careful: PROM here is not "PRAM". All types start initially empty.

PROM
  • Initially empty
  • User can write data on it only once
  • If there is an error in the written instructions the error cannot be removed
  • The chip becomes unusable
EPROM
  • Initially empty
  • Can be overwritten multiple times
  • An error can be removed
  • Erased using UV light
  • Needs to be removed from the device (e.g. taken off the motherboard)
  • Must be entirely erased before writing (can't keep instruction 1 and fix instruction 2)
EEPROMthe best / most used one
  • Initially empty · can be overwritten multiple times · an error can be removed
  • Erased using voltage (vary the voltage — no UV light)
  • Can be erased in its original position — "in situ" (no need to take it out of the board)
  • Does not have to be entirely erased before writing — you may erase just part of it (or all, your choice)
Mark-scheme word: the mark scheme says "in situ" = in its original position, i.e. without removing the device. Sir used the same word in his answers.
2022 paper3–4 marks · was also in 9608

Explain the difference between PROM, EPROM and EEPROM.

  • PROM can be set (programmed) once; EPROM and EEPROM can be overwritten multiple times.
  • EPROM can be erased using UV light; EEPROM can be erased using voltage.
  • EPROM needs to be removed from the device; EEPROM can be erased in situ.
  • EPROM must be entirely erased before writing, but EEPROM does not have to be entirely erased before writing.

5. Secondary Memory — Types of Storage Media

Primary memory is done. Secondary memory stores data in three ways: magnetic, optical or solid state media. If asked to describe types of storage media, write these points.

MediaHow it works (write this)Used by
Magneticsurface coated with magnetic material · its magnetic properties are altered to represent 1s and 0shard disks, magnetic tapes, floppy disks
Opticalsurface coated with light-sensitive material · read / written by lasers · CDs use one spiral trackDVD-RAM, CD-R, CD-ROM, CD-RW, Blu-ray disc
Solid stateuses millions of tiny transistors · movement of electrons is controlled within a microchip · no moving partsmemory sticks, MP3 players etc. (SSD = biggest example)
Moving parts? Magnetic ⇒ the platters spin · Optical ⇒ the disc spins and the laser moves · Solid state ⇒ nothing moves.

6. Basic Internal Operation of a Hard Disk

★ Exam: ~5 marks, the exact same question in topical past papers (10–15 of them!). Learn it word for word as one story.

Parts: platter, spindle, actuator arm (+ actuator axis), read/write head; also jumper block, IDE & power connectors on the board.

platterblockspindleactuator armR/W headtracksector
top view: concentric tracks cut into sectors; 1 track in 1 sector = 1 block (yellow)
platterscentral spindleactuator axisarm + R/W head
side view: platters on one spindle, an arm & head for each surface
  • HDD has one or more platters made of aluminium. The disks where the data is stored.
  • Each surface of the platter is ferrous-oxide, which is capable of being magnetised. Magnetic properties are altered to store data.
  • The platters are mounted on a central spindle (a rod; platters stacked on it).
  • The disks are rotated at high speed. That PC noise you hear = hard disk. This is why it is called a hard drive.
  • Each surface of the disk has a read/write head mounted on an arm, positioned just above the surface. Disk keeps revolving; when the data passes under the arm's head it is read.
  • The surface of the platter is divided into concentric tracks and sectors. Concentric = a circle within a circle (like running tracks).
  • One track in one sector is the basic unit of storage, called a block. (the yellow part in the figure)
  • The data is encoded as a magnetic pattern for each block.

7. Flash Memory & Basic Internal Operation of SSD

The SSD (solid state drive) uses flash memory, so learn flash first; then ~90 % of the SSD points are identical — you only add the controller.

What is flash memory? (has been asked in past papers)

control gatefloating gatee⁻ move heregrid of columns & rows2 transistors at each intersectioncell stores a voltage ⇒ 0 or 1e⁻ movement controlled to read / write
one memory cell = floating gate + control gate; cells sit in a grid
  • Most are NAND-based flash memory. Built from logic gates (NAND); flip-flops/latches trap each bit.
  • There are no moving parts. (compare HDD: disks rotate at high speed ⇒ moving parts)
  • Uses a grid of columns and rows that has two transistors at each intersection. very important point!
  • One transistor is called the floating gate and the second transistor is called the control gate.
  • Memory cells store voltages which can represent either a 0 or a 1.
  • Essentially, the movement of electrons is controlled to read / write.
  • No overwriting data — first erase, then add. You can't overwrite a cell; remove the old data first, then store the new data in that location.

SSD — basic internal operation

controllercacheNANDNANDNANDNANDto computercontroller manages all components
SSD = NAND flash memory chips + controller (+ cache); no moving parts
  • No moving parts. · Non-volatile.
  • Uses NAND gates, NOR gates (transistors) and integrated circuits. IC = the chip that combines transistors into logic gates.
  • SSD controller manages the components. the extra point for SSD — like a processor managing all the programs in a computer, the controller manages all the SSD's components.
  • Uses a grid of columns and rows that has two transistors at each intersection.
  • One transistor is called the floating gate; the second is called the control gate.
  • Memory cells store voltages which can represent either a 0 or a 1.
  • Essentially, the movement of electrons is controlled to read / write.
  • No overwriting data — first erase, then add.
★ Trick: SSD answer = flash-memory answer + the SSD controller point. Learn flash well once and you have both.

8. Optical Discs — CD, DVD-RW, DVD-RAM

Note: optical discs are almost obsolete (like floppy disks) but you must still study them — old exam questions repeat, and the ideas (laser, pits & land) are good to understand.

Optical disc — operation

tracking mechanismlaserlensdiscdrive motorspins the disc
motor spins disc · tracking moves laser · lens focuses beam
landpitstrongreflectionweaklaser beamssensor measures intensity ⇒ 0 / 1
pits & land reflect different amounts of light = the 0s and 1s
  • Drive motor is used to spin the disc.
  • Tracking mechanism moves the laser assembly. The laser is used for both reading and writing.
  • A lens focuses the laser onto the disc.
  • Laser beam is shone onto the disc to read / write. The disc has a coating; the laser burns a pattern of pits and land (areas that reflect less or more light) = 0s and 1s. To read, shine the laser again: sensors measure the intensity of the reflected light ⇒ 0s and 1s.

Disc quality degrades with time — scratches and temperature affect it; performance (access time, speed, space) slowly drops.

Spiral track vs concentric tracks

spiral track — DVD-RW (one continuous track)
concentric tracks (+ sectors) — DVD-RAM
Remember: concentric = circle within a circle within a circle (running tracks) · spiral = a swirl, one continuous track, like a croissant / paratha.
DVD-RWspiral · separate · software
  • Uses a single spiral track
  • Only allows write or read operations to occur as separate operations (not both at the same time)
  • Requires special packet reading / writing software
  • To write new data the existing data must be completely erased
  • By time the performance of DVD-RW degrades
  • Single sided, 4.7 GB capacity
  • Rotates at different speeds (not constant)
DVD-RAMconcentric · simultaneous · no software
  • Uses several concentric tracks
  • Allows simultaneous read / write operations
  • No special read/write software required
  • Makes use of sectors to store data
  • Single or double sided; 4.7 GB per side
  • Disc rotates at constant speed
Trick: learn them as opposites: RW = spiral ↔ RAM = concentric · RW = separate read/write ↔ RAM = simultaneous · RW needs special software ↔ RAM doesn't · RW different speed ↔ RAM constant speed. Forget one and the opposite jogs your memory. Often the exam just gives a tick-box: which info belongs to DVD-RW and which to DVD-RAM.

9. Embedded Systems

★ Exam Tip: This topic is new in the 9618 syllabus — so go in depth: the examiner may twist the question and you have no past papers to predict it. First understand the two kinds of computer.
General purpose computer

Performs more than one task.

e.g. laptop, tablet / iPad, mobile phone — communicate, watch videos, record, play music, use a calculator … many tasks.

Special purpose computer

Performs one specific task.

e.g. calculator (only calculates), washing machine (you can't watch a movie on it), landline telephone (only communication), thermometer (only measures temperature).

Special-purpose computers are still computers because they contain a microprocessor — it holds programs/instructions, decides what to do and controls the components, just like a normal computer, but it is built to do only one job. Special purpose computers = embedded systems.

What is meant by an embedded system?A microprocessor within a larger system that performs one specific task.

Write it exactly as it is — key words: microprocessor, larger system (built into the device), one specific task.


Past paper2 marks · explain

A car has several features. One feature is a lane detection system: it monitors the lines on either side of the lane; if the car gets too close to one line, it automatically moves the car away from the line.

(a) Explain why the lane detection system is an example of an embedded system. [2]

lane linesteers awaycarsensormicro-processorsteeringONE task, built into the car
embedded system: sensor → microprocessor → output, inside a larger system (the car)
  • ① The lane detection system is built into the car (integrated into the car)
  • ② The lane detection system only performs one task (only detects + corrects position — no movies, no calls)
  • ③ The lane detection system is not easily updated by the car owner

Why ③? Like a calculator or thermometer: you can't easily change its working or load a new program (e.g. a washing machine can't be taught to call you when the laundry is done). Possible only for a genius — "not easily". Question is only worth 2 marks, so any two points will do; always look at the scenario and ask "is it doing one task?"

10. Quick Recap — Full Chapter Cheat-Sheet

✓ Devices — internal operation (learn word for word)
  • 3D printer: CAD design → software slices → data to printer → plastic melted → nozzle → stepper motor positions → extrude → repeat until layer done → fan cools → every layer same steps
  • Laser printer: drum charged → laser + moving mirror scans → discharge letters/images → oppositely charged toner sticks only to charged areas → pattern to paper → fuser seals → drum cleaned, excess toner collected
  • Microphone: diaphragm → sound wave vibrates it → coil moves past magnet → electric signal
  • Speaker: signal → current in coil → electromagnet → direction/polarity changes → repel/attract permanent magnet → coil vibrates → cone vibrates → air → frequency & amplitude. Parts: cone, coil, magnet, dust cap
  • Resistive touch: two charged plates → pressure → touch → circuit completed → point registered → coordinates
  • Capacitive touch: charge-storing material → touch → charge to finger → corner sensors detect → point registered → coordinates
  • VR headset: video by cable → two feeds to LCD (sometimes 2 screens) → lenses focus/reshape → 60–120 frame rate, 110° view → gyroscope/accelerometer detect head → binaural sound
Memory — differences to learn
RAMROM
volatile / temporary1non-volatile / permanent
data can be altered2data cannot be changed
stores data in use3stores boot-up instructions
read / write4read only
DRAMSRAM
refreshneedednot needed
made of1 transistor + capacitor>1 transistor (flip-flop)
bit stored aschargeflip-flop
power / cost / speed / storagehigher / cheaper / slower / morelower / dearer / faster / less
used inmain memorycache memory
PROMEPROMEEPROM
rewriteonce onlymany timesmany times
erase bycan't (error ⇒ chip useless)UV lightvoltage
removed from device?—yesno — in situ
erase entirely first?—yes, mustno, not necessary
HDD (magnetic)SSD / flash (solid state)DVD-RWDVD-RAM
moving partsplatters spinnonedisc + laserdisc + laser
stores data asmagnetic pattern per blockvoltages in cells (floating + control gate)pits & land, 1 spiral trackpits & land, concentric tracks
key pointsaluminium platters, ferrous oxide, spindle, R/W head on arm, tracks/sectors/blockNAND, no overwrite (erase first), SSD adds controllerseparate R/W, special software, different speed, 4.7 GB, degradessimultaneous R/W, no software, constant speed, 4.7 GB per side
✓ Last things to remember
  • Embedded system = microprocessor within a larger system that performs one specific task (special purpose computer); general purpose = more than one task
  • Buffer = temporary storage area in the RAM that stores data transferring between two or more devices
  • Cache is in RAM (SRAM), not ROM · RAM is volatile (R-A-V) · BIOS lives in ROM
  • Difference questions: always say something about both sides
  • Write, rewrite, relate to something you know, watch a video of each device