Hardware - Input and Output Devices...
Hardware - Input and Output Devices...
Input devices
Barcode scanners (readers)
A barcode is a series of dark and light parallel lines of varying thickness. The
numbers 0 to 9 are each represented by a unique series of lines. Various barcode
methods for representing these digits exist. The example we shall use adopts
different codes for digits appearing on the left and for digits appearing on the
right of the barcode:
Each digit is made up of 2 dark lines and two light lines. The width representing each
digit is the same. The digits on the left have an odd number of dark elements and
always begin with a light bar; the digits on the right have an even number of dark
elements and always begin with a dark bar. This arrangement allows a barcode to be
scanned in any direction.
So what happens when a barcode is scanned?
❖ The barcode is first of all read by a red laser or red LED (light emitting diode).
❖ light is reflected back off the barcode; the dark areas reflect little or no light,
which allows the bars to be read.
❖ the reflected light is read by sensors (photoelectric cells)
❖ As the laser or LED light is scanned across the barcode, a pattern is generated,
which is converted into digital data – this allows the computer to understand the
barcode.
❖ for example: the digit ‘3’ on the left generates the pattern:
LDDDDLD
(where L = light and D = dark), this has the binary equivalent of:
0111101
Barcodes are most commonly found at the checkout in supermarkets. There are several
other input and output devices at the checkout:
Card reader/chip and PIN to read the customer’s credit/debit card (either
using PIN or contactless)
The barcode system is used in many other areas. For example, barcodes can be
utilized in libraries where they are used in books and on the borrower’s library card.
Every time a book is taken out, the borrower is linked to the book automatically. This
allows automatic checking of when the book is due to be returned.
figure .4 scan me
QR codes can hold considerably more information than the more conventional barcodes
described earlier.
Description of QR codes
❖ A QR code consists of a block of small squares (light and dark) known as
pixels.It can presently hold up to 4296 characters (or up to 7089 digits) and also
allows internet addresses to be encoded within the QR code. This compares to
the 30 digits that is the maximum for a barcode. However, as more and more
data is added, the structure of the QR code becomes more complex.
❖ The three large squares at the corners of the code function as a form of
alignment; the remaining small corner square is used to ensure the correct size
and correct angle of the camera shot when the QR code is read.
Because of modern smartphones and tablets, which allow internet access on the move,
QR codes can be scanned anywhere. This gives rise to a number of uses:
❖ advertising products (for example, the QR code in Figure 4)
❖ giving automatic access to a website or contact telephone number
❖ storing boarding passes electronically at airports and train stations
New developments
Newer QR codes (called frame QR codes) are now being used because of the
increased ability to add advertising logos (see Figure 5). Frame QR codes come with a
‘canvas area’ where it is possible to include graphics or images inside the code itself.
Unlike normal QR codes, software to do this isn’t usually free.
Figure. 5
Output device
The ink droplets are produced currently using two different technologies:
Thermal bubble – tiny resistors create localized heat which makes the ink vaporize.
This causes the ink to form a tiny bubble; as the bubble expands, some of the ink is
ejected from the print head onto the paper. When the bubble collapses, a small vacuum
is created which allows fresh ink to be drawn into the print head. This continues until the
printing cycle is completed.
Piezoelectric – a crystal is located at the back of the ink reservoir for each nozzle. The
crystal is given a tiny electric charge which makes it vibrate. This vibration forces ink to
be ejected onto the paper; at the same time more ink is drawn in for further printing.
When a user wishes to print a document using an inkjet printer, the following sequence
of events takes place. Whatever technology is used, the basic steps in the printing
process are the same.
2 the printer driver ensures that the data is in a format that the chosen printer
can understand
3 a check is made by the printer driver to ensure that the chosen printer is
available to print (e.g. is it busy, is it offline, is it out of ink, and so on)
4 the data is then sent to the printer and it is stored in a temporary memory
known as a printer buffer
5 a sheet of paper is then fed into the main body of the printer; a sensor detects
whether paper is available in the paper feed tray – if it is out of paper (or the
paper is jammed) then an error message is sent back to the computer
6 as the sheet of paper is fed through the printer, the print head moves from side
to side across the paper printing the text or image; the four ink colours are
sprayed in their exact amounts to produce the desired final colour
7 at the end of each full pass of the print head, the paper is advanced very
slightly to allow the next line to be printed; this continues until the whole page
has been printed
8 if there is more data in the printer buffer, then the whole process from stage 5
is repeated until the buffer is finally empty
9 once the printer buffer is empty, the printer sends an interrupt to the CPU in
the computer; this is a request for more data to be sent to the printer; the
whole process continues until the whole of the document has been printed
Laser printers
Laser printers use dry powder ink rather than liquid ink and make use of the properties
of static electricity to produce the text and images. Unlike inkjet printers, laser printers
print the whole page in one go. Colour laser printers use 4 toner cartridges – blue, cyan,
magenta and black. Although the actual technology is different to monochrome printers,
the printing method is similar but coloured dots are used to build up the text and
images.
The following table describes briefly the stages that occur when a document is printed
using a laser printer:
2 the printer driver ensures that the data is in a format that the chosen
printer can understand
3 a check is made by the printer driver to ensure that the chosen printer is
available to print (e.g. is it busy, is it off-line, is it out of ink, and so on)
5 the start of the printing process involves a printing drum being given a
positive charge; as this drum rotates, a laser beam is scanned across it
removing the positive charge in certain areas; this leaves negatively
charged areas that exactly match the text/images of the page to be
printed
6 the drum is then coated with positively charged toner (powdered ink);
since the toner is positively charged, it only sticks to the negatively
charged parts of the drum
8 the toner on the drum now sticks to the paper to produce an exact copy
of the page sent to the printer
9 to prevent the paper sticking to the drum, the electric charge on the
paper is removed after one rotation of the drum
10 the paper finally goes through a fuser which is a set of heated rollers;
the heat melts the ink so that it fixes permanently to the paper
11 at the very end, a discharge lamp removes all the electric charge from
the drum making it ready to print the next page
Laser printer – these devices produce high quality printouts and are very fast when
making multiple copies of a document; any application that needs high volume printing
(in colour or monochrome) would choose the laser printer (for example, producing a
large number of high-quality flyers or posters for advertising). Laser printers have two
advantages: they have large toner cartridges and large paper trays (often holding more
than a ream of paper).
GLHF