Building a Simple Traffic Light System
Connecting components on the breadboard:
Wiring cathodes to the ground pin:
Now that you have finished preparing the components
Write the following code and start the simulation.
Building a Detection Alarm System
Add a piezo buzzer to the workplane.
Connect the ground end of the PIR Sensor to the GND pin of the micro:bit.
Now that you have finished with the connections, you can add the following code and test it.
Which component will you use to easily connect more electronic components?
Can you identify the problem with these connections?
Why do we use the resistors in the following electronic circuit?
What is the main difference between a distance sensor and a PIR sensor?
How many electronic components can you connect to the ground pin of the micro:bit board?
In all micro:bit projects, you define a function named on_forever. Explain how you use it and why it is required.
in the traffic light circuit
Examine the following circuit and its code carefully and find the problem. What do you need to do to fix it?