Traffic lights in this country follow this sequence:
This is a 4 way traffic light system with a pedestrian crossing control.
Can you work out the sequencing?
In real life, the lights would sense whether there are pedestrians or cars waiting and only change to green if they are.
The 2 way traffic light at road works are simpler. One set of lights at each end of the works. Here is flow diagram of the settings.
Why is there 5 seconds when both lights are red?
Here is a two way traffic light system in Scratch
Can you make your own version?
allows pedestrians to control the lights. It also uses sensors to ensure the lights do not change when there are no pedestrians waiting to cross.
Watch the video and inputs (sensors) are needed for this to work.
Draw a flow diagram to show the sequencing.