This Arduino traffic light project was created by me on a day off, purely for fun and entertainment.
π’ after the green light flashes, the π‘ yellow light on, further π΄ red lights up, red goes out, π‘ yellow light up, π’ green again.
| Signal | Before signal | Time seconds | Note |
|---|---|---|---|
| π’ | 7 | ||
| π’ | π‘ | 1 | blink x 3 |
| π‘ | π΄ | 2 | |
| π΄ | π‘ | 10 | |
| π‘ | π’ | 1 |
+---------+ +---------+ +---------+
| start |-->| R, Y, G |-->| |setup| |
+---------+ +---------+ +---------+
|
|<--------+
V |
*------* |
| true | |
*------* ^
| |
V |
+---------+ |
| R.on | |
| R.light | |
| R.off | |
| Y.on | ^
| Y.light | |
| Y.off | |
| G.on | |
| G.light | |
| G.blink | |
| G.off | |
| Y.on | |
| Y.light | |
| Y.off | |
+---------+ |
| ^
V |
+-------->+
| Component | Quantity | Note |
|---|---|---|
| Arduino Uno | 1 | |
| Red LED | 1 | |
| Yellow LED | 1 | |
| Green LED | 1 | |
| Resistor | 3 | 150β¦ |


