Revision Notes - Hardware
Revision Notes - Hardware
4 External
hardware
devices
Notes
External Hardware Devices A LEVEL COMPUTER SCIENCE
Barcode reader
1. A light source / laser is shone at bar code so that it is illuminated. A moving mirror/prism
moves light beam across bar code.
2. The light is reflected back but the black and white bands reflect different amounts of light.
5. The computer then calculates the Check Digit by passing the data through a function
Digital camera
1. Light enters through and is focussed by the lens onto an array of sensors on the sensor
chip called a Charge-Couple Device (CCD) or a CMOS image sensor.
4. A Colour filter is applied to generate separate data values for red, green and blue colour
components
Laser printer
This is a good video showing how a HP 2600 works: https://youtu.be/WB0HnXcW8qQ
4. This is done by the laser beam hitting the drum, erasing the existing charge in spots and
creating the opposite charge in those same spots where toner will eventually cling.
Areas on the drum meant to remain white on the paper keep their initial charge. The
laser is modulated (turned on & off) during this process.
5. The toner (powdered ink) is given (positive) charge and then an ink roller that is in
contact with the drum, coats the drum with toner. The toner holds a charge that is
opposite to the charge of the image on the drum; therefore, the toner clings to the areas
on the drum altered by the laser beam. This results in a toner image created on the
drum.
6. For colour lasers this is done for each colour (cyan etc).
7. When a sheet of paper passes near the drum, the charge on the paper attracts the toner
particles clinging to the drum. (Again, opposite charges attract.) The image is
transferred from the drum to the paper, but the toner merely clings or ‘rests’ on the page
at this point.
8. Lastly, the page passes through a fuser unit, a pair of very hot rollers. Heat and pressure
from these rollers fuse the toner image permanently onto the page.
RFID
RFID stands for Radio Frequency IDentification and it’s a non-contact technology that’s broadly
used in many industries for tasks such as personnel tracking, access control, supply chain
management, books tracking in libraries, tollgate systems and so on.
https://howtomechatronics.com/wp-content/uploads/2017/05/RFID-applications-and-uses.jpg
The RFID reader consist of a radio frequency module, a control unit and an antenna coil which
generates high frequency electromagnetic field. On the other hand, the tag is usually a passive
component, which consist of just an antenna and an electronic microchip, so when it gets near
the electromagnetic field of the transceiver, due to induction, a voltage is generated in its
antenna coil and this voltage serves as power for the microchip.
Now as the tag is powered it can extract the transmitted message from the reader, and for
sending message back to the reader, it uses a technique called load manipulation. Switching on
and off a load at the antenna of the tag will affect the power consumption of the reader’s
antenna which can be measured as voltage drop. This changes in the voltage will be captured
as ones and zeros and that’s the way the data is transferred from the tag to the reader.
Three input devices that could be used at each checkpoint to capture data automatically as
competitors pass by are:
• barcode reader
• digital camera
• RFID reader.
The race organisers decide to use RFID readers. Evaluate the suitability of all three devices and
explain why RFID is the most appropriate choice.
There is no tag/barcode that can be lost or There may be difficulties with taking a clear
damaged picture caused by blocked line of sight due to
other competitors
Barcodes are often smaller and lighter than It is difficult to scan a code that is being
an RFID tag so they are less of a burden to moved around and is not on a flat surface
competitors
RFID can be read faster than the other potential for RFID dead spots
devices and competitors may be going past
the checkpoint quickly
no line-of-sight issues
Hard disk
A hard drive has only a few basic
parts. There are one or more shiny
silver platters where information is
stored magnetically, there's an arm
mechanism that moves a tiny
magnet called a read-write head
back and forth over the platters to
record or store information, and
there's an electronic circuit to control
everything and act as a link between
the hard drive and the rest of your
computer.
Optical disk
Compact discs (CDs) have been around for more than 30 years, and they are still one of the
most popular ways of storing music and computer data. In the mid-1990s, CDs evolved into
digital video/versatile discs (DVDs), which look and work in a similar way but can store about
seven times more. And now we have Blu-ray™, which can store six times more than a DVD—or
about 40 times more a than CD!
This is a video that describes how the media is organised (it’s a little cray but it make the right
points!) https://youtu.be/SJWFoTp0H9k
Reading mechanism
1. The disc spins at constant linear velocity and a
low power laser beam is shone and is focussed
onto a spot on the track.
Since a SSD has no moving parts, it handles shock and vibration much better that a rotating
disk drive. Without the spindle motor needed to rotate platters and an actuator to move the
heads to the correct location, a SSD generally uses much less power than its mechanical HDD
counterpart.
A Solid State Drive emulates a hard disk drive in a host computer or embedded system. It does
this with a specially designed controller which has the same electrical interface as a rotating
hard disk drive. In many cases it has the exact same connector and physical form factor as the
hard drive as well.
Other circuitry of the controller manages the NAND flash memory which stores the data of the
SSD. While the controller function appears relatively straight forward, there are many behind the
scenes issues with NAND flash management and it requires a great deal of planning to create a
reliable SSD controller.
This is because while SSDs read data at the page level (meaning from individual rows within
the NAND memory grid) and can write at the page level, assuming surrounding cells are empty,
they can only erase data at the block level. This is because the act of erasing NAND flash
requires a high amount of voltage. While you can theoretically erase NAND at the page level,
the amount of voltage required stresses the individual cells around the cells that are being re-
written. Erasing data at the block level helps mitigate this problem.
The only way for an SSD to update an existing page is to copy the contents of the entire block
into memory, erase the block, and then write the contents of the old block + the updated page. If
the drive is full and there are no empty pages available, the SSD must first scan for blocks that
are marked for deletion but that haven’t been deleted yet, erase them, and then write the data to
the now-erased page. This is why SSDs can become slower as they age — a mostly-empty
drive is full of blocks that can be written immediately, a mostly-full drive is more likely to be
forced through the entire program/erase sequence.
Garbage collection is a background process that allows a drive to mitigate the performance
impact of the program/erase cycle by performing certain tasks in the background. The following
image steps through the garbage collection process.
Note in this example, the drive has taken advantage of the fact that it can write very quickly to
empty pages by writing new values for the first four blocks (A’-D’). It’s also written two new
blocks, E and H. Blocks A-D are now marked as stale, meaning they contain information the
drive has marked as out-of-date. During an idle period, the SSD will move the fresh pages over
to a new block, erase the old block, and mark it as free space. This means the next time the
SSD needs to perform a write, it can write directly to the now-empty Block X, rather than
performing the program/erase cycle.
Comparisons
Flash Drives and CDs
Flash Drive CD/DVD
Faster booting of OS
Noiseless operation
uses magnetic induction (to read data), uses a laser (and sensor);
Hard disk drive and disk are integrated requires an optical drive