Concept Flow - Traffic light controller FSM
Start: Reset
State: Green Light
Timer expires?
No→Stay Green
Yes
State: Yellow Light
Timer expires?
No→Stay Yellow
Yes
State: Red Light
Timer expires?
No→Stay Red
↩Back to Green Light
The traffic light FSM cycles through Green, Yellow, and Red states, each lasting a set time before moving to the next.