Physical Computing Assignment 1
Traffic Light Simulator (Live Demo)
This project is an interactive traffic light simulator designed with six LEDs representing two sets of traffic lights (2× red, 2× yellow, 2× green). The system is controlled using two buttons:
Button 1 – Normal Operation:
Each press advances the lights through a coordinated sequence where one direction is active while the other stays on red.
Sequence: ------------------------------ | Light 1 | Light 2 | ------------------------------ | Red | Red | Default Start | Green | Red | Press 1 | Yellow | Red | Press 2 | Red | Red | Press 3 | Red | Green | Press 4 | Red | Yellow | Press 5 | Red | Red | Press 6 ------------------------------
...and the cycle repeats.
Button 2 – Fault Mode:
Activates a “faulty light” mode where both sets of yellow lights blink simultaneously.
While in fault mode, Button 1 is disabled (the traffic light sequence cannot be changed).
Pressing Button 2 again exits fault mode and resumes normal operation.
This project was created in my first year of study as an introduction to physical computing, digital logic, and state management. It demonstrates how simple input devices (buttons) can be used to control multiple outputs (LED traffic lights) through programmed logic.














