LED Traffic Light Using Arduino

784

11

4

Posted

Introduction: LED Traffic Light Using Arduino

Make Led traffic light using Arduino uno.

Step 1: Parts Required

1. Arduino UNO
2. 3 pc. LED (red, green, yellow)
3. Breadborad
4. Wire jumper

Step 2: Hardware Connection

Connet Your anrduino with led as shown in figure.

Step 3: Programming

Copy and paste this code to Arduino programming software on pc.

int green = 10;
int amber = 11;
int red = 12;

void setup(){
pinMode (green,OUTPUT);
pinMode(amber,OUTPUT);
pinMode(red,OUTPUT);
}


void loop()
{
digitalWrite(green,HIGH);
delay(1000);
digitalWrite(green,LOW);
digitalWrite(amber,HIGH);
delay(1000);
digitalWrite(amber,LOW);
digitalWrite(red,HIGH);
delay(1000);
digitalWrite(red,LOW);
}

Step 4: Help

For help and support comment.
or message me on fb www.fb/vikash.shm
or add on whatsapp +918877027447
....Thanks....

Share

    Recommendations

    • Microcontroller Contest

      Microcontroller Contest
    • Spotless Contest

      Spotless Contest
    • Science of Cooking

      Science of Cooking
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    4 Comments

    So this sounds cool but it looks like your top image isn't working. You might want to try reuploading it.

    Thanks for your comment.