ELI5: How do traffic lights know when a car is waiting?
Some traffic lights just run on a fixed timer, but many respond to traffic. The most common ways they detect a car are:
Induction loops. Look for rectangular or diamond-shaped cut lines in the road just before the stop line. Under there is a loop of wire with electricity running through it, creating a magnetic field. When a big lump of metal (your car) sits over it, the field changes, and the controller registers a waiting vehicle. This is why stopping right on the line matters, and why bikes and motorbikes sometimes don't get detected.
Cameras. A camera on the signal pole can watch defined zones of the road and spot when a vehicle is in them.
Radar or other sensors. Some intersections use small radar units that can see approaching traffic and even estimate speed.
Push buttons. For pedestrians, the button sends a request to the controller. At some crossings it's needed to get a walk signal; at others the walk phase happens on every cycle anyway, and the button does little at certain times of day.
The controller then follows rules: minimum green times, maximum waits, and coordination with nearby lights so traffic flows in waves along a main road. Emergency vehicles and buses can sometimes get priority too.
Is there a light near you that never seems to notice you? Did you know about the loop lines in the road before?
Comments · 3
Many use loops of wire cut into the road. A car's metal changes the magnetic field in the loop, which the controller reads as "a car is here".
Cameras are also used now. A computer vision program watches the lane and counts cars, similar to how a program detects objects in a photo.
That explains why the light never turns green when I'm late and always turns green when I'm early. Clearly it knows.