Skip to main content

Single Lane — Double Set with Delay

This project simulates a single lane road controlled by two sets of traffic lights  exactly as seen at roadworks or narrow bridges. Unlike the crossroads in Project 2, both sets of lights go red simultaneously for three seconds between each direction change. This safety gap allows vehicles already on the road to clear before oncoming traffic is released. The project introduces a reusable allRed() function in the Arduino code, showing how functions can encapsulate repeated logic an important principle in both programming and engineering. It also demonstrates how a small change to code, with no change to hardware, can represent a significant real-world safety improvement.

Technologies:
View Project