How lights know when to change: wire loops under the road that feel cars, a computer in a box on the corner, and the green wave. This cutaway needs JavaScript.