Tag: automatic street light ESP32

1 articles found.

ESP32 Smart Street Light with Fault Detection - Proteus Simulation

ESP32 Smart Street Light with Fault Detection - Proteus Simulation: an ESP32, an LDR, three PIR sensors and three LED street lamps with MOSFET drivers

Hello friends, I hope you all are doing great. Today, I am going to share the ESP32 Smart Street Light with Fault Detection - Proteus Simulation, project 109 of our IoT Projects series. Street lights burn a lot of energy for empty roads, and a broken lamp can stay dark for weeks before anyone reports it. A smart street light fixes both: it switches on at dusk, stays dim while nobody is around, brightens where someone walks, and reports a lamp that has failed. It is one of the most searched student projects, and here is a complete one with the circuit, the ESP32 code and a Proteus simulation in which a whole night passes. The street has three LED lamps, real 1 W power LEDs driven by IRLZ44N MOSFETs from the ESP32's PWM pins. An LDR module tells the ESP32 when it gets dark, and a PIR motion sensor at each lamp tells it where someone is moving. At night every lamp glows at 20 %; where someone moves, that lamp and its neighbours go to 100 % for ten seconds. A 1 ohm resistor under each lamp turns its current into a voltage the ESP32 measures, so a lamp that is switched on but draws no current is reported as FAULTY, on the serial monitor and on a web dashboard. In this tutorial, we will go through the circuit, the LDR, the PIRs, the MOSFET drivers, the current measurement and the code. Then we run a night with passers-by and a broken lamp in the simulation. At the end, you can download the project with the sketch and every library file. NOTICE: Our team has put a lot of effort into ...