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....
4 Comments
7 years ago on Introduction
Good to see it.
Reply 7 years ago
thanks sir.
7 years ago on Introduction
So this sounds cool but it looks like your top image isn't working. You might want to try reuploading it.
Reply 7 years ago
Thanks for your comment.