Assignment 1 - M4
Assignment 1 - M4
Grading Scheme
100
Grading Scheme
Question Earned Points Max. Points Question Earned Points Max. Points
1 15 5 10
2 20
3 30
4 25
In the normal case without congestion, the each traffic light switches its state
from ON to OFF every 50 seconds (50,000 milliseconds). Represent each
traffic light with 2 LEDs (green and red). If traffic light 1 is green, traffic light
2 is red and vice versa.
If a pedestrian wants to cross the street of a traffic light that is green, then
he/she must press on a push button to indicate that. Each traffic light will have
CE362: Microprocessor Systems and Interfacing
2
its push button for pedestrians. When pushed, the lights on both traffic lights
are switched from green to red and red to green immediately if more than 25
seconds have passed for the green traffic light. If not, then when 25 seconds
are complete the traffic lights will switch. That reduces the time the
pedestrians have to wait to cross the street.
a) Use the below template to conduct the procedure you will follow for
solving the question. PI6a (Develop and conduct an experimental procedure)
b) Given the list of variables and components you have collected from the
question, design a flow chart for the code with all its different scenarios.
Using a table, place the three scenarios of normal mode, congestion mode,
and pedestrian’s requests to cross the street in table explicitly stating all
the changes that occur on the circuit including the serial monitor. PI6b
(Analyze and interpret data collected from the experiment.)
c) Explain how this code can benefit the community and mention how you
think we can expand this project to further benefit environmental and