Project Files of ESP32 Smart Street Light with Fault Detection - Proteus Simulation
98fc307b06434623a95e80878e43058f.zip

ESP32 Smart Street Light with Fault Detection - Proteus Simulation V1.0
ESP32 Smart Street Light with Fault Detection - Proteus Simulation V1.0 comes as a ZIP archive of 30 files (5.2 MB, 11.9 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware.
- LIBProteus library
- DLLProteus model
- DSNProteus simulation
- INOArduino sketch
- HEXHEX firmware
Description
ESP32-Smart-Street-Light-Fault-Detection-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (an ESP32 DevKit V1, an LDR module, three PIR sensors, three 1 W power LEDs with IRLZ44N drivers and power resistors, a slide switch, the Laptop and Mobile WiFi Monitors), the Arduino sketch ESP32_Street_Light.ino and its HEX, every LIB and DLL and a README.
File Structure
8.3 KB36.6 KB391.6 KB39.5 KB289.8 KB13.1 KB17.9 KB16.2 KB157.2 KB306.9 KB13.2 KB400 KB420 KB3.0 MB295 KB298 KB304.5 KB311 KB276.5 KB47 KB68.6 KB400 KB420 KB3.0 MB295 KB298 KB304.5 KB311 KB276.5 KB10.8 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in ESP32 Smart Street Light with Fault Detection - Proteus Simulation. Open an image for its full size.












README
===============================================================================================================
ESP32 Smart Street Light with Fault Detection - Proteus Simulation - Project V1.0
The Engineering Projects - www.TheEngineeringProjects.com
===============================================================================================================
IMPORTANT LINKS
The project tutorial (circuit, code, simulation results):
https://www.theengineeringprojects.com/2026/12/esp32-smart-street-light-fault-detection-proteus-simulation.html
The libraries this project is built from (each post has its own full download and tutorial):
ESP32 DevKit V1 board:
https://www.theengineeringprojects.com/2026/10/esp32-devkit-v1-library-for-proteus-v2-0.html
LDR light sensor:
https://www.theengineeringprojects.com/2026/10/ldr-sensor-library-for-proteus.html
PIR motion sensor HC-SR501:
https://www.theengineeringprojects.com/2026/10/pir-sensor-library-for-proteus-v4-0.html
Power LEDs:
https://www.theengineeringprojects.com/2026/11/power-led-library-for-proteus.html
N-MOSFETs (IRLZ44N):
https://www.theengineeringprojects.com/2026/11/n-mosfet-library-for-proteus.html
Power resistors:
https://www.theengineeringprojects.com/2026/11/power-resistor-library-for-proteus.html
Slide switch:
https://www.theengineeringprojects.com/2026/11/slide-switch-library-for-proteus.html
Resistors:
https://www.theengineeringprojects.com/2026/11/resistor-library-for-proteus.html
Laptop WiFi Monitor:
https://www.theengineeringprojects.com/2026/10/laptop-wifi-monitor-library-for-proteus.html
Mobile WiFi Monitor:
https://www.theengineeringprojects.com/2026/10/mobile-wifi-monitor-library-for-proteus.html
Support our free work: https://www.theengineeringprojects.com/donate
FILE STRUCTURE
ESP32-Street-Light-TEP-v1.0/
|-- Proteus Library Files/
| |-- TEPESP32V1.LIB 36.6 KB a part of the project -> LIBRARY folder
| |-- TEPHCSR501.LIB 391.6 KB a part of the project -> LIBRARY folder
| |-- TEPLAPTOP.LIB 39.5 KB a part of the project -> LIBRARY folder
| |-- TEPLDR.LIB 289.8 KB a part of the project -> LIBRARY folder
| |-- TEPMOBILE.LIB 13.1 KB a part of the project -> LIBRARY folder
| |-- TEPNMOS.LIB 17.9 KB a part of the project -> LIBRARY folder
| |-- TEPPOWERLED.LIB 16.2 KB a part of the project -> LIBRARY folder
| |-- TEPPOWERRES.LIB 157.2 KB a part of the project -> LIBRARY folder
| |-- TEPRESISTOR.LIB 306.9 KB a part of the project -> LIBRARY folder
| |-- TEPSLIDE.LIB 13.2 KB a part of the project -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPHCSR501.DLL 400.0 KB a model -> MODELS folder
| |-- TEPLDR.DLL 420.0 KB a model -> MODELS folder
| |-- TEPNET.DLL 3.01 MB a model -> MODELS folder
| |-- TEPNMOS.DLL 295.0 KB a model -> MODELS folder
| |-- TEPPOWERLED.DLL 298.0 KB a model -> MODELS folder
| |-- TEPPOWERRES.DLL 304.5 KB a model -> MODELS folder
| |-- TEPRESISTOR.DLL 311.0 KB a model -> MODELS folder
| |-- TEPSLIDE.DLL 276.5 KB a model -> MODELS folder
|-- Proteus Simulation/
| |-- ESP32_Street_Light.hex 68.6 KB the firmware U1 runs
| |-- ESP32-Street-Light.pdsprj 47.0 KB the project simulation
| |-- TEPHCSR501.DLL 400.0 KB copy of the model
| |-- TEPLDR.DLL 420.0 KB copy of the model
| |-- TEPNET.DLL 3.01 MB copy of the model
| |-- TEPNMOS.DLL 295.0 KB copy of the model
| |-- TEPPOWERLED.DLL 298.0 KB copy of the model
| |-- TEPPOWERRES.DLL 304.5 KB copy of the model
| |-- TEPRESISTOR.DLL 311.0 KB copy of the model
| |-- TEPSLIDE.DLL 276.5 KB copy of the model
|-- Arduino Code/
| |-- ESP32_Street_Light/ESP32_Street_Light.ino 8.3 KB the sketch (source of the .hex)
|-- README.txt ~10.2 KB this file
Total: 11.91 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
A street that saves energy and reports its own broken lamps: three LED street lamps are off by day, dimmed at night
and go to full brightness where someone moves; each lamp's current is measured, so a lamp that should glow but
draws nothing is reported as FAULTY - on the serial monitor and on a web dashboard.
* U1 ESP32 DEVKIT V1 runs ESP32_Street_Light.hex on TEP-WiFi at 192.168.1.101; VIN on the VCC rail.
* U2 an LDR light sensor module (LDRADVTEP) on +3.3V: A0 on D34 - the voltage rises in the dark.
* U3 / U4 / U5 HC-SR501 PIR motion sensors (HCSR501ADVTEP) on the 5 V rail, OUT on D25 / D26 / D27 - one at each
lamp.
* D1 / D2 / D3 the lamps: 1 W white power LEDs (POWERLED1WWHITETEP) from +5V through R1 / R2 / R3 (4.7 ohm 5 W,
RESISTORPOWER5WTEP) to the drains of Q1 / Q2 / Q3 (IRLZ44NTEP logic-level N-MOSFETs, gates on D18 / D19 / D21 - a
500 Hz PWM); the sources through R4 / R5 / R6 (1 ohm 5 W) to ground; the voltages on R4 - R6 (1 V = 1 A) on D32 /
D33 / D35.
* SW1 a slide switch (SWITCHSLIDETEP) in lamp 3's gate wire, R7 (10 k) holding the gate low when the wire is cut -
the way to test the fault detection.
* Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.101/.
What the sketch does (every 200 ms):
day / night NIGHT when the LDR passes 2.0 V, DAY again below 1.5 V (hysteresis: no flicker at dusk)
the lamps off by day; at night DIM 20 %; motion at a lamp: that lamp and its neighbours at 100 % for 10 s
the current the highest of 32 readings of each 1 ohm resistor, spread over more than one PWM period
the faults a lamp switched on with less than 50 mA for 3 s is FAULTY; more than 100 mA again: working again
the energy the lamps' power from their duty, against all three at full power all night: the saving in %
Its pages:
/ the dashboard: Refresh, AUTO, ALL ON / ALL OFF; day or night, each lamp's level, current, motions
and faults, the energy and the saving
/data JSON: the same
TEST STATUS
Tested in Proteus 8 Professional on Windows 11, the run that made the tutorial's screenshots (the times are the
sketch's clock; the LDR's and the PIRs' pop-ups set the scene, each power LED's pop-up gives its current):
- 0.0 s READY by day: the LDR's A0 at 0.43 V (300 lux), the lamps off.
- 6.2 s NIGHT (the LDR at 3.00 V, 0.2 lux): the lamps at 20 % - 63.7 mA average on lamp 1's pop-up, the sketch
reading 0.319 A in the PWM's on-time; 80 % saved against full power.
- 8.8 s MOTION at lamp 1: lamps 1 and 2 at 100 % (322 mA, 90 lm); 11.0 s MOTION at lamp 3: all three at 100 %.
- SW1 flipped (lamp 3's drive wire cut): 16.0 s LAMP 3 FAULTY - on at 100 % but 0.000 A (the LED dark, 10 pA).
SW1 back: 17.8 s LAMP 3 working again - 0.319 A.
- 18.8 s DAY (the LDR's Indoor light, 0.43 V): the lamps off. 23.0 s of simulation in 657 s.
- Our first runs: the power resistors' value '4R7 5W' read as 10 ohm (a plain '4R7' / '1R0' now); SW1 in the lamp's
own 0.32 A wire stopped the simulation at the flip - the slide switch is rated for 300 mA, so it now cuts the
gate wire, R7 holding the gate low.
INSTALLATION
1. Close Proteus. Extract the WHOLE zip file, for example to your Desktop.
2. Copy the files from "Proteus Library Files" into the LIBRARY folder of Proteus, for example
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
3. Copy the files from "Proteus Model Files" into the MODELS folder (next to LIBRARY).
4. Start Proteus. Press P in the schematic and search for ESP32 DEVKIT V1 or POWERLED to check that the parts are
there.
RUN THE SIMULATION
1. Open "Proteus Simulation\ESP32-Street-Light.pdsprj". Keep ESP32_Street_Light.hex and the DLL files beside it.
2. Press Play: by day the lamps stay off. Click U2 for the LDR's pop-up and press Night: the lamps come on dimmed.
3. Click a PIR (U3 - U5) and press Walk in: its lamp and the neighbours go to full brightness.
4. Click SW1 and press Flip: lamp 3's drive wire is cut - 3 s later LAMP 3 FAULTY. Flip it back to mend it.
5. Open the Laptop or the Mobile WiFi Monitor (Go): AUTO, ALL ON, ALL OFF.
PROPERTIES USED IN THIS PROJECT
U1 ESP32 DEVKIT V1 PROGRAM=ESP32_Street_Light.hex
U2 LDRADVTEP, U3 - U5 HCSR501ADVTEP (no changes)
D1 - D3 POWERLED1WWHITETEP (heatsink NONE)
R1 - R3 RESISTORPOWER5WTEP 4R7; R4 - R6 RESISTORPOWER5WTEP 1R0
Q1 - Q3 IRLZ44NTEP, SW1 SWITCHSLIDETEP (no properties)
R7 RESISTOR4BANDTEP 10k
PC1, MOB1 HOMEPAGE=http://192.168.1.101/
TROUBLESHOOTING
* The lamps come on by day: the LDR's A0 is above 2.0 V - more light on it, or raise NIGHT_V.
* A lamp is reported FAULTY although it glows: its sense resistor must be 1 ohm (1 V = 1 A) on the right ADC pin.
* The lamps flicker at dusk: the two thresholds (2.0 V / 1.5 V) give the hysteresis - keep them apart.
* Real hardware: a real street lamp is a mains LED driver - switch it with a relay or use a dimmable driver with a
0-10 V or PWM input; measure its current with a current sensor (ACS712, INA219) or the driver's fault output;
the ESP32's ADC is not very accurate near 0 V - the 50 mA threshold leaves room.
LICENCES
* The project, the sketch, the parts (LIB files) and the models (DLL files) are made by The Engineering Projects
and are free for learning and for your own projects. The models use only standard Windows libraries.
The C++ source code of the models is not included; the source code is not included for any model.
* The .hex file is built with the TEP Boards for Proteus.
* Proteus is a product of Labcenter Electronics and is not included. ESP32 is a product of Espressif Systems. This
project is not made or endorsed by them.
VERSION
V1.0 - the first release of the project.
===============================================================================================================Development1 release
-
V1.0ESP32 Smart Street Light with Fault Detection - Proteus Simulation V1.0this page
V1.0 is the only release in the Download Center so far. When a newer version is published, it appears above with its own download page.
Installation8 steps
From the download to a working project, in order. The steps follow what the package contains.
You will need
- Proteus Design SuiteProteus 8 or newer (Labcenter), on Windows
- Arduino IDE1.8 or 2.x, with the board of the tutorial chosen under Tools → Board
- Any archive toolWindows, macOS and Linux extract ZIP files on their own
Steps
- 1
Extract the archive
Right-click 98fc307b06434623a95e80878e43058f.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (ESP32-Street-Light-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move TEPESP32V1.LIB, TEPHCSR501.LIB and TEPLAPTOP.LIB and 7 more and the files into the LIBRARY folder of your Proteus installation: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY for Proteus 8, or the matching Proteus 7 folder. Older versions keep it under ProgramData\Labcenter Electronics. If Proteus is open, close it first.
- 3
Add the simulation model
Copy TEPHCSR501.DLL, TEPLDR.DLL and TEPNET.DLL and 5 more into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.
- 4
Restart Proteus and place the component
Start Proteus, open a schematic, press P (Pick Devices) and search for the component by the name used in the tutorial. It appears with its pins ready to wire.
- 5
Open the sketch in the Arduino IDE
Open ESP32_Street_Light.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.
- 6
Load the HEX file
In Proteus double-click the microcontroller, set Program File to ESP32_Street_Light.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open ESP32-Street-Light.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.
- 8
Follow the tutorial
ESP32 Smart Street Light with Fault Detection - Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.
FAQs9 questionsContact TEP
How do I download ESP32 Smart Street Light with Fault Detection - Proteus Simulation V1.0?
Wait for the 30-second guest countdown on this page, then press the download button; the file comes straight from our storage. Members who are logged in skip the wait. If the browser opens the file instead of saving it, use its Save as option. The download link is made for you when the countdown ends and works for 15 minutes; a saved or shared link stops working, so share this page instead.
What is inside the archive?
ESP32 Smart Street Light with Fault Detection - Proteus Simulation V1.0 comes as a ZIP archive of 30 files (5.2 MB, 11.9 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware. Open the File Structure tab for the full list of 30 files.
What should I do if the download does not start?
Check the browser's download list first; an ad blocker or a company firewall can also hold it back, so try another browser or network. If the file arrives incomplete, download it again. For an installation problem, read the Install tab or tell us in the comments with your software version and the exact error message.
Is this file free?
Yes. Every file in the TEP Download Center is free for learning, personal and student projects. If you share it, link back to this page or the tutorial so others find the latest version.
How do I check that the file arrived complete?
Compare its SHA-256 with the one on this page, 8f9fc81b02ae8cebf2dee7b38f58df4a6185a96e341066181b56628c24f06f76. In PowerShell run Get-FileHash "98fc307b06434623a95e80878e43058f.zip"; on macOS or Linux run shasum -a 256 "98fc307b06434623a95e80878e43058f.zip". The same value means the file is exactly the one in our storage; a different one means the download broke off, so download it again.
Do I need WinRAR to open the ZIP file?
No. Windows, macOS and Linux open ZIP archives on their own (Extract All, or double-click). WinRAR and 7-Zip work too. Extract the whole archive before using the files.
Where do I put the LIB and IDX files?
Both files go into the LIBRARY folder of your Proteus installation (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY; Proteus 7 has the same folder under its own name). Restart Proteus afterwards and search for the component with P.
Which Proteus version does the library need?
The tutorial names the Proteus version the library was made and tested with. Most TEP libraries work in Proteus 7 and Proteus 8; if the component does not appear after a restart, check that both the LIB and the IDX file were copied and that Proteus was fully closed while copying.
How do I get the HEX file into the simulation?
Compile the sketch in the Arduino IDE (Sketch → Export Compiled Binary gives you the HEX next to the sketch), then in Proteus double-click the board, set Program File to that HEX and run.
Members skip the wait. Log in or join TEP.
- 0Total downloads
- 4%Popularity
- ESP32 ProjectsCategory
- 0Comments
- ssyedzainnasirUploaded by
- 6 Dec 2026Uploaded at
8f9fc81b02ae8cebf2dee7b38f58df4a6185a96e341066181b56628c24f06f76






















Comments
0