3. Hardware
3. Hardware
Computers and their components
Embedded Systems
Designed to perform a specific function
Contains a processor, memory and I/O capability
Has a microprocessor
Installed on a device
No additional peripherals
(more and more are installed in the IoT)
Principle operation of hardware devices
Virtual reality headset:
-consists of 2 lenses, an LCD display, a circuit board with sensors, a cover and foam padding
-display provides a simulation of a 3D environment using a 3D graphics package
-user can ‘move’ through moving their head or using controllers
Keyboard:
-keys are positioned in a key matrix consisting of rows and columns of wires
-a continuous test by a microprocessor identifies closed electrical circuits between rows and columns when a key is pressed and intersects the wires
-data stored in ROM determines the character code associated with the pressed key
-the OS ensures text characters appear on the screen/ the requested action has been executed
Printers
Laser printer:
-drum is made negatively charged, it revolves
-the drum is hit by lasers causing charge to leak away
-positively charged toner is attracted to the negatively charged parts of the drum
-a sheet of paper is passed under the drum causing the toner to fall onto it
-heat causes the toner to stick to the paper
-excess toner is collected, image is formed
-requires a separate toner for cyan, magenta, yellow and black
-image quality is controlled by dots per inch
Inkjet printer:
-a sheet of paper is inserted
-the printhead traverses across the sheet applying ink in a row
-the paper advances slightly and the process repeats
-the printhead consists of nozzles that eject droplets onto the paper, where ink is provided by ink cartridges
3D printer:
-design is split into layers stored in a digital file
-data for first layer is transmitted to printer
-3D printer uses a nozzle to squirt material onto printer bed to create the layer
-process is repeated sequentially for each layer
-object is cured to stick layers together
Graphic plotter:
-a specialised device for drawing precise, detailed illustrations and designs
-it uses pens or drawing tools to create lines and shapes when moving across the paper
-best at creating vector graphics
Voice
Microphone:
-incoming sound waves cause vibrations in the diaphragm
-vibrations in air cause a coil to vibrate past a magnetic core
-analogue to digital converter (ADC) converts analogue signal into digital signal
Speaker:
-current in speaker coil causes changing magnetic field
-changing magnetic field of coil interacts with permanent magnets in speaker exerting a force on the coil
-vibration of coil is transmitted to air
-the degree of vibration determines the amplitude and frequency of the sound wave produced
Touchscreen:
Resistive touchscreen:
-consists of two charged plates
-pressure causes plates to touch completing the circuit
-point of contact registered with coordinates to calculate position
Capacitive touchscreen:
-made from materials that store electric charge. When touched, charge is transferred to the finger. Most effective technology is PCT (projective touch capacitance) using an array of capacitors, allowing multi-touch
Screen:
-each pixel contains three sub pixels representing red, green and blue
-adjusting the brightness of each sub-pixel allows different colours to be represented
Cathode ray tube:
-electron gun emits a stream of electrons at a phosphorescent screen producing light
-electrons are controlled by electromagnets
Liquid crystal display (LCD):
-each pixel contains a liquid crystal cell, forming a pixel matrix
-an LED backlight illuminates the pixel matrix
-a polariser between the matrix and screen causes light to be polarised before and after hitting the pixel matrix
-applying a voltage to the pixel cell changes the liquid crystal alignment altering the light that passes through it and the screen content
Graphic input:
Webcam - transmits video footage to a computer system
Digital camera - can transfer and save photos or videos within the computer’s storage
Scanner:
-keeps a sheet of paper with a stationary image while a light source moves across it
-reflected light is guided by mirrors and lenses onto a charge-coupled device (CCD)
CCD - consists of a grid of light-sensitive cells which each generate an electrical signal corresponding to the intensity of light it receives. Requires an analogue-to-digital converter to convert analogue signals to digital values.
Secondary storage:
-non-volatile storage of files/data
-stores data not currently required by CPU
-stores data to transfer to another computer
Memory
Memory consists of data and instructions in binary which are stored in memory addresses which are represented in binary. Memory can be read (looking up data in memory addresses) or written (saving new data into the memory). Usually measured in GB (gigabytes) or TB (terabytes).
Buffer - a queue that temporarily stores data before being transmitted to its destination to balance input and output speed of data. Functions as a queue so data emerges in the order it has entered. Usually created in computer memory.
RAM and ROM
RAM
ROM
Monitoring and control systems
Monitoring system - continuously observes and tracks some state external to the computer system, providing real time data and alerts.
Control system - a monitoring system + actuator that regulates the behaviour of other devices or systems. Systems can be event or time driven.
Sensor - measures an analogue property and transmits it to a processing unit generally as an electrical or optical signal. Includes temperature, humidity, pH and light sensors.
Actuator - an electric motor connected to a controlling device used for switching appliances on or off / adjusting a setting converting a control signal into an action
ADC - converts analogue signals to digital signals
Transmission cable - transfers signals
Closed loop feedback systems - the output from the system affects the input of sensors. Ensures the system operates within a given criteria allowing it to adjust conditions in a continuous process automatically.
Bit manipulation
-setting all bits to 0 - restarting a system (LDD X; AND #B00000000; STO X)
-toggling the value of one bit - changing the value of a flag (LDD X; XOR #B00000001; STO X)
-setting a bit to 1 - reporting a condition (LDD X; OR #B00000001; STO X)
-setting all bits to zero except one bit (LDD X; AND #B00000001; STO X)
Cache
Cache memory is a small amount of fast/quick-access and expensive memory located near CPU storing active processes and frequently used instructions to increase processing speed and reduce main memory data transfer bottlenecks (when CPU has to wait for fetching data and instructions from memory).
It speeds up FDE cycle when CPU fetches memory from RAM. Modern technology has reduced cache miss (when data CPU needs is not in cache).
Virtual Memory
Virtual memory = temporary storage of memory acting as extension for RAM in secondary storage e.g. hard disk drive. When RAM is full (when too much software is running simultaneously), data not being used is swapped from RAM to hard drive and vice versa when needed, freeing RAM for other processes. Computer slows down as processor has to wait while data is swapped between hard disk and RAM.
Paging (virtual memory) = programs are divided into small blocks of memory called pages. Only required pages are loaded in RAM. When page not required, it is swapped into hard disk. When it is required, it is swapped into RAM.
Logic gates and logic circuits
Logic gate - a component of a logical circuit that can perform a Boolean operation
Logic circuit - a circuit that performs logical operations on symbols