Traffic Light System With Pedestrian Crossing Lights




About: My work is my Introduction.My website:-

Hi ! My name is Sourabh Kumar and i am a part time tech. blogger at We Observed and 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

Website:- Andro Root

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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.

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:


  • 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

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 "" -Traffic Lights with pedestrian crossing

By Sourabh Kumar @ */

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


// flash the ped green for

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


digitalWrite(greenled, HIGH);


digitalWrite(greenled, LOW);



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

digitalWrite(pedredled, LOW);// off

digitalWrite(redled, HIGH); // red on

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


// flash the green for

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


digitalWrite(pedgreenled, HIGH);


digitalWrite(pedgreenled, LOW);



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

digitalWrite(yellowled, HIGH);

digitalWrite(pedredled, HIGH);


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

digitalWrite(pedgreenled, LOW);


Step 5: Final Result

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 We Observed's Facebook Page and if you have any confusion please use the comment section.

Thank you.

1 Person Made This Project!


  • Made with Math Contest

    Made with Math Contest
  • Multi-Discipline Contest

    Multi-Discipline Contest
  • Robotics Contest

    Robotics Contest



5 months ago on Step 4

Kenapa saya selalu gagal saat mengcompile padahal sudah saya samakan program nya