In this lab session we'll build a puffin crossing. Complete
all of the following tasks.
- Basic traffic light
Using the available components (or the
Wokwi simulator) create a single traffic
light for cars (green, yellow, red). Run this traffic light controller in
an endless loop.
- Pedestrian crossing
Add a button for a pedestrian to press. Implement a handler function
that should be called when the button is pressed. Make the button handler
interrupt the regular program execution by triggering an interrupt request.
Modify your original traffic light such that, when the button was pressed,
the red light will light up longer. In addition, add a green light for
- Dealing with visually impaired people
Add a buzzer to the system that helps visually impaired people to cross
the street safely.