Traffic Light using Arduino
HTML-код
- Опубликовано: 10 сен 2024
- If the switch button is not pressed, the red light will be on. If the switch button is pressed, then the yellow light would turn on for a quarter second, then the green light would turn on for a second.
Nice project, but traffic lights go from green to yellow to red and back to green again. This one would probably cause some serious confusion if it were actually put to work at a busy intersection.
Nice point. The button simulates the press button for pedestrians when they want to cross the road, so I did not include code that make it go from green to yellow to red.