103 German Traffic Light State Machine

103 : German Traffic Light State Machine

Design renderSelect Project123456789ONSW2
  • Author: Jens Schleusner
  • Description: A state machine to control german traffic lights at an intersection.
  • GitHub repository
  • Clock: 1 Hz

How it works

A state machine generates signals for vehicle and pedestrian traffic lights at an intersection of a main street and a side street. A blinking yellow light for the side street is generated in the reset state.

How to test

Provide a clock, hook up LEDs and generate a reset signal to reset the intersection to all-red. If your leave the reset signal enabled, a blinking yellow light is shown for the side street.

External hardware

An additional inverter is required to generate the pedestrian red signals from the green output. Hookup your own LEDs for the signals.

IO

#InputOutput
0clockmain street red
1resetmain street yellow
2main street green
3main street pedestrian green
4side street red
5side street yellow
6side street green
7side street pedestrian green