Hacker News front pageby Grady Hillhouse, Grady Hillhouse9 min readintermediate
How do Traffic Signals Work (2019)
Summary
A high‑level overview of how traffic signals are designed and operated: basic phases, timing rules, actuated detection, coordination between adjacent lights, and emerging adaptive‑control systems that use centralized data and ML. The piece stays at the level of civil‑engineering concepts and does not dive into implementation details relevant to software engineers.
- Signal phases are grouped (e.g., protected left turns) using ring‑and‑barrier diagrams to avoid conflicts.
- Timing rules: green must clear the queue, yellow ≈ 1 s per 10 mph, and a brief all‑red clearance interval prevents gridlock.
- Actuated control uses inductive loops, cameras, or radars to adjust phase lengths on‑the‑fly based on real‑time detection.
- Signal coordination (green‑wave) aligns adjacent lights to let vehicle platoons travel without stopping, but works only on corridors with few interruptions.
Understanding traffic‑signal logic is useful for engineers building smart‑city, IoT, or autonomous‑vehicle systems, where you may need to interface with or simulate these control loops, or assess security implications of centralized traffic management.
4/10

