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
Step 1: Requirements :-
- Arduino UNO r3 or any other Arduino Board
- Breadboard/Mini Bread board
- 2 x Red Led
- 2 x Green Led
- 1 x Yellow Led
- 5 x 220ohm or 150 ohm resistors
- Male-to-Male jumper wires
- Desktop or lappy with Arduino IDE Software installed in it with some basic information about how to use it.
Step 2: Basic Information About Parts and Links to Buy -
Visit My Blog for Basic Information About Parts and links to Buy them Here
Step 4: Code for Arduino Board to Make Traffic Light System With Pedestrian Crossing Light:-
Download The .ino File From
/* 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;
pinMode(greenled, OUTPUT); //Pinmodes of the leds
digitalWrite(greenled, HIGH); //Green on for 7 seconds
digitalWrite(pedredled, HIGH); // ped red on
// flash the ped green for
(int x=0; x<8; x++)
digitalWrite(greenled, LOW); //Green off,
digitalWrite(pedredled, LOW);// ped.red off
digitalWrite(redled, HIGH); // red on
digitalWrite(pedgreenled, HIGH); // ped green on
// flash the green for
(int x=0; x<10; x++)
digitalWrite(redled, LOW);//red off,yellow on,ped red on,
digitalWrite(yellowled, LOW);//yellow off,pedgreen off
Step 5: Final Result
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.
Ranga38 made it!