Skip to content

Project 2 Arduino ​

Arduino Traffic Light with Pedestrian Call ​

A simple Arduino project to simulate a traffic light with pedestrian call management.

Description ​

The project consists of a traffic light with green, yellow, and red lights for vehicles and a pedestrian signal. Pedestrians can request passage by pressing a button.

Components ​

  • 2 Green LEDs (for vehicle traffic lights)
  • 2 Yellow LEDs (optional, for vehicle traffic lights)
  • 2 Red LEDs (for vehicle traffic lights)
  • 2 White LEDs (for pedestrian traffic lights)
  • 2 Buttons (one for each side of the road)

Connection Diagram ​

Insert here a connection diagram of the components with Arduino.

Code ​

The script file is named traffic-light-with-arduino.ino

Usage ​

  1. Upload the code to Arduino.
  2. Connect the components following the diagram.
  3. Power on Arduino and observe the traffic light operation.

Contributing ​

Contributions are welcome! If you wish to improve the project, feel free to open a pull request.

License ​

Insert the project license here.

Make sure to add the connection diagram and the Arduino code in the README.md before publishing it on GitHub.