Docsity

Application of computers, Lecture notes of Computer science

Toggle sidebar
bg1
APPLICATION OF COMPUTERS
This chapter deals with the areas where computers are used, what they used for, how they
are used, the advantages and disadvantages of their usage in such areas.
COMPUTER AIDED DESIGN (CAD).
This is whereby computers are used in the designing and development of new products in a
variety of applications both at home and on a commercial/industrial basis. Models of
infrastructure like bridges are designed and tested for their strength before building actual
structures on the ground. A model is a computer representation of a real object/process,
often involving some formula that determines its behaviour, e.g. a bridge, house, etc. CAD is
used in fields like:
- Aerospace
- Architecture
- Car/vehicle design
- Construction (e.g. Roads, services, surveying, tunnels, bridges, etc.)
- Consumer goods (e.g. kettles, toasters, etc.)
- Digital circuits
- Factory layouts (e.g. Ergonomics)
- Fashion design
- Heating systems
- Interior designs (houses, offices, etc.)
- Lighting systems (e.g. to get lighting effects at a concert)
- Machinery design
- Plant design (chemical, nuclear, etc.)
- Ship building engineering, architectural design, etc.
CAD Requirements
- considerable processor power
- Input devices like:
- Light pen: Used to make alterations on the screen to the drawings. Also used to write
directly on the screen. Can be used again to select commands.
- Tracker balls: used to draw designs and to select menus
- Mouse: adjust drawings
- Graphics tablet: provide interface for drawing on the screen. It also links with the light pen.
- Output Devices like:
- Large high resolution screens
- Graph plotters to draw scale and full size and high quality drawings
- High specification graphics cards
- Some systems support stereoscopic drawings where 3-D spectacles can be worn and the
user sees a 3-D image.
Features of the CAD software which are used in design are:
- Can zoom, rotate, scale, and crop images
- Has a library of geometrical shapes that will be used in drawings
- Has inbuilt library of components and templates.
- Have ability for labelling and adding text
- use 2-D and 3-D modelling
- has library of parts which can be used in new drawings
- use colour fill feature - Validation and verification of designs against original specification
- Ability to link with Computer-Aided Manufacture (CAM)
- Facility to calculate the mass of the actual object once built
- Facility to calculate the cost of producing the article
- Simulation of designs without the need to build a prototype
Page 24
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Partial preview of the text

Download Application of computers and more Lecture notes Computer science in PDF only on Docsity!

APPLICATION OF COMPUTERS

This chapter deals with the areas where computers are used, what they used for, how they are used, the advantages and disadvantages of their usage in such areas.

COMPUTER AIDED DESIGN (CAD). This is whereby computers are used in the designing and development of new products in a variety of applications both at home and on a commercial/industrial basis. Models of infrastructure like bridges are designed and tested for their strength before building actual structures on the ground. A model is a computer representation of a real object/process, often involving some formula that determines its behaviour, e.g. a bridge, house, etc. CAD is used in fields like:

  • Aerospace
  • Architecture
  • Car/vehicle design
  • Construction (e.g. Roads, services, surveying, tunnels, bridges, etc.)
  • Consumer goods (e.g. kettles, toasters, etc.)
  • Digital circuits
  • Factory layouts (e.g. Ergonomics)
  • Fashion design
  • Heating systems
  • Interior designs (houses, offices, etc.)
  • Lighting systems (e.g. to get lighting effects at a concert)
  • Machinery design
  • Plant design (chemical, nuclear, etc.)
  • Ship building engineering, architectural design, etc.

CAD Requirements

  • considerable processor power
  • Input devices like:
  • Light pen: Used to make alterations on the screen to the drawings. Also used to write directly on the screen. Can be used again to select commands.
  • Tracker balls: used to draw designs and to select menus
  • Mouse: adjust drawings
  • Graphics tablet: provide interface for drawing on the screen. It also links with the light pen.
  • Output Devices like:
  • Large high resolution screens
  • Graph plotters to draw scale and full size and high quality drawings
  • High specification graphics cards
  • Some systems support stereoscopic drawings where 3-D spectacles can be worn and the user sees a 3-D image.

Features of the CAD software which are used in design are:

  • Can zoom, rotate, scale, and crop images
  • Has a library of geometrical shapes that will be used in drawings
  • Has inbuilt library of components and templates.
  • Have ability for labelling and adding text
  • use 2-D and 3-D modelling
  • has library of parts which can be used in new drawings
  • use colour fill feature - Validation and verification of designs against original specification
  • Ability to link with Computer-Aided Manufacture (CAM)
  • Facility to calculate the mass of the actual object once built
  • Facility to calculate the cost of producing the article
  • Simulation of designs without the need to build a prototype
  • Import and export to allow the exchange of data with other software packages
  • Kinematics (i.e. check moving parts in assemblies don’t interfere with each other)

Advantages of Computer Aided Design

  • Saves a lot of time spent in drawing and testing objects.
  • Saves costs of designing items
  • Produces accurate scale diagrams.
  • Images are easily manipulated on the screen.
  • One can produce drawings in 3-dimensions as in buildings, gardens, bridges, etc.
  • Images can be saved on the disk and retrieved at a later date.
  • Drawings can be easily scaled up and down.
  • It is easier to modify drawings
  • A library of parts can be kept for future use
  • Ability to do automatic costing of items
  • Ability to model the design
  • Can do ergonomic study.

NB : Ergonomics : the design and functionality of the computer environment and includes furniture setup and how it affect human beings, e.g. ventilation, security, space, noise, etc.

Disadvantages of Computer Aided Design

  • Can lead to deskilling (skills which were highly valued are taken to be useless or of less value by the introduction of computers and workers degraded to less important jobs)
  • Involves very high training costs to use the packages
  • Can move work overseas
  • Can lead to unemployment as one CAD operator can do work of 5 manual draftsmen.

VIRTUAL REALITY (VR)

It is an artificial 3-D environment created by a computer system. It is the creation of simulated multi-dimensional representation of real things, e.g. armies fighting against each other. Users wear data goggles, data gloves, etc when interacting with the system. Requirements for Virtual Reality (VR)

  • Data goggles/helmets – these use display screens and optical systems that send 3-D images to the eyes.
  • Motion sensors : measure the position and orientation of the head; this information is sent back to a computer which enables it to adjust the image being sent to the user.
  • Data gloves , suits containing sensors and joysticks are all used to interface with a virtual reality system depending on the application. NB. User wears data goggles, data helmet or data gloves to give a feeling of “being there”. Apart from feeding sensory input to the user, these devices also monitor user actions e.g. data goggles track eye movement and respond by sending new video input. Areas of use for Virtual Reality (VR)
  1. Entertainment : a) Used in films/television as special effects where the studio audience wear VR helmets in a space simulation. b) Also used in computer arcade games like Need for Speed.
  2. Marketing a) Used in virtual tours around houses and hotels, kitchen designs, ergonomics, etc.
  3. Training : Areas of use include: military training, medical/dental training, teaching personnel how to use equipment and in general areas where training is dangerous and/or expensive e.g. flight simulators, car driving simulators, operating devices under water or in outer space, etc.
  • Robots rely on processors and sensors. The sensors gather information so that the robot knows it is the right time to do the task (e.g. is a car in position to be sprayed, is there an obstruction to prevent the robot doing its task, etc.)
  • They are capable of doing some pseudo-intelligent tasks (e.g. different sized cars to be painted)
  • Robots are mostly used (suitable) in the following areas: o In very dangerous areas for human beings to work , e.g. fire fighting, nuclear power stations, underground mining, chemical, nuclear factories, deep in the ocean, in space, etc. o In areas where heavy items are to be lifted , e.g. for loading containers in ships, in production lines, etc. o In areas where the degree of accuracy is of utmost importance , e.g. manufacturing of computer chips. Thus producing standardised goods. o Where work is repeatedly executed and boring , like traffic control at road junctions

Features (Parts) of a Robot Robots have the following features (parts/characteristics):

  • Actuator (Manipulator) : - A moving part which resembles a moving arm used for lifting and fitting items.
  • Transducer : They convert analogue signals to voltage signals.
  • Sensors : capture information and data from the environment in analogue form
  • Analogue - Digital Converter (ADC):Convert analogues signals to digital signals
  • Microprocessor : Processes data collected from sensors
  • Power supply : - Usually electricity through compressors or stepper motors.
  • Controlling Computers : - Connected through an interface to give instructions to the robot.
  • Have some form of interface ( connection points to power supply, human interface, etc. )

Robots can move from one position to another, e.g. when lifting cars into the warehouse and when going for recharging their batteries. They keep a record of the distance they have travelled and the angles they have turned through so that they can return to original position They can sense (using light sensor) and stop if unwanted object gets on their way. They need information and programming for them to work. Information is provided by sensors. Robots can be used for spray painting: Problems that Robots may encounter when spray painting and the Solutions

  • Problem : Robot may run out of paint Solution : include sensors in paint reservoir to indicate low paint levels
  • Problem: something gets in path of robot Solution: include sensors to detect presence of an object blocking the robot
  • Problem: Item may not be in the correct position Solution : include sensors to ensure item is in the correct position
  • Problem: Item is not present Solution : Include sensors to detect if the item is present

Advantages of Using Robots

  • Reduces labour costs as less people will be employed.
  • High quality work is produced, which is also of high standard and consistent.
  • Reduces cost (price) of goods due to reduced labour costs.
  • Increases production volumes of goods since more goods are produced in a very short period of time.
  • Ensures high degree of accuracy when producing goods.
  • Robots can operate in the dark thereby saving electricity costs.
  • Robots do not take breaks and holidays as they do not get tired.
  • Robots can work 24 hours a day; they can work non-stop; they don’t need a break
  • Robots reduce accidents at traffic lights.
  • Robots improve traffic flow.
  • Robots can work in dangerous conditions.
  • Create employment as the robots need to be serviced and installed.
  • Eliminates human errors involved in the production process.
  • Removes the need to do boring, very repetitive tasks leaving humans free to do the more skilled work such as quality control.

NB : However errors still exists due to:

  • Loss of power to the robot.
  • Fault in the software (wrongly programmed).
  • Occurrences of hardware break down.
  • Some robot components can be missing or misplaced.

Disadvantages of Using Robots

  • Leads to unemployment as humans are replaced by robots
  • Electricity expenses are very high.
  • they can find it difficult to deal with “unusual” circumstances e.g. a door is missing from a car waiting on the paint spraying line
  • leads to de-skilling since many tasks are taken over by robots

ARTIFICIAL INTELLIGENCE

Artificial Intelligence (AI) is the science of developing computer systems that have the ability to learn from experience and mimic human reasoning in specific areas, as in medical diagnosis, mineral prospecting, etc. Expert systems are a branch of Artificial Intelligence EXPERT SYSTEMS These are computer systems developed to mimic human reasoning and work at the level of an expert in a particular field, e.g. in medical diagnosis. A good example of an expert system is MYCIN that diagnose bacterial blood disease and then recommend appropriate antibiotic therapy for patients. Expert systems are used in the following fields:

  • oil or minerals prospecting,
  • diagnosing a person’s illness,
  • Diagnostics (e.g. finding faults in a car engine, etc.),
  • tax and financial calculations,
  • complex “thinking” tasks such as chess,
  • weather forecasting,
  • criminology/forensic science,
  • career choices, etc

Components (Elements) of an Expert System

  • The diagram below shows some of the components:
  • Knowledge Base : a representation of facts (data) in a particular field (e.g. diseases, symptoms, treatments, etc. as in medical diagnosis)
  • Inference procedure (engine) : contains reasoning methods used to arrive at a conclusion using information in the knowledge base. It contains interrogation technique/ questions and answers.
  • cannot adapt to changing environments unless the knowledge base is continually updated
  • expensive system to develop and set up in the first place
  • needs considerable training to ensure system used correctly by operators

Mineral and Oil Prospecting (Using expert systems)

An Expert System called prospector asks the user to enter geological formations of a particular area such as rock and soil type and then gives advice on the possible mineral deposits that can be found in that area. An interactive user screen appears. Questions are asked about geological profiles. Answers to questions are typed in. The inference engine searches the knowledge base using the rule base. Inputs Geological data such as rock and soil type

Processing Draws conclusions from rules and facts using geological data entered and the mineral data stored in the knowledge base. E.g

  • suggest the probability of finding oil as an output
  • indicates the probable depth of deposits
  • predicts geological deposits above the soil
  • produces contour maps showing concentration of minerals, rocks, etc

Output

  • Possible mineral deposits that can be found in that area
  • Geological maps

DATA LOGGING

The process of automatically collecting data from source at set intervals, over a period of time, for use at a later stage. A device that automatically collects data from source at set intervals for use at a later stage is called a data logger. Features of Data Loggers: F 0 B 7 F 0 They contain processor inside them. B 7 Have Interface : Devices that act as connection point between data loggers and the computer. F 0 B 7 F 0 They have own storage facility : For storage of data collected from sensors B 7 They contain or are connected to^ sensors^ that are used for collecting data in analogue form. All physical properties can be measured with sensors e.g. light, heat, sound, pressure, acidity and humidity.

Sensor type Purpose Mercury Tilt switch Detects if device is tilted, e.g. a vending machine Light sensor Detects the intensity of light (light level), e.g. so as to turn on or off street lights. Used also in greenhouses, automatic door, traffic control, etc Can detect light reflected from a barcode Push switch Used to turn on or off interior light, e.g inside a fridge if a door is opened or closed

Temperature sensor Detects temperature levels in central heating systems, chemical plants, etc Infra-red sensor Used in burglar alarms, counting people, detecting heat sources Sound sensor Records sound levels from beer halls, houses, etc Proximity sensor Detects how close to each other are two parts, e.g if a window is opened; an alarm is raised because the proximity between the window and the sensor is changed. Position sensor Senses the angle of an object from a certain point, e.g from a robot Pressure/motion sensor Senses when someone has walked over an object e.g. used in burglar alarm systems, automatic doors, counting vehicles, etc Acoustic sensor Listening to foot steps (in burglar alarms), sound from broken glass, etc pH sensor Measures the acidity or alkalinity of objects e.g. of soil and water, in pollution monitoring, chemical process control, etc Humidity(moisture) sensor Measures humidity (moisture) levels in air, greenhouses, irrigation systems, etc Distance sensor (could be proximity) Measure the distance from one point to another Oxygen sensor Used to monitor pollution levels

They can be connected to small keyboards or other special reading devices. F 0 B 7 They are connected to an Analogue to Digital Converter (ADC), which converts data signals in continuously varying form (analogue) collected by sensors into discrete (digital) values that can be accepted by the computer.

Types of Data Loggers a. Data loggers with permanent computer connection F 0 B 7 These take readings and send them to the computer in offices through connection cables or through wireless connections. F 0 B 7 The time intervals (time between each reading) and the period over which the logging takes place can vary F 0 B 7 The computer may process the readings instantly and produce graphs F 0 B 7 F 0 The readings may also be stored on the disk for processing at a later date B 7 These are suitable for experiments in laboratories

b. Data loggers with temporary connections F 0 B 7 These are not always connected to the computer, but are connected when necessary F 0 B 7 They are mostly used in monitoring environmental conditions over a period of time

  • Environmental monitoring (oxygen or pollution level in river)

Monitoring of Patient’s Vital Signs in Hospital

  • Sensors read key vital signs (e.g. pulse/heart rate, temperature, blood pressure, respiration, etc.)
  • The data from sensors is converted to digital form using ADC
  • The data is stored in computer memory
  • The computer compares data from sensors with pre-set parameters
  • The results are output on the screen in form of graphs or digital read outs.
  • An alarm is activated if any of the data is outside acceptable parameters
  • The system continues to monitor the patient until the computer is tuned off.

These systems are designed to monitor critically ill patients or premature babies. Some biosensors connected to the computer are attached to the patient for tracking and recording vital signs such as heart beat, blood pressure and brain activity. The biosensors will transmit readings to the central computer should the situation go beyond a critical warning level and:

  • issue a warning on the computer display for nurses on standby
  • sound a warning siren, beep or sound to alert medical staff
  • flash a light to draw attention of medical staff

Patients in intensive care are monitored through sensors. The sensors measure and give feedback pertaining to: blood pressure, temperature level, weight, pulse rate, etc.

The computer is pre-set with normal range of values. It compares these with feedback from sensors. Computers record patients’ medical data over some time for later analysis. Data recorded includes:

  • Taking measurements on patients, for instance: blood pressure, temperature level, weight, pulse rate etc. This relieves nurses of some duties that will be boring, making them faster and more reliable.
  • There are however some hospital tasks that are more suitable for human beings to perform than computers. These include dressing patients, bathing patients, etc.

In hospitals, computers also perform the following:

  • Used to hold data for children‘s immunisation processes.
  • Monitoring of patients during surgery as they control body scanners and sensors.
  • For Stock control : For hospital blood stocks, food stocks, drug stocks, etc
  • For patient Booking system : For out-patients and in-patients to see the doctor
  • For keeping Personnel records : For keeping and management of employee records

Surveillance Systems for House Breakers

The interaction between sensors and microprocessor in a surveillance system is as follows:

  • sensors around the house would gather information
  • e.g. has a light beam been broken
  • has pressure pad detected excess pressure
  • has infra-red beam detected excess heat
  • has acoustic sensor detected any noise such as breaking glass
  • data translated into digital using an ADC (analogue to digital converter)
  • microprocessor/computer will compare signal from sensor with stored information
  • e.g. signal that light beam is broken

pressure > stored “normal” value

heat level > stored “normal” value acoustic level > “stored” normal value

  • if any values are outside normal range, microprocessor/computer sends a signal to an alarm and/or flashing light
  • system also automatically sends signal to police/security company
  • since the house is large, sensors will be in zones; therefore computer will indicate on a control panel the zone where intruder broke in

CONTROL SYSTEM

  • It is a system in which one or more computers are used to monitor and regulate the operations of non-computer equipment like in oil refineries.
  • Control systems involve monitoring and logging of physical quantities, provide an analysis of performance and allows some user interaction.
  • Feedback is an essential element as well as timing.
  • Most control systems are real-time systems, e.g. in oil refining, chemical processing, traffic lights (controlling the sequence of lights to maintain optimum traffic flow), chemical and nuclear plants (opening and closing valves, safety systems, etc.), etc.
  • In computer control: F 0 F C

F 0 F 02 0computer system takes information from the sensors F C

F 0 F 02 0compares the data with stored values F C

F 0 2 0Takes action to try to get values within acceptable ranges by sending signals to devices to open/close, on/off etc. Devices that receive signals include valves, motors, windows, tapes, etc. F 0 F C

F 0 2 0output from system can affect next input (feedback)

Examples of control systems include:

  • controlling a nuclear reactor
  • controlling a chemical process
  • controlling a greenhouse environment
  • controlling central heating system
  • controlling a set of traffic lights

Components of Computer Control

  • A computer (or microprocessor).
  • Sensors to enable the computer to detect quantities such as temperature or pressure.
  • Motor : Devices which actually turns on or off other devices, e.g power supply, windows, vents, water pipes
  • Devices for the computer to turn on and off.
  • An interface to connect the sensors and devices to the computer.
  • software to read data from the sensors and turn the devices on and off

How control is done

  • Sensors gather information from the environment in analogue form.
  • The ADC translates the analogue data into digital form
  • The microprocessor compares the incoming data with the data values already stored in memory.
  • If values are outside set parameters, the computer sends a signal to a device to switch on or off (e.g. if controlling a central heating system, if temperature > set temperature a heater will be switched off and/or a cooling fan switched on; if the temperature is below the set point then the heating will be switched on and/or a cooling fan switched off).
  • The digital signal will be converted to analogue form using a DAC (Digital to Analogue Converter). Actuators are usually employed to operate devices like valves, heaters, etc.

Outputs:

  • Windows open or closed (digital form)
  • Heater on or off (digital)
  • Pump for water supply on or off (digital)

Computerised Traffic Control System

Input:

  • Data is read from sensors(light sensor, motion/pressure sensor, weight sensor, sound sensor, etc)
  • Data is read from camera images

Processing:

  • Computers analyse data from sensors.
  • Computers calculate average traffic flow and speed.
  • Computer sends signals to actuators to adjust change of lights and timing

Output:

  • Change of lights at junction.
  • change timing plan

Advantages of using computerised traffic control systems

  • Ensures improved traffic flow control.
  • Reduces traffic accidents.
  • Keeps delays to a minimum.
  • Reduces pollution. cars use less fuel

In case of an emergency, the computerised traffic system may perform any one of the following:

  • Give uninterrupted path through the system of linked traffic lights.
  • Give green link – wave for all traffic to pass.
  • Turn all lights to red.
  • Activate emergency generator.
  • Sound an alarm.

Microprocessor-Controlled Streetlights

Input:

  • Pre-set values of Sunset time and Sunrise time
  • Light level (Light sensor sends measurement of light to microprocessor, ADC converts this to digital)

Processing:

  • Processor compares sunrise time, sunset time and current time.
  • If sunrise time = current time or higher, the processor send signal to actuator so that it switches off lights, else,
  • if signal equals sun set time, the processor send signal to actuator so that it switches on light.
  • Also the amount of light is compared with pre-set value. If higher – nothing happens, If lower or equal sends signal to send signal to actuator so that it switches on the streetlights.

Output: Lights switched on or off

Benefits of Monitoring and Control Systems

  • It is safer to use computer control than human beings, e.g. in monitoring temperature in a blast furnace, monitoring radiation level in a nuclear reactor, etc.
  • It is faster to respond to problems that may affect the system, e.g. nuclear reactor can automatically shut down in response to earthquake
  • They don’t get tired, thus computers can work 24/
  • Computer systems do not miss key data that must be entered into the system as humans do.
  • Computer control is more reliable than human beings as computer does not forget to take readings
  • computers are more accurate and can take more frequent readings (e.g. if readings need to be taken every 30 seconds, humans can make mistakes or miss readings or even find it impossible to take readings at such short time intervals)
  • data can be automatically displayed and analysed without the need to enter data manually (which in itself could introduce errors into the system)
  • Data can be automatically stored and used in other programs.
  • The results of the system can be automatically stored in a spread-sheet package or a database package for future reference.
  • Computer’s response time is faster, which is important especially in patient monitoring

Disadvantages of Monitoring and Control Systems

  • High initial costs because computer-controlled devices are more expensive to buy and to set up.
  • Fewer workers will be employed leading to a rise in the numbers of the unemployed.
  • The software for the control system is very expensive
  • If the computer malfunctions the system will not work
  • If there is a power cut the system will not work
  • The computer can’t react to unexpected events like a human could. It can only respond in the way it has been programmed to.
  • It can cause some concern if total control for a system and the decisions are handed over to a computer.

AUTOMATED SYSTEMS

  • These are control systems that are dedicated to one particular task and lack the ability to collect and analyse data as in digital cameras.
  • They do not allow for or act on user interaction, e.g. washing machines, cameras, watches.
  • Most control systems have embedded computers systems inside them.

NB: Embedded Computers: –

  • Refers to use of microprocessors in non-computer equipment like in cameras, washing machines, watches, etc. They do not have mouse, monitor and keyboards.
  • These are normally dedicated for a specific task they are designed for. Embedded computers are also found in household items like camera, microwave, washing machine, video recorder, fridge, sewing machine, air conditioning, electronic toys, rice cooker dish washer, Televisions, alarms, clock, radio, DVD players, etc.

Refrigerators

Inputs :

  • temperature level (from temperature sensor/ or entered manually through the number pad),
  • Pressure (from pressure sensor/contact switch/push switch) ,
  • Light flashed to indicate film/picture is taken

Speed Cameras

These are used on roads to take photographs of cars which have exceeded the speed limit. Some of these cameras use microprocessor controlled chips to store information. The advantages of speed cameras with microprocessor controlled chips are that:

  • Data and images can be transferred automatically which will be faster.
  • Image can be viewed straight away.
  • Can store considerably more data and photos.
  • Can store other information (apart from photo image) e.g. road conditions.
  • Chips can be re-used.

Inputs

  • Maximum speed (speed limits)
  • Road condition

Processing: Tasks which would be carried out by the microprocessor as a speeding car approaches a camera include:

  • Sense and record speed of vehicle.
  • Compare speed of vehicle with stored value(s) and decide whether photograph should be taken.
  • Check on value of light intensity.
  • Adjust focal length, focus image, adjust shutter speed and set exposure.

Tasks which would be carried out by the microprocessor as the photograph is being taken include:

  • Log the time.
  • Log the date.
  • Log the speed.
  • Record the road conditions.
  • Operate ―flash.
  • Operate shutter.
  • Instructs storage of the image.
  • Check on value of light intensity.
  • Adjust focal length and focus image.

Outputs

  • Video/pictures of cars captured
  • Alarms of over-speeding cars

Microwave Cookers

Function by switching a microwave unit on for a sufficient time to either defreeze frozen food or cook it. It is used to cook food quickly by using waves (similar to radio waves) to heat the food. Inputs : Modern cookers have sensors attached to a microprocessor for detecting as inputs: Weight of food Temperature of food

Some cookers will also have additional sensors for detecting:

  • Amount of steam produced during cooking
  • Amount of alcohol produced

Processing :

  • The microprocessor continually monitors sensor readings and by referring to a programmed in-built database of food types.
  • The microprocessor determines time needed to cook or defreeze food.
  • IF a temperature in the food indicates the food is cooked OR the time set on the oven clock is reached THEN microwaves are not produced

Output : Heat for cooking, Light indicating that food is cooked, power turned off if food is cooked. *NB:-Tasks performed by microprocessor inside some of the devices include:

  • In digital camera : automatically adjust film speed, positions the end of film, adjust distance from object, adjusts light.
  • In washing machine : Controls the amount of water. Adjust and controls speed of wash. Control temperature of water and the time taken to wash the clothes.
  • In fridges : Controls temperature level. Control the display panel. Switch on lights if door is opened and off when closed.
  • In air conditioners : Controls temperature. Controls timing and the display panel

Differences between Control and Automated systems Control Systems

Automated Systems

Can have several tasks Dedicated to one task Can collect and analyse data lack the ability to collect and analyse data Allows user intervention They do not allow for or act on user intervention Has an element of feedback Do not involve feedback

SIMULATION AND MODELLING

Modelling A model is a representation of a real-life process/object which consists of a set of equations which describes the behavior the process or object. Modeling is the creation of a programmed simulation of a situation/process in order to predict future trends. It involves the use of mathematical formulas and calculations to predict what is likely to happen based on data recorded. In modeling, we use the computer to solve equations so that we can carry out simulation. An equation for part of an economic model could be: Unemployment = people able to work – people working. You can develop and evaluate your own models or use the models that have already been set up to simulate a real life situations 3-D Models can be built using CAD, e.g for planning stores.

Advantages of modeling

  • No equipment is damaged
  • People are not put in any danger
  • Expensive prototypes don't need to be built
  • Time can be sped up or slowed down
  • Models can be run and re-run over and over

A landing simulation with ice on the runway, thick fog and only one of the four engines

working would really test the pilot’s ability Flight simulators enable pilots to experience turbulence, snowstorms, thunderstorms, fog, etc, without leaving the ground.

SIMULATION AT ROAD JUNCTION

The following is a series of traffic lights at two busy junctions: In this simulation it is necessary to consider

  • In this simulation it is necessary to consider:
  • how and what data is gathered
  • how the simulation is done
  • how the system would work in real life
  • why simulations are done

How data is gathered To make this as realistic as possible, data needs to be gathered over a long period of time. This can be done by sensors in/near the road, using cameras or manual data collection. Data gathered includes:

  • number of vehicles passing in all directions at each junction
  • number of vehicles passing in all directions at each junction at a particular time of the day
  • Number of cars build up at a junction before lights change
  • is it a week day or weekend or public holiday
  • how long it takes to clear vehicles at a junction
  • other data (e.g. pedestrian crossings)
  • time taken for largest/slowest vehicle to pass through a junction
  • other factors (e.g. filtering of traffic to the right or left)

How simulation is done The data is entered into the computer and the simulation is run. The following scenarios may be tried out:

  • timing of lights is varied to see how the traffic flow is affected
  • build up number of vehicles stopped at a junction and change timing of lights to see how it affects the traffic flow
  • increase/decrease traffic flow in all directions to see how the traffic is affected
  • try out the impact of accidents
  • consider passage of emergency vehicles
  • effect of adding in pedestrian crossings
  • once the simulation is run, the timing of the lights is determined and how they interact so that the maximum traffic flow is achieved;
  • fault scenarios (e.g. an accident) and their impact are considered

How the system works in real time

  • Sensors in/near the road gather data (these can be light/infra-red sensors, induction loops, pressure sensors, etc.)
  • the data is usually number of vehicles passing a particular point
  • the data is sent to a control box or computer system
  • the gathered data is compared to data stored in the system (the stored data is based on simulation runs, how the number of vehicles at a junction at a particular time of day affects the traffic flow, etc.)
  • the control box or computer “decides” what course of action to take and sends signals to the traffic lights to change timing if necessary
  • as with any system involving sensors, ADC and DAC interfaces may be needed