Question: Q 9 . Design a traffic light controller for the T - shaped intersection where East Campus Loop deadends into Holdrege St ( Currently there

Q9. Design a traffic light controller for the T-shaped intersection where East Campus Loop deadends into Holdrege St (Currently there is no traffic light there).
Two sensors are placed on Holdrege: one pointing at cars on the side going east, and the other at cars going west. Another sensor is placed on East Campus Loop, pointing at cars headed south. If a car is present where a sensor is pointing, the output of the sensor equals 1 ; if not, sensor output equals 0.
The controller you design takes the input from these three sensors and outputs a 2-bit code. The higher bit of 1 indicates a greenlight on Holdrege (assume no turns, traffic flows east and west only; and 0 indicates red). The lower bit of 1 indicate a greenlight on East Campus Loop (all traffic either turns right or left; and 0 indicates red)
1. If there are no cars present on either street, both traffic lights should be red.
2. If there are cars on either street, the light for the respective street should be turned green.
3. If there are cars on both streets, preference is given to Holdrege for a green light.
4. At any time, the lights cannot be simultaneously green on both streets.
This is a typical real world design problem. Draw a situational diagram to enhance the understanding of the problem first.
(a) Construct a truth table for the control logic. (5 pts)
(b) Develop a simulation program in LabVIEW to verify your logic. (5 pts)
Simulation of Traffic Lights
Sensor 1 at Holdredge (Pointing at cars going east)
Sensor 2 at Holdredge (Pointing at cars going west)
Lights for Holdredge
Light for east campus loop
Q 9 . Design a traffic light controller for the T

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!