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.

Комментарии • 2

  • @AaronKraftCreative
    @AaronKraftCreative 4 года назад

    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.

    • @electricalworkshop851
      @electricalworkshop851  4 года назад

      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.