Hardware Notes
Hardware Notes
10101010 01010110
Instruction Set:
An instruction set is a list of all the commands that a CPU can process, and the commands are
machine code
Cores, Cache and Internal Clock
System’s Clock
The clock defines the clock cycle that synchronises all computer operations. By increasing
the clock speed, the computer's processing speed also increases. This doesn’t mean that
the computer's performance is increased, however.
Overclocking
Using a clock speed higher than the computer was designed for.
It leads to multiple issues.
• Operations become unsynchronised - (the computer would frequently crash and
become unstable)
• can lead to serious overheating of the CPU
Length of Data Buses
The wider the data buses, the better the performance of the computer
Cache
Cache memory is located within the CPU itself
-- allows faster access to the CPU
-- stores frequently used instructions and data that need to be accessed faster, which improves
CPU performance
The larger the cache memory size, the better the CPU performance
Cores
The more cores in the CPU, the better and faster the performance
• But if any number of cores are used, it could possibly slow down the system
performance as the communication between each core increases, and so do the data
cables between each. Which in turn reduces the potential system performance.
• You might have heard about quad and dual cores, not septa or octa cores.
Input Devices
Two-dimensional Scanners:
• Used to input hard-copy documents
• The image is converted into an electronic form which can be stored in the computer
o Document is placed on a glass panel
o A bright light illuminates the document
o A scan head moves across the document until the whole page is scanned. And
image of the document is produced and sent to a lens using a series of mirrors
o The lens focuses the document image
o The focused image now falls onto a charge couple device (CCD) which
consists of a numbers of integrated circuits
o Software produces a digital image from the electronic form
• Optical Character Recognition (OCR) is a software which converts scanned
documents into a text file format
• If the original document was a photo/image, then the scanned image forms an image
file such as JPEG
Three-dimensional Scanners
• 3D scanners can scan solid objects and produce a three-dimensional image
• Scanners take images at several points, x, y and z (lasers, magnetic, white light)
• The scanned images can be used in Computer Aided Design (CAD) or to a 3D printer
to produce a working model
Application of 2D Scanners at an Airport:
• Make use of (OCR) to produce digital images which represent the passport pages
• Text can be stored in ASCII format
• The 2D photograph in the passport is also scanned and stored as jpeg image
• The passenger’s face is also photographed using a digital camera and compared using
face recognition software
• Key parts of the face are compared (distance between eyes, width of nose)
Barcode readers/scanners
• A barcode is a series of dark and light parallel lines of varying thicknesses
• The numbers 0 -9 are each represented by a unique series of lines
• The left and right hand sides of the barcode are separate using guard bars
• Allows barcode to be scanned in any direction
o Barcode is read by a red laser or red LED
o Light is reflected back off the barcode; dark areas reflect little light which
allows the bars to be read
o Reflected light is read by sensors (photoelectric cells)
o The pattern is generated, which is converted to digital
Quick Response (QR) Codes
• Another type of barcode is the QR codes
• Made up of a matrix of filled-in dark squares on a light background
• Can hold more storage (7000 digits)
• Advantages of QR codes:
o No need for the user to write down the website address
o QR codes can store website addresses
Digital Cameras
• It is controlled by a microprocessor that adjusts the shutter speed, focuses the image,
etc.
• Photo is captured when light passes through the lens onto a light sensitive cell
• The cell is made up of pixels
• The number of pixels determines the size of the file
Keyboards
• Connected to a computer with a USB connection or by wireless connection
• Each character has an ASCII value and is converted into a digital signal
• Slow method
• Prone to errors
Pointing devices
• Mouse/trackball
o Traditional; mechanical ball, connected by USB port
• Modern type; red LEDs to detect movement
Microphones
• Used to input sound to a computer
• When a microphone picks up sound, a diaphragm vibrates, producing an electric
signal
• The signal goes to a sound card and is converted into digital values and stored in a
computer
• Voice recognition, voice is detected and converted into digital
Touchscreens
• Capacitive (medium cost tech)
o Made up of many layers of glass
o Creating electric fields between glass plates in layers
o When the top layer of glass is touched, electric current changes
o Co-ordinates where the screen was touched are determined by an on-board
microprocessor
• Infra-red heat (expensive)
o Use glass as the screen material
o Needs a warm object to carry an input operation
• Infra-red optical (expensive)
o Uses glass as screen material
o Uses an array of sensors (grid form)
o Point of contact is based on which grid co-ordinate is touched
• Resistive (inexpensive)
o The upper layer of polyester, the bottom layer of glass
o When the top polyester is touched, the top layer and bottom layer complete a
circuit
o Signals are then sent out, which are interpreted by a microprocessor,
determine where the screen was touched
Sensors
• Devices that read or measure physical properties
• Data needs to be converted to digital
• Analogue-to-digital converter (ADC) converts physical values into digital
• Sensors and their purposes:
o Acoustic - These sensors act like a microphone that converts sound to electric
pulses.
o Accelerometer - These sensors measure an object's acceleration or
deceleration and motion.
o Flow - This sensor measures the flow of liquid or gas.
o Gas - These sensors measure the amount/level of any gas in the environment.
o Humidity - This sensor measures the water vapour in the air or any sample.
o Infra-red (active) - This IR sensor uses an invisible infrared beam. When the
beam is broken/disturbed, it changes the amount of infrared light reaching the
detector.
o Infra-red (passive) - These sensors detect the heat emitted by any type of
object.
o Level - This sensor detects the solids, liquids, or gas level.
o Light - These devices use light-sensitive cells that generate electric current
based on light brightness.
o Magnetic field - This sensor detects the change in magnetic field.
o Moisture - This type of sensor detects the water content wherever this sensor
has been installed.
o pH - This measures the acidity or alkalinity.
o Pressure - This sensor measures the pressure applied
o Proximity - This sensor detects the nearby objects around the sensor
o Temperature - These sensors measure the temperature of the environment.
• (Note: You do not need to know the working principle of the sensor. But have an idea
of their purposes.)
Control of Street Lighting
• The light sensor sends data to the ADC
• Digitised data and sends it to the microprocessor
• Microprocessor samples data every minute
• If data from sensor < value stored in memory:
o Signal sent from microprocessor to street lamp
o Lamp switched on
Output Devices
Inkjet Printers
• Used to print one-off pictures and documents
1. Data from the document sent to the printer driver
2. The printer driver ensures data is in the correct format
3. Check made by printer driver that the chosen printer is available
4. Data is sent to printer, and stored in a temporary memory (printer buffer)
5. A sheet of paper is fed; the sensor detects if the paper is available in the paper tray
6. The print head moves across paper printing text/image, four ink colours sprayed in the
exact amount
7. Paper is advanced, so next line is printed
8. Repeated until the buffer is empty
9. Once it is done, the printer sends an interrupt to the processor (request for more data
to be sent)
Laser Printers
• Used to print flyers, high quality
• Use dry powder ink (toner) and static electricity to produce text and images
• Prints the whole page in one go
1. (steps 1-4 same as inkjet)
2. Printing drum is given a positive charge; as the drum rotates, a the laser beam is
scanned across it, removing the positive charge leaves negatively charged areas which
match the text/image
3. The drum is then coated with positively charged toner; it only sticks to negatively
charged parts of the drum
4. A negatively charged sheet is rolled over the drum
5. The toner on the drum now sticks to the paper to produce a copy of the page
6. Paper finally goes through a fuser (set of heated rollers); heat melts the ink so it is
permanent
7. The discharge lamp removes all electric charge from the drum, ready to print next
page
3D Printers
• Used for models of cars
• Produce solid objects that work
• Built up layer by layer, using powdered resin, ceramic powder
• A design is made using Computer-aided Design (CAD)
2D and 3D Cutters
• 3D cutters can recognise objects in x, y, z direction
• 3D laser cutters can cut; glass, crystal, metal, wood
Actuators
• The actuators convert electrical signals to mechanical processes.
• Used in many control applications involving sensors and devices (ADC and DAC)
Loudspeakers/Headphones
• Sound is produced by passing the digital data through a DAC then through an
amplifier and then emerges from the loudspeaker
• Produced by voltage differences vibrating a cone in the speaker at different
frequencies
LCD and LED Monitors
• The front layer of the monitor is made up of Liquid Crystal Display (LCD), these tiny
diodes are grouped together in threes as pixels (LCD doesn’t emit any light)
• LCD monitors are backlit using Light Emitting Diode (LED) because:
o LEDs reach their maximum brightness immediately
o LEDs sharpens image (higher resolution), and CCFL has a yellow tint
o LEDs improve the colour image
o Monitors using LED are much thinner than CCFL
o LEDs consume very little power
• Before LEDs, LCD monitors were backlit using CCFL
• CCFL uses two fluorescent tubes behind the LCD screen, which supplies the light
source
Light Projectors:
• Two common types of light projectors:
o Digital Light Projector (DLP)
o LCD Projector
• Projectors are used to project computer output onto larger screens/interactive
whiteboards
Digital Light Projectors (DLP)
• Uses millions of micromirrors
• the number of micromirrors and the way they are arranged on the DLP chip
determines the resolution of the image
• When the micromirrors tilt towards the light source they are on
• When the micromirrors tilt away from the light source, they are off
• This creates a light or dark pixel on the projection screen
• A bright white light source passes through a colour filter on its way to the DLP chip
• White light splits into primary colours
LCD Projectors
• Older technology than DLP
• A powerful beam of white light is generated from a bulb
• This beam of light is then sent to a group of chromatic-coated mirrors; these reflect
the light back at different wavelengths
• When the white light hits the mirrors, the reflected light has wavelengths
corresponding to red, green, and blue
• These three different lights pass through three LCD screens; these screens show the
image to be projected as millions of pixels in grayscale
• When the coloured light passes through the LCD screens, a red, green and blue
version of the grey image emerges
• Finally, the image passes through the projector lens onto the screen
Source: Cambridge IGCSE and O Level Computer Science - Second Edition (Hodder
Education)
Memory, Storage Devices & Media
Primary vs. Secondary Storage
• The CPU directly accesses primary storage
• The CPU does not directly access secondary storage
• RAM, ROM, and cache memory are some examples
• HDD, SSD, DVD, memory stick, and Blu-ray disc are some examples
Primary Memory:
Random Access Memory (RAM)
• RAM is used by a system when it needs to store and access data that is actively being
used or processed by the user immediately.
• Features of RAM
o Volatile/temporary memory (contents lost if RAM is turned off)
o Used to store; data, files
o It can be written to or read from, and the contents of the memory can be
changed
• The larger the size of the RAM, the faster the computer will operate
• RAM never runs out of memory and continues to run slow
• As RAM becomes full, the processor has to access the continually hard drive to
overwrite old data on RAM with new data
• RAM is of two types:
DRAM (Dynamic RAM) and SRAM (Static RAM)
Very fast reaction to changing Often thrown away as difficult to upgrade and
input faults are harder to find
Dedicated to one task only Increased garbage as they are thrown away