https://github.com/blackbirdcoder/trafficlight
Arduino project, simple traffic light
https://github.com/blackbirdcoder/trafficlight
arduino cpp led pet-project
Last synced: about 2 months ago
JSON representation
Arduino project, simple traffic light
- Host: GitHub
- URL: https://github.com/blackbirdcoder/trafficlight
- Owner: blackbirdcoder
- Created: 2025-03-20T16:07:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-20T16:20:20.000Z (over 1 year ago)
- Last Synced: 2025-03-28T11:18:46.002Z (about 1 year ago)
- Topics: arduino, cpp, led, pet-project
- Language: C++
- Homepage:
- Size: 12.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Traffic light
This Arduino traffic light project was created by me on a day off, purely for fun and entertainment.
## Traffic light logic
🟢 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 |
+-------->+
```
## Materials
|Component |Quantity|Note|
|-----------|:------:|:--:|
|Arduino Uno|1 | |
|Red LED |1 | |
|Yellow LED |1 | |
|Green LED |1 | |
|Resistor |3 |150Ω|
## Prototyping

## Mounting

## Demo
