Project Files of IoT Smart Curtain with ESP32 - Proteus Simulation
esp32-smart-curtain-tep-v1-0-a3a13ff310694fa883823652a240e933.zip

IoT Smart Curtain with ESP32 - Proteus Simulation V1.0
IoT Smart Curtain with ESP32 - Proteus Simulation V1.0 comes as a ZIP archive of 24 files (4.5 MB, 10.1 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
IoT-Smart-Curtain-ESP32-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (ESP32 DevKit V1, ULN2003 driver, 28BYJ-48 stepper, LDR, TTP223 touch pad, LEDs, the Laptop and Mobile WiFi Monitors), the Arduino sketch and its .hex, every LIB and DLL the simulation needs and a README.
File Structure
8.9 KB36.6 KB39.5 KB289.8 KB21.8 KB13.1 KB306.9 KB89.3 KB89.7 KB420 KB289.5 KB2.9 MB311 KB362 KB308 KB42.9 KB67.2 KB420 KB289.5 KB2.9 MB311 KB362 KB308 KB10.2 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in IoT Smart Curtain with ESP32 - Proteus Simulation. Open an image for its full size.












README
===============================================================================================================
IoT Smart Curtain with ESP32 - 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-smart-curtain-esp32-proteus-simulation.html
The libraries this project is built from (each post has its own full download and tutorial):
ESP32 DevKit V1 board (and the TEP Boards for Proteus Arduino add-on):
https://www.theengineeringprojects.com/2026/10/esp32-devkit-v1-library-for-proteus-v2-0.html
28BYJ-48 stepper motor and ULN2003 driver:
https://www.theengineeringprojects.com/2026/10/28byj-48-uln2003-stepper-motor-library-for-proteus-v1-0.html
LDR light sensor:
https://www.theengineeringprojects.com/2026/10/ldr-sensor-library-for-proteus.html
TTP223 touch sensor:
https://www.theengineeringprojects.com/2026/10/touch-sensor-library-for-proteus-v2-0.html
5mm LED:
https://www.theengineeringprojects.com/2026/11/5mm-led-library-for-proteus.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
ESP32-Smart-Curtain-TEP-v1.0/
|-- Proteus Library Files/
| |-- TEPESP32V1.LIB 36.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
| |-- TEPLED5MM.LIB 21.8 KB a part of the project -> LIBRARY folder
| |-- TEPMOBILE.LIB 13.1 KB a part of the project -> LIBRARY folder
| |-- TEPRESISTOR.LIB 306.9 KB a part of the project -> LIBRARY folder
| |-- TEPTTP223.LIB 89.3 KB a part of the project -> LIBRARY folder
| |-- TEPULN2003.LIB 89.7 KB a part of the project -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPLDR.DLL 420.0 KB a model -> MODELS folder
| |-- TEPLED5MM.DLL 289.5 KB a model -> MODELS folder
| |-- TEPNET.DLL 2.89 MB a model -> MODELS folder
| |-- TEPRESISTOR.DLL 311.0 KB a model -> MODELS folder
| |-- TEPTTP223.DLL 362.0 KB a model -> MODELS folder
| |-- TEPULN2003.DLL 308.0 KB a model -> MODELS folder
|-- Proteus Simulation/
| |-- ESP32_Smart_Curtain.hex 67.2 KB the firmware
| |-- ESP32-Smart-Curtain.pdsprj 42.9 KB the project simulation
| |-- TEPLDR.DLL 420.0 KB copy of the model
| |-- TEPLED5MM.DLL 289.5 KB copy of the model
| |-- TEPNET.DLL 2.89 MB copy of the model
| |-- TEPRESISTOR.DLL 311.0 KB copy of the model
| |-- TEPTTP223.DLL 362.0 KB copy of the model
| |-- TEPULN2003.DLL 308.0 KB copy of the model
|-- Arduino Code/
| |-- ESP32_Smart_Curtain/ESP32_Smart_Curtain.ino 8.9 KB the sketch (source of the .hex)
|-- README.txt ~10.1 KB this file
Total: 10.08 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
A motorised roller curtain you can run in Proteus: an ESP32 opens it in the morning, closes it at night, takes a
tap on a touch pad and lets any laptop or phone on the Wi-Fi move it to any position.
* ULN2003 stepper driver board (ULN2003ADVTEP, DRV1) on the 5 V rail: IN1 - IN4 on D27, D26, D25, D33; its outputs
A - D and COM go straight to the 28BYJ-48 5 V stepper (BYJ48TEP, M1): orange, yellow, pink, blue, red.
Half steps; 4076 half steps = one turn of the output shaft (the gearbox is 63.68:1) = the curtain's full travel.
* LDR light sensor module (LDRADVTEP, U2) on 3.3 V: A0 on D34 (ADC) - the daylight in %. LIGHT=NIGHT at the start.
* TTP223 touch pad (TTP223ADVTEP, U3): IO on D4 (HIGH while touched); here on the 5 V rail (it runs on 2 - 5.5 V;
use 3.3 V on a real ESP32).
* LEDs (LED5MMGREENTEP / LED5MMYELLOWTEP) on D19 / D18 through 220 ohm: AUTO / MANUAL.
* ESP32 DEVKIT V1 (U1) runs ESP32_Smart_Curtain.hex on TEP-WiFi at 192.168.1.101; the dashboard is on port 80.
* Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.101/.
The ULN2003's + and the board's VIN share the VCC net (the simulation's 5 V rail).
The rules (at the top of the sketch):
* AUTO: daylight (60 % or more) for 3 s opens the curtain, darkness (30 % or less) for 3 s closes it;
* a tap on the touch pad opens or closes it (MANUAL); a tap while it moves stops it;
* 2 ms a half step (500 half steps a second); the coils are switched off between moves.
Its pages:
/ the dashboard: the curtain in %, the position in half steps, the light, the mode, the events
/open open the curtain (MANUAL)
/close close the curtain (MANUAL)
/half move it to 50 % (MANUAL)
/auto back to AUTO: the light decides after 3 s
/data everything as JSON
TEST STATUS
Tested in Proteus 8 Professional on Windows 11, the run that made the tutorial's screenshots (simulation times):
* Start: "ready - the curtain closed, AUTO" at 2 s; "AUTO: dark 5 % for 3 s" at 5 s (LIGHT=NIGHT), nothing moves.
* Sunny on the LDR: "moving to 100 % (AUTO: daylight 99 % for 3 s)" at 15 s; "the curtain is OPEN (100 %, 4076 half
steps in 8539 ms)" at 24 s - the ULN2003 saw HALF STEP, about 481 steps/s, CW, 96 mA from 5 V.
* A tap on the TTP223: "moving to 0 % (touch, MANUAL)" at 28 s; CLOSED at 36 s.
* HALF from the laptop: "the curtain is part open (50 %, 2038 half steps in 4288 ms)" at 41 s.
* AUTO from the phone at 44 s: open again at 52 s (daylight). Night on the LDR: "moving to 0 % (AUTO: dark 5 % for
3 s)" at 58 s; CLOSED at 66 s.
70 s of simulation took about 8 minutes on our PC with all the captures.
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, ULN2003ADVTEP or BYJ48TEP to check that
the parts are there.
RUN THE SIMULATION
1. Open "Proteus Simulation\ESP32-Smart-Curtain.pdsprj". Keep the .hex and .DLL files beside it.
2. Press Play. The ESP32 joins TEP-WiFi; it is night (the LDR's LIGHT=NIGHT), so the curtain stays closed.
3. Open the Laptop WiFi Monitor (PC1) or the Mobile WiFi Monitor (MOB1) and press Go. Press Refresh to update it.
4. In the LDR's pop-up (U2) press Sunny: 3 s later the curtain opens (the motor's dial turns one full turn).
5. Tap the touch pad (U3, Tap in its pop-up): MANUAL, the curtain closes. HALF on the page: 50 %. AUTO: the light
decides again. Night in the LDR's pop-up: the curtain closes.
Your own sketch: the source is in "Arduino Code". Install the TEP Boards for Proteus add-on from the ESP32 DevKit V1
post; choose Tools > Board > ESP32 DevKit V1 (TEP Proteus), export the compiled binary and set the board's PROGRAM
property to the new .hex file. The same sketch runs on a real ESP32 Dev Module.
PROPERTIES USED IN THIS PROJECT
U1 ESP32 DEVKIT V1 PROGRAM=ESP32_Smart_Curtain.hex
DRV1 ULN2003ADVTEP (no changes: the ON / OFF jumper ON)
M1 BYJ48TEP (no changes)
U2 LDRADVTEP LIGHT=NIGHT
U3 TTP223ADVTEP (no changes: jumpers A and B open - momentary, active HIGH)
PC1, MOB1 HOMEPAGE=http://192.168.1.101/
TROUBLESHOOTING
* The motor buzzes but does not turn: IN1 - IN4 are in the wrong order (the ULN2003's pop-up says WRONG ORDER).
* The motor does not move at all: the ULN2003 has no 5 V on +, or its ON / OFF jumper is off.
* The curtain never opens by itself: the mode is MANUAL - press AUTO - or the light is below 60 %.
* A tap does nothing: the touch pad's IO is not on D4, or it has no supply (its pop-up says NO POWER).
* "Connecting to TEP-WiFi......" never ends: the .hex file is missing beside the project, or TEPNET.DLL is not in
MODELS. Copy the files again and restart Proteus.
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 from the sketch with TEP Boards for Proteus, the Arduino add-on in the ESP32 DevKit V1
download (its licences are listed in that download). No third-party library is compiled into it.
* Proteus is a product of Labcenter Electronics and is not included. ESP32 (Espressif Systems) and TTP223 (Tontek)
are names of their owners; this project is not made or endorsed by them.
VERSION
V1.0 - the first release of the project.
===============================================================================================================Development1 release
-
V1.0IoT Smart Curtain with ESP32 - 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 esp32-smart-curtain-tep-v1-0-a3a13ff310694fa883823652a240e933.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-Smart-Curtain-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move TEPESP32V1.LIB, TEPLAPTOP.LIB and TEPLDR.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 TEPLDR.DLL, TEPLED5MM.DLL and TEPNET.DLL and 3 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_Smart_Curtain.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_Smart_Curtain.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open ESP32-Smart-Curtain.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
IoT Smart Curtain with ESP32 - 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 IoT Smart Curtain with ESP32 - 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 Smart Curtain with ESP32 - Proteus Simulation V1.0 comes as a ZIP archive of 24 files (4.5 MB, 10.1 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 24 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, 24b16abf46184d6de32fff5240f289764dbc44280e9e98c0c6bebe6aafb184b9. In PowerShell run Get-FileHash "esp32-smart-curtain-tep-v1-0-a3a13ff310694fa883823652a240e933.zip"; on macOS or Linux run shasum -a 256 "esp32-smart-curtain-tep-v1-0-a3a13ff310694fa883823652a240e933.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
- ProteusCategory
- 0Comments
- ssyedzainnasirUploaded by
- 13 Nov 2026Uploaded at
24b16abf46184d6de32fff5240f289764dbc44280e9e98c0c6bebe6aafb184b9






















Comments
0