Question: You are asked to build a smart traffic intersection controller using an ESP 3 2 - S 3 , sensors , and actuators. The system
You are asked to build a smart traffic intersection controller using an ESPS sensors and
actuators. The system controls an intersection between two oneway roads and a train track using
two traffic lights as shown below:
B
A
Term Louai AlAwami
COE Intro. to Smart Systems
When there is no train passing through the intersection, the two traffic lights take turns switching
between green and red as usual. Only one traffic light should be green at any given time. The ratio
of time duration of the green light at every intersection can be set using a potentiometer, where
each traffic light can take a duration in the interval seconds. The total duration both lights
are green is s Before turning red from green, the orange light should be on for seconds after
the green duration is completed.
When a train approaches the intersection, both traffic lights stay red from seconds. A special
warning light also starts flashing use the builtin LED Use a push button to simulate the train
approaching the intersection. Also use a buzzer to simulate train sound J
Bonus: Generate a changing train sound buzzer and flashlight builtin LEDusing PWM
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
