Traffic Light

About the Project

For this project, there was a clear state diagram that was followed, which can be seen in the state diagram pictured above. The goal was to create the logic of a traffic light, considering the standard functionality of a red, yellow, and green traffic light, a left turn arrow if cars were waiting, and a pedestrian walk light stating when it was safe to walk or not. Lighting up specific parts of the 7-segment display would show these features and can be found in the 7-segment picture above.

An example of the standard red, yellow, and green traffic lights is shown in the provided video. The video starts by showing that our internal clock is at 8 seconds and is counting down. Once 0 seconds is reached, we will change states from our north and southbound lights, going from a state of red to green. While the east and westbound lights need to change state from green to yellow to red. The east and west lights will hold a state of yellow for 6 seconds before switching to red. The north and south lights will continue to have a form of red until the east and westbound lights are red for a full 2 seconds. Then, the north and southbound lights can change to green, as shown in the video and state diagram.

Skills Used
Video demonstration
Project Images

Get in Touch!