IoT-Based Automatic Street Light Controller Using ESP32
Introduction
This system uses ESP32 modules to control street lights through a centralized IoT server.
Each street light is equipped with an ESP32 which connects to the same Wi-Fi network.
A central server or cloud dashboard sends commands to all street light control unit.
For Full Project:
https://electronicsworkshops.com/iot-based-automatic-street-light-controller-using-esp32/
Bill Of materials
1) ESP32 (one per light or per group)
2) Wi-Fi router (for network)
3) LED driver / MOSFET controlled by ESP32 PWM pin
4) Server (local Node-RED / cloud MQTT / Firebase / custom backend
5) LED PWM controlled
Working Principle
The IoT-based automatic street light controller using an ESP32 works by connecting each street light to a common Wi-Fi network, where a central server sends commands to control the lights. The ESP32 in each light receives these commands—such as ON, OFF, or brightness level—through MQTT or HTTP communication. Based on the command, the ESP32 activates its output pin to switch the light ON/OFF through a relay or MOSFET, and adjusts brightness using PWM signals to control dimming smoothly. This allows all street lights to be centrally managed in real time without any sensors, enabling efficient, remote, and programmable control of the entire lighting network.
Circuit Diagram
24 volt Led Driver Circuit
This 24V LED driver circuit uses a MOSFET-based switching stage controlled by a dedicated LED driver IC (U1) to regulate current through the LED load. The 24V supply is filtered using multiple capacitors (C4, C5, C7, C9) for stability, while an inductor (L1) and Schottky diode (D3) form the buck-converter output stage that drives the LED string. The driver IC senses LED current through the low-value resistor R10 and adjusts the MOSFET (Q1) gate accordingly to maintain constant current. Additional components—including soft-start and enable pins, compensation capacitors, and input filters—ensure stable operation, controlled startup, and proper current regulation. The result is a smooth, efficient, and protected constant-current LED driver suitable for 24V lighting applications.

22 volt to 3.3 volt converter
This 22V-to-3.3V converter circuit uses the TPS54331 buck regulator (U2) to step the 22V input down to a stable 3.3V output. The input voltage is filtered by C13 and C18 before entering the regulator, while the high-frequency switching occurs at the PH pin, driving the inductor L1 to store and release energy for voltage conversion. The diode D1 provides a freewheeling path for inductor current during switching transitions. Output capacitors C10 and C11 smooth the 3.3V output, and the feedback divider formed by R4 and R5 sets the output voltage by feeding a scaled version of it into the VSENSE pin. The soft-start capacitor C12 controls the ramp-up speed of the regulator, and the compensation network (R7, C19, C20) connected to the COMP pin stabilizes the control loop. Overall, this circuit efficiently steps 22V down to 3.3V with good regulation and low ripple.

PCB Diagram

3D View

Application
This project is used for smart street-light management in cities, highways, industrial zones, campuses, and residential communities where centralized and energy-efficient lighting control is required. By connecting every street light through Wi-Fi and controlling them from a server, it enables remote ON/OFF switching, scheduled operation, brightness dimming, and real-time monitoring, significantly reducing energy consumption and maintenance costs. It is ideal for modern smart-city infrastructure, solar street-light automation, industrial lighting networks, parking lots, and any outdoor lighting system that benefits from remote control, automation, and intelligent power management.
Conclusion
The IoT-based automatic street light controller using ESP32 provides an efficient, modern, and scalable solution for smart lighting management. By enabling centralized server-based control along with PWM brightness adjustment, the system eliminates the need for local sensors while ensuring precise and flexible operation. Its Wi-Fi connectivity allows real-time monitoring, scheduling, and remote command execution, making it suitable for large lighting networks. Overall, the project demonstrates a reliable, energy-saving, and technologically advanced approach to street light automation, contributing to improved urban infrastructure and smarter city development.
For Full Project:
https://electronicsworkshops.com/iot-based-automatic-street-light-controller-using-esp32/
IoT-Based Automatic Street Light Controller Using ESP32
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Rabin Poudel
-
Flood Detection and warning system using LORA and Arduino
IntroductionFloods are one of the most devastating natural disasters, causing immense damage to life...
-
DIY LED Decoration Tiny Star PCB Project
IntroductionThe Tiny Star PCB is a small and fun DIY electronics project that is perfect for hobbyis...
-
Simple and Cheap Clap Switch Circuit
IntroductionThe Simple and Cheap Clap Switch Circuit is a practical and fun DIY electronics project ...
-
Arduino-based Mist Maker and Hand Dryer
IntroductionIn today’s world, automation and hygiene have become essential, especially in public pla...
-
MPL3115A2 Barometric Pressure, Altitude, and Temperature Sensor
IntroductionThe MPL3115A2 is a highly accurate, low-power digital barometric pressure sensor from NX...
-
E-Speaker Using ESP32
IntroductionThe E-Speaker is a smart, portable, and versatile audio system built using the ESP32 mic...
-
Heart Rate Monitor Circuit Using Photoplethysmography (PPG)
IntroductionHeart rate is a vital physiological parameter that reflects the health and fitness of an...
-
Automated Greenhouse Control System using ESP32
IntroductionAn automated greenhouse control system leverages technology to optimize plant growth con...
-
STD CH330N USB to Serial Converter 5V
IntroductionThe CH330N is a versatile USB-to-serial converter chip that simplifies interfacing betwe...
-
KY-032 Obstacle avoidance sensor module
IntroductionIntroduction to Obstacle Avoidance SensorsObstacle avoidance sensors are essential compo...
-
BC547 BASED WATER LEVEL INDICATOR
IntroductionA water level indicator using a BC547 transistor is a simple and effective electronic pr...
-
How to Design Own Arduino Wifi shield PCB
OverviewArduino wifi shield connects the Arduino with a wifi chip through the serial communication p...
-
DIY Air Quality Tester
OverviewIn this project “DIY Air Quality Tester” we use Node MCU microcontroller and air quality sen...
-
Digital Clock Using Arduino
OverviewIn this project, “Digital clock using Arduino” we will make a PCB board for digital clock an...
-
Bluetooth Controlled car using Arduino
OverviewA Bluetooth Controlled Car Using Arduino is a fascinating DIY project that involves building...
-
IoT-Based Automatic Street Light Controller Using ESP32
IntroductionThis system uses ESP32 modules to control street lights through a centralized IoT server...
-
SEPIC DC-DC Converter Using the MT3608 Boost IC
IntroductionModern electronic design must prioritize effective and adaptable power management, parti...
-
Audio Peak Detector using LMV358
IntroductionAn Audio Peak Detector is an essential circuit in audio signal processing that identifie...
-
-
AEL-2011 Power Supply Module
510 0 2 -
AEL-2011 50W Power Amplifier
465 0 2 -
-
-
Custom Mechanical Keyboard
687 0 0 -
Tester for Touch Screen Digitizer without using microcontroller
319 2 2 -
Audio reactive glow LED wristband/bracelet with NFC / RFID-Tags
304 0 1 -
-
-







