๐ ๏ธ The final project: a traffic light
Section 12: Pro projectsLesson 12.4 ยท โฑ 15 min
๐ฏ Project goal
Three buttons and three LEDs (red, yellow and green), each LED with its own resistor, and each button lights only its own LED.


- Draw the plan on paper: button โ resistor โ LED, three times.
- All the branches from + and to โ.
- Try each button on its own.
- A bigger challenge: make it work by itself with the 555 (an idea for pros).
๐ฅ๏ธ What happens on the stage?
The lab's solution passed the challenge: each button lit only its own LED.
๐ Another example: a traffic light with a switch for each colour
Instead of buttons: three switches, so a colour stays on by itself with no pressing.

โ๏ธ Practise
Build the traffic light.
โ๏ธ Practise here in the lessonโ Close the labor open the lab in a new page โ
๐ฏ Challenge yourself
Easy
Make only the red light up.
๐ Show the solution๐ Hide the solution

Result: red: stop.
Medium
A pedestrian light: a red button and a green button. Press the green.
๐ Show the solution๐ Hide the solution

Result: only the green.
Hard
Add a buzzer on the green's path itself, so someone who can't see knows the road is open.
๐ Show the solution๐ Hide the solution

Result: green light and sound.

