On 9 December 1868, the first, non-electric, gas-lit traffic lights were installed outside the Houses of Parliament in London to control the traffic in Bridge Street, Great George Street and Parliament Street. They were promoted by the railway engineer J. P. Knight and constructed by the railway signal engineers of Saxby & Farmer. The design combined three semaphore arms with red and green gas lamps for night-time use, on a pillar, operated by a police constable. The gas lantern was manually turned by a traffic police officer, with a lever at its base so that the appropriate light faced traffic.
Although it was said to be successful at controlling traffic, its operational life was brief. It exploded on 2 January 1869, as a result of a leak in one of the gas lines underneath the pavement, injuring or killing the policeman who was operating it. With doubts about its safety, the concept was abandoned until electric signals became available.
The first electric traffic light was developed in 1912 by Lester Wire, a policeman in Salt Lake City, Utah, who also used red-green lights. On 5 August 1914, the American Traffic Signal Company installed a traffic signal system on the corner of East 105th Street and Euclid Avenue in Cleveland, Ohio. It had two colors, red and green, and a buzzer, based on the design of James Hoge, to provide a warning for color changes. The design by James Hoge allowed police and fire stations to control the signals in case of emergency. The first four-way, three-color traffic light was created by police officer William Potts in Detroit, Michigan in 1920. Ashville, Ohio claims to be the home of the oldest working traffic light in the United States, used at an intersection of public roads from 1932 to 1982 when it was moved to a local museum. Many pictures of historical traffic lights appear at a Traffic Signal Trivia page.
Los Angeles installed its first automated traffic signals in October 1920 at five locations on Broadway. These early signals, manufactured by the Acme Traffic Signal Co., paired “Stop” and “Go” semaphore arms with small red and green lights. Bells played the role of today's amber or yellow lights, ringing when the flags changed—a process that took five seconds. By 1923 the city had installed 31 Acme traffic control devices. The Acme semaphore traffic lights were often used in Warner Bros. Looney Tunes and Merrie Melodies cartoons for comedic effect due to their loud bell.