Project Files of ESP32 Exhaust Fan with SHT40, SSR-25DA and ACS712 - Proteus Simulation
389abaa002154089b23bf8fe1bd8bd16.zip

ESP32 Exhaust Fan with SHT40, SSR-25DA and ACS712 - Proteus Simulation V1.0
ESP32 Exhaust Fan with SHT40, SSR-25DA and ACS712 - Proteus Simulation V1.0 comes as a ZIP archive of 21 files (4.0 MB, 8.7 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-Exhaust-Fan-SHT40-SSR-25DA-ACS712-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (an ESP32 DevKit V1, an SHT40 humidity sensor, an SSR-25DA solid-state relay, an ACS712 current sensor, a 120 mm 230 V AC fan, the Laptop and Mobile WiFi Monitors), the Arduino sketch ESP32_Exhaust_Fan.ino and its HEX, every LIB and DLL and a README.
File Structure
9.6 KB19.2 KB15.8 KB36.6 KB39.5 KB13.1 KB14.2 KB14.8 KB291 KB318 KB3.0 MB324 KB301.5 KB31.5 KB76.3 KB291 KB318 KB3.0 MB324 KB301.5 KB10.8 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in ESP32 Exhaust Fan with SHT40, SSR-25DA and ACS712 - Proteus Simulation. Open an image for its full size.












README
===============================================================================================================
ESP32 Exhaust Fan with SHT40, SSR-25DA and ACS712 - 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-exhaust-fan-sht40-ssr-25da-acs712-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
SHT40 humidity sensor:
https://www.theengineeringprojects.com/2026/12/sht40-humidity-sensor-library-for-proteus.html
SSR-25DA solid-state relay:
https://www.theengineeringprojects.com/2026/11/ssr-25da-solid-state-relay-library-for-proteus.html
ACS712 current sensor:
https://www.theengineeringprojects.com/2026/11/acs712-current-sensor-library-for-proteus.html
120 mm 230 V AC fan:
https://www.theengineeringprojects.com/2026/11/120mm-230v-ac-fan-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-Exhaust-Fan-TEP-v1.0/
|-- Proteus Library Files/
| |-- TEPACFAN120.LIB 19.2 KB a part of the project -> LIBRARY folder
| |-- TEPACS712.LIB 15.8 KB a part of the project -> LIBRARY folder
| |-- TEPESP32V1.LIB 36.6 KB a part of the project -> LIBRARY folder
| |-- TEPLAPTOP.LIB 39.5 KB a part of the project -> LIBRARY folder
| |-- TEPMOBILE.LIB 13.1 KB a part of the project -> LIBRARY folder
| |-- TEPSHT40.LIB 14.2 KB a part of the project -> LIBRARY folder
| |-- TEPSSR25DA.LIB 14.8 KB a part of the project -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPACFAN120.DLL 291.0 KB a model -> MODELS folder
| |-- TEPACS712.DLL 318.0 KB a model -> MODELS folder
| |-- TEPNET.DLL 3.01 MB a model -> MODELS folder
| |-- TEPSHT40.DLL 324.0 KB a model -> MODELS folder
| |-- TEPSSR25DA.DLL 301.5 KB a model -> MODELS folder
|-- Proteus Simulation/
| |-- ESP32_Exhaust_Fan.hex 76.3 KB the firmware U1 runs
| |-- ESP32-Exhaust-Fan.pdsprj 31.5 KB the project simulation
| |-- TEPACFAN120.DLL 291.0 KB copy of the model
| |-- TEPACS712.DLL 318.0 KB copy of the model
| |-- TEPNET.DLL 3.01 MB copy of the model
| |-- TEPSHT40.DLL 324.0 KB copy of the model
| |-- TEPSSR25DA.DLL 301.5 KB copy of the model
|-- Arduino Code/
| |-- ESP32_Exhaust_Fan/ESP32_Exhaust_Fan.ino 9.6 KB the sketch (source of the .hex)
|-- README.txt ~11.0 KB this file
Total: 8.71 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
A smart bathroom exhaust fan. A shower fills the room with steam; the fan should start by itself, run until the
air is dry again, and - because it is a 230 V motor in the ceiling that nobody watches - notice when it is not
really turning. An ESP32 reads the humidity from an SHT40, switches the mains fan with an SSR-25DA solid-state
relay, and checks the fan's current with an ACS712: no current means a broken wire or a dead relay, too much
current means jammed blades - and a jammed fan is switched off before its winding cooks.
* U1 ESP32 DEVKIT V1 runs ESP32_Exhaust_Fan.hex on TEP-WiFi at 192.168.1.101.
* U2 an SHT40 board (SHT40TEP, 0x44, PROFILE STEADY 23 C / 50 %): I2C on D21 (SDA) / D22 (SCL), VIN +3.3V; its
pop-up chips change the air (Demo air, T +1 / -1 C, RH +5 / -5 %).
* V1 Proteus's ALTERNATOR: the mains, 325 V peak (230 V RMS), 50 Hz, on the net L; its - is the earthed neutral.
* U4 an ACS712 board, the 5 A chip (CURRENTACS712TEP, 185 mV/A): IP+ on L, IP- to the relay (the net LS); VCC
5 V from the DevKit's VIN, OUT on D34, GND.
* U3 an SSR-25DA (SSRDA25TEP): T1 on LS, T2 to the fan (the net LOAD); IN+ on D26, IN- to GND.
* M1 a 120 mm 230 V AC fan (FAN120ACTEP) as the exhaust fan: L on LOAD, N on the neutral.
* Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.101/.
What the sketch does:
the air every second one SHT40 measurement: the command 0xFD, 10 ms, six bytes - the temperature and the
humidity, each with a CRC-8 (polynomial 0x31) that is checked; RH = -6 + 125 x raw / 65535
the fan AUTO: ON at 70 % RH or more; under 60 % it runs on for 10 s (a real fan: 5 - 15 minutes), then
OFF - the band keeps it from hunting. BOOST from the dashboard runs it for 30 s.
the relay D26 HIGH drives the SSR's input (about 6 mA); the relay switches at the mains' next zero crossing
and lets go at the next zero of the fan's current
the current twice a second, 40 ms (two mains cycles) of ADC samples on D34; the RMS against the zero measured
at the start with the fan off, / 185 mV/A
the checks 5 s after a start the fan's normal current is learned; then less than 0.05 A = NO CURRENT, more
than 1.2 x normal = BLOCKED - the relay goes off and stays off until RESET; current while the relay
is off = a relay stuck on
Its pages:
/ the dashboard with the links Refresh, BOOST and RESET; the humidity, the fan, its current
/data JSON: the humidity, the temperature, the fan and why, the current and the normal current, the fault
Libraries: WiFi, WebServer and Wire (part of the ESP32 core).
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 relay's pop-up captures every turn-on and turn-off, the fan's gives its speed and current):
- 2.34 s READY - 50.0 % RH, 23.0 C; the ACS712's zero 3110.3 counts = 2.506 V; with no current the RMS reads about
0.02 A (the ADC's own noise), the relay holds 230 V off with 1.5 mA of leakage.
- A shower (RH +5 % x 5: 75 %): 8.35 s FAN ON (humid). The relay turned on at the mains' zero crossing, 8.1 ms after
its input (12.1 V across it at that moment); the fan STARTING: 1876 RPM, 0.135 A.
- 13.40 s running normally: 0.118 A learned - the fan at 2642 RPM, 0.115 A, 18.9 W, 160 m3/h.
- The air dry (RH -5 % x 4: 55 %): 17.35 s run-on 10 s; 27.35 s FAN OFF (dry) - the relay let go at the current's
zero (-14 mA), the fan coasting.
- BOOST from the phone at 31.63 s: FAN ON 32.35 s, 0.118 A learned again at 37.39 s.
- The blades blocked at 38.6 s (the fan's pop-up): 38.88 s FAULT: BLOCKED - 0.156 A (1.32 x normal), the relay off
and the fan stopped. Free air and RESET from the laptop at 42.63 s: the fault cleared, the fan ready again.
- 46.9 s of simulation in 430 s.
- Our first run learned the "normal" current the instant the fan started (0.135 A, the start current): the check
used a time taken before the relay switched, and the unsigned difference wrapped round; a fresh millis() now.
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 SSR to check that the parts are there.
RUN THE SIMULATION
1. Open "Proteus Simulation\ESP32-Exhaust-Fan.pdsprj". Keep ESP32_Exhaust_Fan.hex and the DLL files beside it.
2. Press Play. Click U2 for the SHT40's pop-up and press RH +5 % five times: a shower - the fan starts. Click M1
for the fan, U3 for the relay (the turn-on at the zero crossing) and U4 for the current.
3. Press RH -5 % four times: the run-on, then OFF. Open the Laptop or the Mobile WiFi Monitor (Go): BOOST - then
press Blades blocked on the fan's pop-up: FAULT BLOCKED; Free air and RESET.
PROPERTIES USED IN THIS PROJECT
U1 ESP32 DEVKIT V1 PROGRAM=ESP32_Exhaust_Fan.hex
U2 SHT40TEP ADDRESS=0x44, PROFILE=STEADY, TEMP=23.0, HUMIDITY=50 (DEMO is a whole shower in 7 s)
U4 CURRENTACS712TEP RANGE=5A (OFFSET left at 8 mV: the sketch measures its own zero)
U3 SSRDA25TEP, M1 FAN120ACTEP (no properties)
V1 ALTERNATOR AMP=325V, FREQ=50Hz
PC1, MOB1 HOMEPAGE=http://192.168.1.101/
TROUBLESHOOTING
* The fan never starts: the SSR's input must see 3 V or more (D26 HIGH) and IN- on GND; the humidity must reach
70 %.
* NO CURRENT at every start: the ACS712 must be in the line (L to IP+, IP- to the relay) and its OUT on D34.
* A false BLOCKED: the normal current is learned 5 s after the start - a fan that is still speeding up then (a
dusty filter, a low voltage) needs a longer LEARN_MS.
* Real hardware: mains wiring is dangerous - an enclosure, a fuse, an earthed heatsink on the SSR above about 5 A;
the ACS712's OUT swings up to 5 V - add a divider before an ESP32 pin; a bathroom needs splash-proof parts.
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 Exhaust Fan with SHT40, SSR-25DA and ACS712 - 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 389abaa002154089b23bf8fe1bd8bd16.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-Exhaust-Fan-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move TEPACFAN120.LIB, TEPACS712.LIB and TEPESP32V1.LIB and 4 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 TEPACFAN120.DLL, TEPACS712.DLL and TEPNET.DLL and 2 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_Exhaust_Fan.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_Exhaust_Fan.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open ESP32-Exhaust-Fan.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 Exhaust Fan with SHT40, SSR-25DA and ACS712 - 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 Exhaust Fan with SHT40, SSR-25DA and ACS712 - 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 Exhaust Fan with SHT40, SSR-25DA and ACS712 - Proteus Simulation V1.0 comes as a ZIP archive of 21 files (4.0 MB, 8.7 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 21 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, 2ec242ab491fd654a9831126d1b8842d18f838809d7fe1e2fd831c1ecbfc4619. In PowerShell run Get-FileHash "389abaa002154089b23bf8fe1bd8bd16.zip"; on macOS or Linux run shasum -a 256 "389abaa002154089b23bf8fe1bd8bd16.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
- 4 Dec 2026Uploaded at
2ec242ab491fd654a9831126d1b8842d18f838809d7fe1e2fd831c1ecbfc4619






















Comments
0