3-LED traffic light that cycles Red → Green → Yellow on a timed loop.
A timed traffic light system using three LEDs to simulate a real intersection. Demonstrates control of multiple output pins in sequence and real-world system logic.
- Arduino Uno
- 1x Red LED
- 1x Yellow LED
- 1x Green LED
- 3x 220Ω resistors
- Breadboard + jumper wires
| Component | Arduino Pin |
|---|---|
| Red LED (+) | Pin 13 |
| Yellow LED (+) | Pin 11 |
| Green LED (+) | Pin 9 |
| All LED (-) | GND via 220Ω resistors |
| Light | Duration |
|---|---|
| Red | 5 seconds |
| Green | 5 seconds |
| Yellow | 1 second |
- Controlling multiple output pins simultaneously
- Sequential state logic
- Real-world system simulation