Introduction: Smart Street and Traffic Light Control System Using Arduino

This project is a smart street and traffic light system using Arduino. It helps save electricity by turning on street lights only when it's dark and when someone is nearby. It also controls traffic lights based on movement, instead of staying on all the time. The goal is to make roads safer and more energy-efficient using simple sensors and automation.


Made By: Youssef Abdelghaffar & Youssef Khalifa

Supplies

Electronics:

  1. 1x Arduino UNO
  2. 2x IR Sensors
  3. 1x LDR Sensor
  4. 2x Red LEDs
  5. 2x Yellow LEDs
  6. 2x Green LEDs
  7. 4x Orange LEDs
  8. Breadboard
  9. Jumper Wires (Male-Male & Female-Male)

Build & Decoration:

  1. Cardboard
  2. Paint (Black/White/Yellow)
  3. Cutter/Scissors
  4. Paper
  5. Glue Gun

Step 1: Analyze Circuit Diagram

Analyze the circuit Diagram an get a clear view on the circuit

Step 2: Test on Breadboard With Code

connect The LEDs and the sensors to the breadboard and the arduino to check if the code and the sensors are working and here are the pins:

Traffic light 1 -->

  1. green led 1: pin 11
  2. yellow led 1: pin 13
  3. red led 1: pin 9

Traffic light 2 -->

  1. green led 2: pin 8
  2. yellow led 2: pin 12
  3. red led 2: pin 10

Street light pins -->

  1. Infrared sensor 1: pin 7 (at the beginning of the street to check movement)
  2. Infrared sensor 2: pin 6 (at the end of the street to check if a car is coming from the opposite direction or Leaving)
  3. LEDs: pin 5 (Note: all the LEDs for the street light art connected in one pin because they operate as one lamp.)
  4. LDR sensor: pin 4 (to check if there is sunlight or not)

And Here is the code below

Attachments

Step 3: Making the Design

Use your scissors/cutter to cut cardboard and paper to build the mini street and use more wires to extend the LEDs and sensors and attach them to the mini street build. and finally paint it all to get the beautiful street look and building that you want.

Step 4: The End

And there you have it the smart road. all automatic, functional without any human/manual interaction.