3.2 Comp Sci Notes
3.2 Comp Sci Notes
2 INPUT-OUTPUT DEVICES
Barcodes can be used 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.
● A QR code consists of a block of small squares (light and dark) known as pixels.
● 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 angle of
the camera shot when the QR code is read.
● Modern smartphones and tablets allow internet access on the move; QR codes can
be scanned anywhere.
New developments known as frame QR codes are now used because of the increased
ability to add advertising logos. This isn't free, as you can add graphics and images.
Digital cameras
Digital cameras have replaced traditional cameras that use film to capture images. This
made these cameras expensive since deleting unwanted photographs was impossible.
Modern digital cameras connect a computer system via a USB port or Bluetooth.
These cameras are controlled by an embedded system which can automatically carry out
the following tasks:
» focus the image automatically
» operate the flash gun automatically
» adjust the size of the image
● The image is captured when light passes through the lens onto a light-sensitive
cell
● Each sensor is often called a pixel since tiny components comprise the image.
● The image is converted into tiny electric charges, passing through an ADC to form a
digital image array.
● ADC converts the electric charges from each pixel into levels of brightness.
● Besides brightness, the sensors also measure color, producing another binary
pattern.
Mobile phones have very sophisticated optics and photography software and have caught up
with digital cameras regarding the number of pixels. However, the drawbacks are often
inferior lens quality and limited photo storage memory.
● You need to be computer literate to use the cameras properly; transferring, storing,
and manipulating images via a laptop requires understanding how computers work.
● Some artistry is lost because clever software now corrects errors in photographs.
● Images often need to be compressed to reduce the amount of memory used.
Keyboards
The keyboard is connected to the computer by USB or wireless connection, tablets and
mobile phones virtual or touchscreen technology.
Advantages:
Disadvantages
● They are a relatively slow method of data entry and are also prone to error.
● Frequent use of these devices can lead to injuries, such as repetitive strain injury
(RSI) in the hands and wrists. Ergonomic keyboards have differently arranged keys
to give more support to the wrists and hands when typing a lot.
Microphones are either built into the computer or are external devices connected
through the USB port or using Bluetooth connectivity.
» When a diaphragm in the microphone picks up the air vibrations, the diaphragm also
begins to vibrate.
» As the diaphragm vibrates, the cone moves in and out, causing the copper coil wrapped
around the cone to move backward and forward.
» This forward and backward motion causes the coil to cut through the magnetic field around
the permanent magnet, inducing an electric current.
» The electric current is amplified or sent to a recording device. The electric current is
analog.
» The electric current output from the microphone can also be sent to a computer where a
sound card converts the current into a digital signal which can then be stored in the
computer.
» This is then converted using an ADC into digital values, which can then be stored in a
computer or manipulated as required using appropriate software.
Used in voice recognition to allow computers to recognize spoken words and use them as
input
Optical mouse
A red LED is used at the base of the mouse, and the red light bounces off the surface. The
reflection is picked up by CMOS, which generates electric pulses to represent the reflected
red light and sends them to a digital signal processor (DSP).
The processor can now work out the mouse's coordinates based on the changing image
patterns as it moves about on the surface. The computer can then move the on-screen
cursor to the coordinates sent by the mouse.
Uses of a mouse
» opening, closing, and minimizing software
» grouping, moving and deleting files
» controlling the size and position of a drawing pasted into a document
» controlling the position of a pointer on the screen to allow selection from a menu
2D scanners
Applications of 2D scanners
At airports, 2D scanners read passports. They use OCR technology to produce digital
images representing the passport pages. At many airports, the 2d photograph in the
passport is scanned and stored as a JPEG image.
When the image from the passport and the image taken by the camera are compared, these
critical positions on the face determine whether or not the two images represent the same
face.
3D scanners
The scanned images can be used in computer-aided design (CAD) or, more recently, sent to
a 3D printer to produce a working model of the scanned image.
Applications of 3D scanners
Use tomography technology in XRAYS (Computerised technology), radio frequencies
(Magnetic resonance images), gamma rays (SPECT)
Touch screens
1) Capacitive
● Capacitive touch screens comprise a layer of glass, a transparent electrode
layer, and a glass substrate.
● Since human skin is a conductor of electricity, the electrostatic field of the
conductive layer is changed.
● The installed microcontroller can calculate where this change took place and,
hence, determine the point of contact coordinates.
Actuator
Light projectors
Projectors are used to project computer output onto larger screens or even onto interactive
whiteboards. They are often used in presentations and in multimedia applications.
Uses of projectors:
● Advertising presentations
● Home movie systems
● Training presentations
Disadvantages:
● Setup complexity
● High cost
● Low image quality
Inkjet printers
They are used for printing one-off photos or where only a few pages of good quality, colour
printing is needed
● A print head, which consists of nozzles that spray droplets of ink from ink cartridges
onto the paper to form characters
● A stepper motor and belt, which moves the print head assembly across the page
from side to side
● A paper feed, which automatically feeds the printer with pages as they are required.
● The ink droplets are currently produced using two different technologies:
● Thermal bubble: Tiny resistors create localised heat, which makes the ink vaporise.
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.
Laser printers
● Laser printers use dry powder ink rather than liquid ink and make use of the
properties of static electricity to produce 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.
● These devices produce high-quality printouts and are very fast when making multiple
document copies.
● Laser printers have two advantages: large toner cartridges and large paper trays.
3D printers
3D printers produce solid objects that work. They are primarily based on inkjet and laser
printer technology. The solid object is built up layer by layer using materials like powdered
metal, paper, or ceramic.
» They use additive manufacturing (the object is built up layer by layer) instead of subtractive
manufacturing (removal of material to make the object).
» Direct 3D printing uses inkjet technology; a print head can move left to right like in a
normal printer. However, the print head can also move up and down to build up an object's
layers.
» Binder 3D uses two passes for each of the layers; the first pass sprays dry powder, and
then on the second pass, a binder (a type of glue) is sprayed to form a solid layer.
» Newer technologies use lasers and UV light to harden liquid polymers, which increases the
diversity of products that can be made.
Uses of 3D printing
» the covering of prosthetic limbs can be made to fit the limb exactly
» making items to allow precision reconstructive surgery
» in aerospace, manufacturers are looking at making wings and other parts
» fashion and art – 3D printing allows new creative ideas to be developed
» making parts for items no longer in production like suspension parts for a vintage car.
LED screens
LCD screens
● These use organic materials (made up of carbon compounds) to create very flexible
semiconductors.
● Organic films are sandwiched between two charged electrodes
● When an electric field is applied to the electrodes, they give off light.
● This means that no form of backlighting is required. This allows for very thin screens.
● This also means that LCD technology is no longer necessary since OLED is
self-contained.
● OLED technology can bend screens to any shape
● When mobile phone manufacturers adopt this, it makes it possible to develop phones
that can wrap around your wrist or ‘smart’ clothing with GPS embedded in it
● An OLED's plastic, organic layers are thinner, lighter, and more flexible than the
crystal structures used in LEDs or LCDs.
● OLED screens have lighter light-emitting layers, made from plastic rather than glass,
as in LED and LCD screens.
● OLEDs give a brighter light than LEDs.
● OLEDs do not require backlighting like LCD screens – OLEDs generate their light.
● Since OLEDs require no backlighting, they use much less power than LCD screens.
● Since OLEDs are essentially plastics, they can be made into large, thin sheets.
● (used in advertising boards
● OLEDs have a very large field of view, making them ideal for television sets and
advertising screens.
Loudspeakers
Loudspeakers are output devices that produce sound.
3.2.3 Sensors
Sensors are input devices that read or measure the physical properties of their surroundings.
Examples of monitoring
» Monitoring a patient in a hospital for vital signs such as heart rate, temperature, etc.
» Monitoring of intruders in a burglar alarm system
» Checking the temperature levels in a car engine
» Monitoring pollution levels in a river.
Examples of control
» Turning street lights on at night and turning them off again during daylight
» Controlling the temperature in a central heating/air conditioning system
» Chemical process control