Learn how to use the GPIO pins on your Raspberry Pi to interface with electronic components, such as LEDs and PIRs.
Know how wire a variety of components to the Raspberry Pi
Know how to interact with a variety of components using Python
For day 13 you will need to use this project from the Raspberry Pi website. Just follow along with all the steps and you will be good to go!
https://projects.raspberrypi.org/en/projects/physical-computing
Steps Used Day 12
Making Traffic Lights
In the Slack Channel
Share any new insights or learning from today. If you added something new please share with photos and code
Attempt at least one of the following three challenges on your own and share to Slack a video of your lights, buttons, and/or buzzer
Feel free to do them all!
If you get stuck, then please reach out and I will help. For this one I am not providing an example answer, but I can send it to you if you need it. Let's see how you do first!
Now try creating the full traffic lights sequence:
Green on
Amber on
Red on
Red and amber on
Green on
Be sure to turn the correct lights on and off at the right time, and make sure you use "Sleep" to time the sequence perfectly.
Try adding the button for a pedestrian crossing. The button should move the lights to red (not immediately), and give the pedestrians time to cross before moving back to green until the button is pressed again.
Now try adding a buzzer to beep quickly to indicate that it is safe to cross, for the benefit of visually impaired pedestrians