Smart Street and Traffic Light Control System Using Arduino

by Youssef Abdelghaffar in Circuits > Arduino

54 Views, 1 Favorites, 0 Comments

Smart Street and Traffic Light Control System Using Arduino

IMG_20250520_105334.jpg

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

Analyze Circuit Diagram

Screenshot 2025-05-20 08.08.57.png

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

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

Downloads

Making the Design

IMG_20250517_132437_146.jpg
IMG_20250517_145341_953.jpg
IMG_20250517_140651_243.jpg
IMG_20250517_152315_210.jpg

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.

The End

IMG_20250520_105334.jpg
IMG_20250520_105329.jpg

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