LED traffic light
I put three LEDs on a breadboard, red, yellow and green, and an Arduino lights them up in order.
The first time I tried it all three came on together, because I had put the waiting line in the wrong place. I found it by reading my code line by line. Then I changed the timings so the yellow one stays on for less time, which is how the real ones work.
- Arduino
- LED
- Breadboard