Traffic Light ( Germany and Brazil )

About: arduino fan

Intro: Traffic Light ( Germany and Brazil )

Traffic light in Germany move from green to yellow, to red and the same way back. In Brazil to avoid that people start driving on the yellow and have an accident with people crossing on yellow, they move straight from red to green ...

So I wanted to simulate that in arduino

Step 1: Material

6 LEDs ( 2 green, 2 yellow, 2 red )

6 resistors 220

Arduino board

wire

Step 2: Code

Step 3: Result

Share

    Recommendations

    • Audio Contest 2018

      Audio Contest 2018
    • Furniture Contest 2018

      Furniture Contest 2018
    • Fix It! Contest

      Fix It! Contest

    2 Discussions

    0
    None
    Milen

    Tip 2 months ago

    Hi. Nice toy.

    I have small correction for Germany - before green the red and yellow are on together,

    1 reply
    0
    None
    rao003Milen

    Reply 2 months ago

    thanks, updated the files