Introduction: Traffic lights are an essential part of road safety, controlling the flow of vehicles and pedestrians. In this project, we’ll use the Bit-Z kit and a BBC micro:bit to create a working traffic light simulation.
This is a great beginner electronics and coding project, helping you learn how to use LEDs, timing, and simple logic.
Learning Outcomes:
By the end of this project, you will:
- Understand how traffic light sequences work.
- Learn to control LEDs with the micro:bit.
- Use loops and delays to manage timing.
- Get hands-on practice with the Bit-Z.
Components Needed:
- BBC micro:bit
- Bit-Z
- Traffic Light Module
Circuit Connection:
On the Bit-Z board, we’ll connect:
Traffic Light Module with P2 Pin of the Bit-Z.
Code:
