Sometimes you need a project that can really motivate you to go—or in this case, also slow down and stop. Today we’ve got just such a creation thanks to maker and developer Riley Hutton. With the help of an ESP32 microcontroller, he’s managed to modify adecommissioned traffic lightso that anyone can control it remotely from a web browser.
According to Hutton, the project began as a decorative light piece for his dorm room at University. The idea was to make it web-controlled so that other students could check it out and activate the lights from a webpage. After it was completed, however, Hutton decided to release the project to the world by posting a link to a livestream video of the traffic light over atReddit. This was met with great success and thousands of visitors visited the website to interact with the salvaged hardware.
We took the opportunity to reach out to Hutton who shared more details about the project and its creation. Hutton confirmed that at one point, the website had over 12,000 visitors and 100 people trying to change the light at once. This was enough to blow the green light, forcing a rapid repair. The traffic lights will change instantaneously but there is a 3 to 4 second delay in the video feed.
You can view the livestream and control the traffic lights via the embedded content below.
Trying to control a traffic light can be tricky, especially if you haven’t tinkered with one before. Hutton explained that he found a transformer behind each bulb that’s used to step down the UK mains outlet 230V power to a modest 12V AC. To control these transformers, he’s using solid state relays instead of mechanical relays as they silently operate (although we do love the click of a mechanical relay.)
Hutton chose the ESP32 after using the ESP8266 in a myriad of projects. The ESP32 has a faster clock speed, providing extra bandwidth for the many users attempting to DDOS a traffic light. Programming the ESP32 was made possible via theArduinoIDE, Hutton also took the opportunity to add an OLED display for debug purposes.We know what you are thinking. “Could aRaspberry Pi Pico Wdo the same job?” The answer is yes, and theRaspberry Pi Pico 2could also do a great job, you’ll just need tohack Wi-Fi onto it… with an ESP32!
Get Tom’s Hardware’s best news and in-depth reviews, straight to your inbox.
If you want to see this project in action, you’re able to check it out over atRiley Hutton’s website. Hutton will be a guest on a future episode of our show, The Pi Cast.We also recommend perusing our list ofbest Raspberry Pi projectsfor more cool creations from the maker community.
Ash Hill is a contributing writer for Tom’s Hardware with a wealth of experience in the hobby electronics, 3D printing and PCs. She manages the Pi projects of the month and much of our daily Raspberry Pi reporting while also finding the best coupons and deals on all tech.