ESP32 Traffic Light Controller


Pupose of this project was to replace the Raspberry Pi traffic light controller (Traffic Pi) that I had created. Problem with using a Raspberry Pi for projects like this is that the operating system has to be constantly updated. In addition, Pis are known for having issues when they are not properly shut down.


To reduce the risk of having an unexpected failure, I decided to change replace the Pi with a controller that ran on an ESP32. Microcontrollers are less likely to fail as they do not have the same flaws as a Raspberry Pi. That main flaw with a Raspberry Pi is that they have been known to corrupt the SD cards when a power failure occurs.

This project is used to tech students about software development, electrical engineering, and STEM.


  • C++
  • ESP32

Components Used

  • ESP32-WROOM-32
  • breadboard wires
  • 4-channel mechanical relay board
  • 14 gauge wire
  • Econolite 12 inch traffic signal