Project Files of IoT AC Fan Speed Controller with Raspberry Pi 5 - Proteus Simulation
5ba6598ca9534553be02cb654deb6b45.zip

IoT AC Fan Speed Controller with Raspberry Pi 5 - Proteus Simulation V1.0
IoT AC Fan Speed Controller with Raspberry Pi 5 - Proteus Simulation V1.0 comes as a ZIP archive of 144 files (14.3 MB, 28.0 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, source code and a nested archive.
- LIBProteus library
- DLLProteus model
- DSNProteus simulation
- SRCSource code
- ZIPNested archive
Description
IoT-AC-Fan-Speed-Controller-Raspberry-Pi-5-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (Raspberry Pi 5, AC dimmer module, 120 mm 230 V AC fan, NTC thermistor, ADS1115, resistor, the Laptop and Mobile WiFi Monitors), the Python program ac_fan.py, every LIB and DLL the simulation needs, the TEPPi Python runtime and a README.
File Structure
19.9 KB19.2 KB66.3 KB39.5 KB13.1 KB14.3 KB306.9 KB60.5 KB3.3 MB34.3 KB620.8 KB36 KB169.8 KB628.1 KB99.3 KB65.3 KB4.8 MB4.1 MB80 B97.8 KB26.8 KB1.2 MB1.1 MB88.9 KB27.3 KB55.8 KB79.8 KB105.8 KB193.8 KB113.8 KB48.8 KB145.8 KB36.8 KB29.3 KB42.3 KB28.8 KB67.3 KB89.3 KB153.8 KB22.8 KB38.8 KB2.1 KB9.9 KB4.1 KB1.3 KB4.7 KB431 B2.5 KB17.5 KB283 B6.5 KB37.9 KB11.1 KB5.5 KB885 B13.6 KB9 KB878 B1.5 KB4 KB1004 B10 B110 B2.6 KB1.1 KB8.9 KB58.5 KB12.4 KB6.6 KB18.5 KB20.7 KB27.8 KB21.1 KB7.1 KB7.7 KB2.7 KB51.2 KB100.9 KB1.2 KB24.3 KB7.4 KB53.6 KB26.1 KB20.5 KB60.5 KB19.6 KB1.6 KB8.4 KB20.9 KB2.6 KB539 B1.4 KB9.7 KB2.8 KB21 B92 B7.9 KB264 B3.4 KB3.8 KB17.5 KB55.2 KB3.3 KB10.8 KB1.5 KB4.2 KB7.3 KB2.5 KB32.6 KB14.5 KB283 B17.4 KB257 B691 B14.5 KB12.8 KB3.6 KB1.7 KB37 KB418 B6.2 KB7 KB37.3 KB10.6 KB23.7 KB28.7 KB8.8 KB16.9 KB296.5 KB291 KB326 KB2.9 MB288.5 KB311 KB9 KB38.7 KB296.5 KB291 KB326 KB2.9 MB288.5 KB311 KB9 KB11 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in IoT AC Fan Speed Controller with Raspberry Pi 5 - Proteus Simulation. Open an image for its full size.












README
===============================================================================================================
IoT AC Fan Speed Controller with Raspberry Pi 5 - 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/11/iot-ac-fan-speed-controller-raspberry-pi-5-proteus-simulation.html
The libraries this project is built from (each post has its own full download and tutorial):
Raspberry Pi 5 board:
https://www.theengineeringprojects.com/2026/10/raspberry-pi-5-library-for-proteus.html
AC dimmer module:
https://www.theengineeringprojects.com/2026/11/ac-dimmer-module-library-for-proteus.html
120 mm 230 V AC fan:
https://www.theengineeringprojects.com/2026/11/120mm-230v-ac-fan-library-for-proteus.html
NTC thermistor:
https://www.theengineeringprojects.com/2026/11/ntc-thermistor-library-for-proteus.html
ADS1115 ADC:
https://www.theengineeringprojects.com/2026/10/ads1115-adc-library-for-proteus-v1-0.html
Resistor:
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
Pi-5-AC-Fan-Controller-TEP-v1.0/
|-- Proteus Library Files/
| |-- TEPACDIMMER.LIB 19.9 KB a part of the project -> LIBRARY folder
| |-- TEPACFAN120.LIB 19.2 KB a part of the project -> LIBRARY folder
| |-- TEPADS1115.LIB 66.3 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
| |-- TEPNTC.LIB 14.3 KB a part of the project -> LIBRARY folder
| |-- TEPRESISTOR.LIB 306.9 KB a part of the project -> LIBRARY folder
| |-- TEPRPI5.LIB 60.5 KB a part of the project -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPACDIMMER.DLL 296.5 KB a model -> MODELS folder
| |-- TEPACFAN120.DLL 291.0 KB a model -> MODELS folder
| |-- TEPADS1115.DLL 326.0 KB a model -> MODELS folder
| |-- TEPNET.DLL 2.89 MB a model -> MODELS folder
| |-- TEPNTC.DLL 288.5 KB a model -> MODELS folder
| |-- TEPRESISTOR.DLL 311.0 KB a model -> MODELS folder
| |-- TEPPi/python/ 17.54 MB Python 3.11 embeddable -> MODELS\TEPPi (33 files)
| |-- TEPPi/runtime/ 1.11 MB TEP Pi runtime, gpiozero -> MODELS\TEPPi (87 files)
|-- Proteus Simulation/
| |-- ac_fan.py 9.0 KB the program PI1 runs
| |-- Pi-5-AC-Fan-Controller.pdsprj 38.7 KB the project simulation
| |-- TEPACDIMMER.DLL 296.5 KB copy of the model
| |-- TEPACFAN120.DLL 291.0 KB copy of the model
| |-- TEPADS1115.DLL 326.0 KB copy of the model
| |-- TEPNET.DLL 2.89 MB copy of the model
| |-- TEPNTC.DLL 288.5 KB copy of the model
| |-- TEPRESISTOR.DLL 311.0 KB copy of the model
|-- Python Code/
| |-- ac_fan.py 9.0 KB the program (the same file)
|-- README.txt ~10.7 KB this file
Total: 27.99 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
An AC fan speed controller you can run in Proteus: a Raspberry Pi 5 sets the speed of a 230 V AC fan by
phase-angle control through an AC dimmer module, follows the temperature of an NTC thermistor and serves a web
dashboard.
* AC dimmer module (DIMMERACTEP, U1): VCC on +5V, GND; Z-C (the zero-cross pulse) to GPIO17 (pin 11), PWM (the
triac's gate) from GPIO27 (pin 13); L-IN on the mains' L, N-IN on the earthed neutral, L-OUT / N-OUT to the fan.
* 120 mm 230 V AC fan (FAN120ACTEP, M1) on the dimmer's output.
* V1 = Proteus's own ALTERNATOR: 325 V peak (230 V RMS), 50 Hz - the mains.
* NTC thermistor 10 k bead, B 3950 (NTCBEAD10KTEP, RT1) from the net NTC to GND, R1 10 k from +3.3V to NTC.
* ADS1115 (ADS1115ADVTEP, U2) on I2C1 at 0x48 (ADDR to GND): VDD +3.3V, SDA GPIO2 (pin 3), SCL GPIO3 (pin 5),
A0 = the net NTC. The Pi has no analog input.
* RASPBERRY PI 5 (PI1) runs ac_fan.py on Ethernet at 192.168.1.51 (port 8000).
* Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.51:8000/.
The rules (at the top of the program):
* every half cycle of the mains the triac is fired a delay after the zero; it conducts to the next zero. The
delay for a power share P solves 1 - a/pi + sin(2a)/(2 pi) = P (a = the firing angle), 0.6 - 9.0 ms;
* the Z-C pulse rises about 0.5 ms before the real zero: the program adds 0.51 ms;
* the gate is held high to 8.5 ms after the zero: a fan's current lags its voltage, and a short pulse that comes
while the triac still carries the last half cycle's current is missed;
* the mains' frequency is measured from the zero crosses (100 a second at 50 Hz);
* AUTO: OFF below 24 C, 30 % at 24 C rising to 100 % at 36 C;
* the temperature: R(NTC) = 10 k x V / (3.3 - V), then the Beta equation from 25 C (B 3950).
Its pages:
/ the dashboard: the controls, the temperature, the power, the firing delay, the mains, the events
/auto AUTO: the power follows the temperature
/off /p30 /p60 /p100 OFF or a fixed power
/data everything as JSON
No extra Python library: lgpio (in the TEPPi runtime and on Raspberry Pi OS), math, threading, http.server.
TEST STATUS
Tested in Proteus 8 Professional on Windows 11, the run that made the tutorial's screenshots (the program's times):
- 0 - 12 s: 22.0 C, AUTO: the fan off; the mains measured from the zero crosses: 50.00 Hz; the Z-C pulse 1.03 ms
wide, rising 0.51 ms before each zero.
- 12.4 s: the NTC's air +10 C (32 C); the bead follows (7 s time constant). 13.3 s: "AUTO: 24.2 C - the fan 31 %,
fired 6.0 ms after the zero"; at 15 s the dimmer fires at 5.38 ms (97 deg), 153 V RMS, and the fan starts (254 RPM).
- 26 s: about 30.8 C, AUTO near 69 %: fired 4.08 ms (73 deg), 195 V, 0.094 A, 13.2 W; the fan 2337 RPM, 141 m3/h.
- 28.3 s: 100 % from the phone: fired at 0.6 ms - the triac turns on at 2.53 ms (45 deg), where the fan's lagging
current ends, and carries the whole cycle (the gate held to 8.5 ms): 229 V, 0.115 A, 18.7 W, 2639 RPM, 159 m3/h.
- 34.5 s: 30 % from the laptop: fired 6.08 ms (109 deg), 128 V, 0.064 A, 5.5 W; 1009 RPM, 61 m3/h.
- 41.8 s: OFF: no firing, the fan coasting (231 RPM at 45 s). 46.4 s: AUTO again: 32.1 C, 77 %, fired 3.5 ms.
- 52 s: the air back to Room 25: the fan slows with the temperature (70 % at 30.9 C, 53 % at 27.9 C, 42 % at 26.1 C);
at 66 s, 25.9 C: fired 5.48 ms (99 deg), 150 V, 0.076 A, 8.0 W, 1483 RPM, 89 m3/h.
- 69.6 s of simulation in 450 s; the NTC 9.70 kohm at 25.7 C at the end (self-heating 0.14 C).
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 everything in "Proteus Model Files" - the DLL files and the TEPPi folder - into the MODELS folder (next
to LIBRARY).
4. Start Proteus. Press P in the schematic and search for RASPBERRY PI 5, DIMMERACTEP or FAN120ACTEP to check that
the parts are there.
RUN THE SIMULATION
1. Open "Proteus Simulation\Pi-5-AC-Fan-Controller.pdsprj". Keep ac_fan.py and the DLL files beside it.
2. Press Play. The Pi's terminal opens; the NTC starts at 22 C, so AUTO keeps the fan off.
3. Click a lead of RT1 for its pop-up and warm the air (+10 C, Hot 60, or hold the mouse on the bead: a finger).
4. Open the Laptop WiFi Monitor (PC1) or the Mobile WiFi Monitor (MOB1), press Go and try 30 %, 60 %, 100 %, OFF
and AUTO. Watch the fan's and the dimmer's pop-ups.
Your own program: edit ac_fan.py beside the project (PI1's PROGRAM property) and press Play again.
PROPERTIES USED IN THIS PROJECT
PI1 RASPBERRY PI 5 PROGRAM=ac_fan.py, ETHERNET=IN (192.168.1.51)
V1 ALTERNATOR AMP=325V, FREQ=50Hz
RT1 NTCBEAD10KTEP VALUE=10k, AIR=22 (the air at the start, C)
R1 RESISTOR4BANDTEP 10k
U1, M1, U2 (no changes)
PC1, MOB1 HOMEPAGE=http://192.168.1.51:8000/
TROUBLESHOOTING
* The fan never starts: no zero-cross pulses on GPIO17 (the dimmer's VCC), or the mains source missing.
* The fan runs at full speed whatever the setting: the gate held high - the delay must come after each zero.
* The fan stutters at high power: the gate pulse too short for a lagging current - hold it to 8.5 ms.
* The temperature reads "-": the NTC divider open or shorted, or the ADS1115 not at 0x48.
* The terminal cannot start Python: the TEPPi folder is not in MODELS.
* On a real board: the dimmer and the fan carry MAINS VOLTAGE. Never touch them while plugged in; use an enclosure.
LICENCES
* The project, the program, 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.
* TEPPi\python is the Python 3.11 Windows embeddable package (Python Software Foundation License); TEPPi\runtime
holds our TEP Pi runtime with gpiozero and colorzero (BSD licences) - their licence files are inside the folders.
* Proteus and its ALTERNATOR are products of Labcenter Electronics and are not included. Raspberry Pi is a trademark
of Raspberry Pi Ltd; ADS1115 is a product of Texas Instruments. This project is not made or endorsed by them.
VERSION
V1.0 - the first release of the project.
===============================================================================================================Development1 release
-
V1.0IoT AC Fan Speed Controller with Raspberry Pi 5 - 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.
Installation7 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
- Pythonto build the source files into firmware
- Any archive toolWindows, macOS and Linux extract ZIP files on their own
Steps
- 1
Extract the archive
Right-click 5ba6598ca9534553be02cb654deb6b45.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (Pi-5-AC-Fan-Controller-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move TEPACDIMMER.LIB, TEPACFAN120.LIB and TEPADS1115.LIB and 5 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 TEPACDIMMER.DLL, TEPACFAN120.DLL and TEPADS1115.DLL and 10 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
Build the source code
Open ac_fan.py, attr.py and color.py and 28 more in the compiler named in the tutorial (MikroC, Keil, MPLAB, Code Composer or the Arduino IDE) and build it to get the firmware.
- 6
Open the example simulation
Open Pi-5-AC-Fan-Controller.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.
- 7
Follow the tutorial
IoT AC Fan Speed Controller with Raspberry Pi 5 - Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.
FAQs8 questionsContact TEP
How do I download IoT AC Fan Speed Controller with Raspberry Pi 5 - 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?
IoT AC Fan Speed Controller with Raspberry Pi 5 - Proteus Simulation V1.0 comes as a ZIP archive of 144 files (14.3 MB, 28.0 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, source code and a nested archive. Open the File Structure tab for the full list of 144 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, f2593d409f36914bf988b0412f0f7fc9f3e0d81059eceaa2d2d8e78535d7d63c. In PowerShell run Get-FileHash "5ba6598ca9534553be02cb654deb6b45.zip"; on macOS or Linux run shasum -a 256 "5ba6598ca9534553be02cb654deb6b45.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.
Members skip the wait. Log in or join TEP.
- 0Total downloads
- 4%Popularity
- Raspberry PiCategory
- 0Comments
- ssyedzainnasirUploaded by
- 16 Nov 2026Uploaded at
f2593d409f36914bf988b0412f0f7fc9f3e0d81059eceaa2d2d8e78535d7d63c






















Comments
0