Traffic Lights
Introduction:
Traffic lights are great for developing sequencing skills. Let students work in pairs to create their own working traffic lights with this dinky add-on from Kitronik which can be bought here and to which you attach your microbit using small nuts/bolts:
https://www.kitronik.co.uk/5642-stopbit-traffic-light-for-bbc-microbit.html
How-to videos:
- Video 1: overview
- Video 2: coding / starter code
- Video 3: possible tasks
Note: before proceeding to the harder task shown in the above video, you might want to explore the auto-timings task shown in some starter code below.
Starter & complete code resources:
Two button starter:
https://makecode.microbit.org/_CTY8HcHD7TiU
Three options example:
https://makecode.microbit.org/_gFvVPgPWeEek
Four options example:
https://makecode.microbit.org/_5crJeC1Xocg1
Timings starter:
https://makecode.microbit.org/_7HmUeKHuwXyH
Button step through starter:
https://makecode.microbit.org/_MgaUzt8AWd4C
Button step through complete:
https://makecode.microbit.org/_55w9WwJXVPMt