A realistic Traffic Signal Control System built using a Moore State Machine model. The system simulates real-world traffic light behavior with proper state transitions and a live countdown timer for each signal phase.
π https://trafficcontrol-sigma.vercel.app/
- π₯ Realistic traffic signal simulation (RED / YELLOW / GREEN)
- π Moore State Machine based logic for smooth state transitions
- β±οΈ Live countdown timer for each signal state
- π Current state display (e.g., S0 - RED)
- β‘ Fast and responsive UI
- βοΈ Deployed on Vercel
The system uses a Moore Machine, where the output depends only on the current state. Each state represents a traffic signal condition:
| State | Signal | Description |
|---|---|---|
| S0 | π΄ RED | Vehicles stopped |
| S1 | π‘ YELLOW | Ready to go |
| S2 | π’ GREEN | Vehicles moving |
The timer automatically counts down and transitions to the next state.
- HTML / CSS / JavaScript
- Moore State Machine Logic
- Vercel (Deployment)
git clone https://github.com/samin-developer/Traffic-control-system.git
cd Traffic-control-system
# open index.html in browser