Introduction: LED Traffic Light Using Arduino

Picture of 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

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

Comments

ShwetankAmbasht (author)2014-11-10

Good to see it.

thanks sir.

MsSweetSatisfaction (author)2014-11-09

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.

About This Instructable

746views

11favorites

License:

Bio: i m cool
Add instructable to: