We need to design a traffic controller for a 4-way intersection, managed by stop lights.
- The main road traffic is east west
-The minor road traffic is north south
-The main road traffic will flow continuously until any car appears at the intersection on the minor road.
-When a car comes to the intersection on the minor road, a switch is closed, and the minor road traffic is allowed to pass through the intersection for some time before the main road traffic is again allowed to flow.
-The green light for the minor road must be on for at least 20 seconds to allow one car to pass through the intersection.
-For safety, the yellow light (in for both directions) must be on for a minimum of 10 seconds
How would we create a state table with the requirements above? Once we can get started on this part then we can do the rest of the project with ease. Please help us on getting a truth table started with present state and next state incorporating flip flops as well.
Thank you