Microprocessor Based Control Of Traffic Lights Computer Science Essay

Microprocessor: A microprocessor is defined as the digital electronic constituent embedded with transistors on a individual semiconducting material integrated circuit. One or more than one microprocessors typically serve as a cardinal processing unit in a computing machine system.

Microprocessor Components:

Basic Components:

The followers are the basic constituents of the microprocessor:

Registers:

A registry is a storage component which is composed of an array of reversals. A 1-bit registry can hive away 1 spot and a 32-bit registry can keep 32 spots and so on.

A registry has two inputs:

Data input

Clock input.

Multiplexers:

A multiplexer is used as an input picker. A multiplexer has 1 end product, a control input and other informations inputs. If the control signal is `` 0 '' , the 0th input is moved to the end product. If the control signal is `` 7 '' so the 7th input is moved to the end product.

A multiplexer with N control signal spots can back up 2N inputs. For illustration, a multiplexer with 3 control signals can back up 2pow ( 3 ) = 8 inputs.

Get quality help now
Marrie pro writer
Marrie pro writer
checked Verified writer
star star star star 5 (204)

“ She followed all my directions. It was really easy to contact her and respond very fast as well. ”

avatar avatar avatar
+84 relevant experts are online
Hire writer

A 4 input Multiplexer with 2 control signal wires

An 8 input Multiplexer with 3 control signal wires

A 16 input Multiplexer with 4 control wires

Program Counter

The Program Counter is a registry construction which contains the reference arrow value of the current direction. For each rhythm the value at the arrow is read into the direction decipherer and the plan counter is updated to indicate to the following direction.

Direction Decoder:

The Instruction Decoder performs the map that it reads the following direction in from memory and sends the constituent pieces of that direction to the necessary finishs.

Get to Know The Price Estimate For Your Paper
Topic
Number of pages
Email Invalid email

By clicking “Check Writers’ Offers”, you agree to our terms of service and privacy policy. We’ll occasionally send you promo and account related email

"You must agree to out terms of services and privacy policy"
Write my paper

You won’t be charged yet!

They are of two types:

RISC Instruction Decoder

The RISC direction decipherer is a simple device because RISC direction words areof fixed length and the places of the Fieldss are fixed. We can decrypt an direction, hence, by merely dividing the machine word into little parts utilizing wire pieces.

CISC Instruction Decoder

A CISC decipherer is set up as a province machine. The machine reads the opcode field to find the type of direction and reference of the other information values. The direction word is read in portion by portion and determinations are made at each phase to find how the balance of the direction word will be read.

Register File

A registry file is a set of registries and a decipherer. The registry file requires an reference and a information input.

The other constituents required are memory unit, ALU, FPU stands for drifting point unit and control unit.

Microcontroller:

A microcontroller ( besides microcomputer, MCU or AµC ) is a little computing machine on a individual incorporate circuit dwelling internally of a comparatively simple CPU, clock, timers, I/O ports and memory. Program memory in the signifier of NOR flash or OTP ROM is besides frequently included on bit, every bit good as a typically little sum of RAM. Microcontrollers are designed for little or dedicated applications.

Differences Between Microprocessor And Microcontroller:

Microprocessor = CPU

Microcontroller = CPU+ peripherals + memory

Peripherals = ports + clock + timers + ADC convertors +LCD drivers

Memory = SRAM +EEPROM+ EPROM + flash

A microcontroller has a combination of all the above explained properties whereas a microprocessor is merely a CPU.

Examples of microprocessors are 8085 and 8086. The followers is the pin diagram of 8086 microprocessor:

Examples of microcontrollers are 8254, 8279, 8255, 8259.

Microprocessor Based Control Of Traffic Lights

Introduction

Now about all the traffic light systems operate on a timing mechanism that changes the visible radiations after a given clip interval. An machine-controlled traffic visible radiation system senses the presence or absence of vehicles and reacts consequently. An machine-controlled or intelligent traffic system detects traffic in many different ways. Current traffic systems react to gesture to trip the light alterations. When the infrared object sensor picks up the presence of a vehicle, a switch causes the visible radiations to alter. In order to carry through this, algorithms are used to regulate the actions of the traffic system. The traffic signal system consists of three of import parts. The first portion is the accountant, which represents the encephalon of the traffic system. It consists of a computing machine that controls the choice and timing of traffic motions in conformity to the changing demands of traffic signal as registered to the accountant unit by detectors. The 2nd portion is the signal visual image or in simple words is signal face. Signal faces are portion of a signal caput provided for commanding traffic in a individual way and consist of one or more signal subdivisions. These normally comprise of solid ruddy, xanthous and green visible radiations. The 3rd portion is the sensor or detector. The detector or sensor is a device to bespeak the presence of vehicles. One of the engineerings, which are used today, consists of wire cringles placed in the paving at intersections. They are activated by the alteration of electrical induction caused by a vehicle passing over or standing over the wire cringle.

Experimental Agreement:

In order to implement the Intelligent Traffic Signal Simulator, one needs to setup and piece the hardware constituents and compose a plan to command the intelligent traffic signal simulator. The layout of the Intelligent Traffic Signal Simulator is displayed in Figure 1. The blocks, which are labeled N1, N2, N3, E1, E2, E3, S1 and W1 are the infrared object sensors.

Hardware constituents:

The traffic visible radiation system consists of four of import constituents: the accountant which is taken every bit encephalon to the system, the detectors which detect the presence of vehicles, the light breathing rectifying tubes ( LED ) which act as the actuator and the countdown timers which is displayed in Lab VIEW. BASIC STAMP 2 ( BS2 ) is used as the microcontroller of the traffic signal. The BS2, which needs to be plugged to the Board of Education ( BoE ) , is

straight attached to the computing machine in order to plan it. The wiring for the end product and input signals is done from this board. Figure 2 shows the Board of Education to which a 9V DC power is supplied. There is besides a DB9 connection, that is connected to the COM port of computing machine utilizing RS-232 consecutive overseas telegram, for BS2 scheduling and consecutive communicating during run-time. Following to the BS2, there is a bread board. The bread board has many strips of Cu, which run underneath the board in a horizontal manner. These strips connect the sockets to each other. As for the infrared object sensor, SHARP GP2D15 is used. The detector undertaking is to observe the presence of vehicles. It is working continuously by giving a logic 0 when there are no vehicles and logic 1 when there are vehicles present. Therefore, they can observe the length of the waiting line depending on where they are placed. Each sensor has a JST connection lodging slot and three crimped wires to utilize in the JST connection. The connections are plugged into the appropriate lodging slot and into the sensor. The light breathing rectifying tubes are used in order to demo the traffic visible radiation altering harmonizing to the plan. The LED visible radiation will alter harmonizing to end product by the microcontroller. In each lane, there are three LEDs harmonizing to traffic visible radiations colourss which consist of ruddy, xanthous and green. Furthermore, two inverters were used in order to link the end product of green and ruddy LEDs

together. Therefore, when the viridity LED is ON so the red LED will be OFF and vice-versa. Figure 3 shows the connexion of the input and end product ports to detectors and LEDs. The BS2 microcontroller has 16 Input and Output ports. The ports were divided into 8 input and 8 end product ports. The end product ports, which are from P0 to P7, give either logic 0 or 1 to the LEDs. The input ports, which are from P8 to P15, receive input signal from the detectors.

Software simulation:

After the hardware had been setup, a plan written in the BASIC scheduling

linguistic communication in the BASIC STAMP editor is downloaded into the microcontroller. The simulation of the algorithm of the traffic signal system was done utilizing MATLAB package. The countdown timer interfacing harmonizing to the traffic system utilizing Lab VIEW package is created utilizing the BNC Adapter and the Data Acquisition Card ( DAQ ) device. The Lab VIEW scheduling is done in the diagram utilizing graphical beginning codification. In the block diagram the plan runs from left to compensate. If the viridity

Fig. 1: Intelligent traffic signal simulator layout

Fig. 2: Board of Education

Fig. 3: Connection of the input and end product ports to detectors and LEDs

Fig. 4: Traffic signal sequence

visible radiation in the traffic theoretical account does non light, the system goes into default since there is no input into the system. The signal from the detector is acquired through the DAQ, which is connected, to the computing machine.

Using 8085 to Design:

The hardware of the system consists of two parts. The first portion is Microprocessor based system with 8085. Microprocessor as CPU and the peripheral devices like EPROM, RAM, Keyboard & A ; Display Controller 8279, Programmable as Peripheral Interface 8255, 26 pin parallel port connection, 21 keys Hexa cardinal tablet and six figure of seven section LED 's.

The 2nd portion is the traffic light accountant interface board, which consist of 36 LED 's in which 20 LED 's are used for vehicle traffic and they are connected to 20 port lines of 8255 through Buffer. Staying LED 's are used for prosaic traffic. The traffic light interface board is connected to Main board utilizing 26 nucleus level overseas telegrams to 26-pin Port connection. The LED 's can be switched ON/OFF in the specified sequence by the Microprocessor.

8085

Central processing unit

Latch

8255

PPI

26 pin port connection

26 pin port connection

Buffer

AD0-AD7

A0-A7

26 pin

FRC overseas telegram

D0-D7

System Bus

Erasable programmable read-only memory

Random-access memory

8279

keyboard

Display

Accountant

Anode driver

Decoder

Keyboard

Cathode driver

Display

Fig 1: Block diagram of Traffic Light Controller

Consequence and Decision:

The traffic signal operation will get down by the traffic visible radiations lighting in ruddy for 1 2nd in all waies. Then the traffic signals will get down illuminating in the clockwise way of the magnet compass. This means that it will get down operating in the North lane, so East lane, so South lane, so West lane and goes back to North lane.

Updated: May 19, 2021
Cite this page

Microprocessor Based Control Of Traffic Lights Computer Science Essay. (2020, Jun 02). Retrieved from https://studymoose.com/microprocessor-based-control-of-traffic-lights-computer-science-new-essay

Microprocessor Based Control Of Traffic Lights Computer Science Essay essay
Live chat  with support 24/7

👋 Hi! I’m your smart assistant Amy!

Don’t know where to start? Type your requirements and I’ll connect you to an academic expert within 3 minutes.

get help with your assignment