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 ESP32-S3, sensors, and
actuators. The system controls an intersection between two one-way roads and a train track using
two traffic lights as shown below:
B
A
Term 241 Louai Al-Awami 16-09-2024
COE 515 Intro. to Smart Systems 2
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 [10,20] seconds. The total duration both lights
are green is 30s. Before turning red from green, the orange light should be on for 3 seconds after
the green duration is completed.
When a train approaches the intersection, both traffic lights stay red from 15 seconds. A special
warning light also starts flashing (use the built-in 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 (built-in LED)using PWM.

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 Programming Questions!