Introduction: Traffic Light System With Pedestrian Crossing Lights

Hi ! My name is Sourabh Kumar and i am a part time tech. blogger at Andro Rootand Today i am going to Show You "How to Make a Traffic Light System with Pedestrian Crossing lights".This is very basic and Simple project We will control Led With Arduino in this project and this LED Switching Process is completely Time Based.

Traffic lights, also known as traffic signals, traffic lamps, traffic semaphore, signal lights, stop lights and (in technical parlance) traffic control signals,are signalling devices positioned at road intersections, pedestrian crossings, and other locations to control flows of traffic.I hope you all know the importance of Traffic Light System.And if you want to know more about its Working and mechanism then best way is to build a very simple and working modal at home with some basic knowledge and electric/electronics components. So today in this post i am going to show you that How To Make Traffic Light System with Pedestrian Crossing lights

.Now days Pedestrian crossing lights is also added with the normal Traffic lights so to make a up-to-date traffic light system I added two more Led for Pedestrian crossing system because traffic lights are very basic and there are many posts available on the web.I also Modified glow of led with code and i will explain it latter.

Original Post:-Traffic Light System with Pedestrian Crossing lights

Video Link:-https://youtu.be/RVa1oK9CNBQ

Website:-Andro Root

Step 1: Requirements :-

  1. Arduino UNO r3 or any other Arduino Board
  2. Breadboard/Mini Bread board
  3. 2 x Red Led
  4. 2 x Green Led
  5. 1 x Yellow Led
  6. 5 x 220ohm or 150 ohm resistors
  7. Male-to-Male jumper wires
  8. Desktop or lappy with Arduino IDE Software installed in it with some basic information about how to use it.

Video Link:-https://www.youtube.com/watch?v=RVa1oK9CNBQ

Step 2: Basic Information About Parts and Links to Buy -

Visit My Blog for Basic Information About Parts and links to Buy them Here

Traffic Light System with Pedestrian Crossing lights

Step 3:

"Important"

  • Open The Attached Circuit Image I used Red Led in Image but All leds are labled. Follow The Written Lable on the LEDs
  • Assembly is very simple in this project Just Make sure that All the short legs will be connected to the ground(GND) pin of Arduino.

Link:-Traffic Light System with Pedestrian Crossing lights

Video Link:-https://www.youtube.com/watch?v=RVa1oK9CNBQ

Step 4: Code for Arduino Board to Make Traffic Light System With Pedestrian Crossing Light:-

Download The .ino File From

Traffic Light System with Pedestrian Crossing lights

Direct Link:-Traffic Light System with Pedestrian Crossing lights.ino

/* Andro Root "www.androroot.com" -Traffic Lights with pedestrian crossing

By Sourabh Kumar @ www.androroot.com */

int greenled = 8; //Traffic light Led's and pins

int yellowled = 9;

int redled = 10;

int pedgreenled = 7;//Pedestrian crossing Led's and pins

int pedredled = 6;

void setup()

{

pinMode(greenled, OUTPUT); //Pinmodes of the leds

pinMode(yellowled, OUTPUT);

pinMode(redled, OUTPUT);

pinMode(pedredled, OUTPUT);

pinMode(pedgreenled, OUTPUT);

}

void loop()

{

digitalWrite(greenled, HIGH); //Green on for 7 seconds

digitalWrite(pedredled, HIGH); // ped red on

delay(7000);

// flash the ped green for

(int x=0; x<8; x++)

{

digitalWrite(greenled, HIGH);

delay(250);

digitalWrite(greenled, LOW);

delay(250);

}

digitalWrite(greenled, LOW); //Green off,

digitalWrite(pedredled, LOW);// ped.red off

digitalWrite(redled, HIGH); // red on

digitalWrite(pedgreenled, HIGH); // ped green on

delay(7000);

// flash the green for

(int x=0; x<10; x++)

{

digitalWrite(pedgreenled, HIGH);

delay(250);

digitalWrite(pedgreenled, LOW);

delay(250);

}

digitalWrite(redled, LOW);//red off,yellow on,ped red on,

digitalWrite(yellowled, HIGH);

digitalWrite(pedredled, HIGH);

delay(3000);

digitalWrite(yellowled, LOW);//yellow off,pedgreen off

digitalWrite(pedgreenled, LOW);

}

Step 5: Final Result

Video:-Watch The Video Here:-Traffic Light System with Pedestrian Crossing lights

Blog Page:-Traffic Light System with Pedestrian Crossing lights

I hope That After Reading and follow all the steps and guide you can make a Traffic Light System with Pedestrian Crossing lights without any difficulty. Thank you for reading And Keep Visiting.Follow us on Andro Root's Facebook Page and if you have any confusion please use the comment section.

Thank you.

Andro Root

Comments

About This Instructable

1,147views

12favorites

License:

Bio: My work is my Introduction.My website:- http://www.androroot.com
More by SKYuvraj:AndroBotHaptic Proximity Module - Cheap and EasyTraffic Light System with Pedestrian Crossing lights
Add instructable to: