LED Traffic Light Using Arduino

Introduction: LED Traffic Light Using Arduino

About: i m cool

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....

Be the First to Share

    Recommendations

    • Microcontroller Contest

      Microcontroller Contest
    • Automation Contest

      Automation Contest
    • Make it Glow Contest

      Make it Glow Contest

    4 Comments

    0
    vsharma23
    vsharma23

    Reply 6 years ago

    thanks sir.

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

    0
    vsharma23
    vsharma23

    Reply 6 years ago

    Thanks for your comment.