Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

Close

Arduino: a standalone pedestrian semaphore V0.5 (code variations) | Electronics Lab

Arduino: a standalone pedestrian semaphore V0.5 (code variations)
Version 1 - Last update: Oct 17, 2015

Introducing Arduino: a simplified standalone pedestrian semaphore.

Suppose there is a standalone pedestrian crossing (unconnected to a junction). RYB traffic lights regulate vehicles traffic and RG traffic lights regulate pedestrian traffic. There is the pedestrian crossing button available on the pedestrian RG traffic lights. After this button is pressed the following cycle is started:
-on all vehicles RYB traffic lights Yellow light is switched on and Green light is switched off (Yellow light is active for a while, e.g. 10 s),
-after 10 s Red light on all vehicles RYB traffic lights is switched on and Yellow light is switched off,
-after 10 s (while it is Red on all traffic lights) Green traffic lights on pedestrian RG traffic lights is switched on,
-after 90 s Green traffic lights on pedestrian RG traffic lights are switched off and Red traffic lights are switched on,
-after 10 s Yellow lights on all vehicles RYB traffic lights are switched on and Red lights are switched off,
-after 10 s Green lights on all vehicles RYB traffic lights are switched on and Yellow lights are switched off,

There is a push-button switch on a breadboard. Arduino checks if the button is pressed. Then it takes appropriate action. (In this exercise it started and execute a sequence for a standalone pedestrian semaphore.)

There are 5 LEDs simulating RYG traffic lights for motorized traffic and 2 LEDs simulating RG traffic lights for pedestrian traffic.

Comments disabled