Task
We are to create a program to control a pair of traffic lights.
One light controls traffic in the East-West direction, and the other
in the North-South direction.
Hardware Setup
We need six LEDs for the program.
Fritzing schematic:
apsc160_traffic.fzz
Component | Count |
Full Size Breadboard | 1 |
LEDs (5 mm Round, Various) | 6 |
220 Ohm Resistor | 6 |
Software Implementation
traffic.ino