TEP DOWNLOAD CENTER

Project Files of IoT Combination Lock with ESP32 - Proteus Simulation

Libraries Code Projects Simulation
tep://download-terminal 1130d06ba9a44cccb9ef0b55e2c713d1.zip ZIP archiveV1.0Verified0 downloadsFree
IoT Combination Lock with ESP32 - Proteus Simulation: the ESP32, the KY-040 dial, the MAX7219 matrix, the BTS7960, the door lock actuator and the bell
Proteus library · File 1 of 1

IoT Combination Lock with ESP32 - Proteus Simulation V1.0

IoT Combination Lock with ESP32 - Proteus Simulation V1.0 comes as a ZIP archive of 33 files (5.2 MB, 11.5 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-Combination-Lock-ESP32-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (ESP32 DevKit V1, KY-040, MAX7219 matrix, BTS7960, car door lock actuator, electric bell, IRLZ44N, 1N5819, the Laptop and Mobile WiFi Monitors), the Arduino sketch, every LIB and DLL the simulation needs and a README.

Read IoT Combination Lock with ESP32 - Proteus Simulation

File Structure

1130d06ba9a44cccb9ef0b55e2c713d1.zip33 files · 5 folders · 11.5 MB unpacked
ESP32-Combination-Lock-TEP-v1.0/33 files · 11.5 MB
Arduino Code/1 file · 11.4 KB
ESP32_Combination_Lock/1 file · 11.4 KB
INO ESP32_Combination_Lock.inoArduino sketch 11.4 KB
Proteus Library Files/11 files · 901.5 KB
LIB TEP1N5819.LIBProteus library 9.7 KB
LIB TEPBELL.LIBProteus library 17.3 KB
LIB TEPBTS7960.LIBProteus library 74.8 KB
LIB TEPDOORLOCK.LIBProteus library 19.7 KB
LIB TEPESP32V1.LIBProteus library 36.6 KB
LIB TEPKY040.LIBProteus library 123.8 KB
LIB TEPLAPTOP.LIBProteus library 39.5 KB
LIB TEPMAX7219.LIBProteus library 242.3 KB
LIB TEPMOBILE.LIBProteus library 13.1 KB
LIB TEPNMOS.LIBProteus library 17.9 KB
LIB TEPRESISTOR.LIBProteus library 306.9 KB
Proteus Model Files/9 files · 5.2 MB
DLL TEP1N5819.DLLSimulation model 286.5 KB
DLL TEPBELL.DLLSimulation model 273.5 KB
DLL TEPBTS7960.DLLSimulation model 291 KB
DLL TEPDOORLOCK.DLLSimulation model 278.5 KB
DLL TEPKY040.DLLSimulation model 379 KB
DLL TEPMAX7219.DLLSimulation model 294 KB
DLL TEPNET.DLLSimulation model 2.9 MB
DLL TEPNMOS.DLLSimulation model 295 KB
DLL TEPRESISTOR.DLLSimulation model 311 KB
Proteus Simulation/11 files · 5.3 MB
DSN ESP32-Combination-Lock.pdsprjProteus simulation 44.4 KB
HEX ESP32_Combination_Lock.hexCompiled HEX file 62.2 KB
DLL TEP1N5819.DLLSimulation model 286.5 KB
DLL TEPBELL.DLLSimulation model 273.5 KB
DLL TEPBTS7960.DLLSimulation model 291 KB
DLL TEPDOORLOCK.DLLSimulation model 278.5 KB
DLL TEPKY040.DLLSimulation model 379 KB
DLL TEPMAX7219.DLLSimulation model 294 KB
DLL TEPNET.DLLSimulation model 2.9 MB
DLL TEPNMOS.DLLSimulation model 295 KB
DLL TEPRESISTOR.DLLSimulation model 311 KB
TXT README.txtText file 11.4 KB

README

README.txt 157 lines
===============================================================================================================
  IoT Combination Lock 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-combination-lock-esp32-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
    KY-040 rotary encoder:
      https://www.theengineeringprojects.com/2026/10/rotary-encoder-library-for-proteus.html
    MAX7219 LED matrix:
      https://www.theengineeringprojects.com/2026/10/max7219-led-matrix-library-for-proteus-v1-0.html
    BTS7960 motor driver:
      https://www.theengineeringprojects.com/2026/10/bts7960-motor-driver-library-for-proteus-v1-0.html
    Car door lock actuator:
      https://www.theengineeringprojects.com/2026/11/car-door-lock-actuator-library-for-proteus-v1-0.html
    Electric bell:
      https://www.theengineeringprojects.com/2026/11/electric-bell-library-for-proteus-v1-0.html
    N-MOSFET (IRLZ44N):
      https://www.theengineeringprojects.com/2026/11/n-mosfet-library-for-proteus.html
    Schottky diode (1N5819):
      https://www.theengineeringprojects.com/2026/11/schottky-diode-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-Combination-Lock-TEP-v1.0/
|-- Proteus Library Files/
|   |-- TEP1N5819.LIB                                   9.7 KB   a part of the project -> LIBRARY folder
|   |-- TEPBELL.LIB                                    17.3 KB   a part of the project -> LIBRARY folder
|   |-- TEPBTS7960.LIB                                 74.8 KB   a part of the project -> LIBRARY folder
|   |-- TEPDOORLOCK.LIB                                19.7 KB   a part of the project -> LIBRARY folder
|   |-- TEPESP32V1.LIB                                 36.6 KB   a part of the project -> LIBRARY folder
|   |-- TEPKY040.LIB                                  123.8 KB   a part of the project -> LIBRARY folder
|   |-- TEPLAPTOP.LIB                                  39.5 KB   a part of the project -> LIBRARY folder
|   |-- TEPMAX7219.LIB                                242.3 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
|   |-- TEPRESISTOR.LIB                               306.9 KB   a part of the project -> LIBRARY folder
|-- Proteus Model Files/
|   |-- TEP1N5819.DLL                                 286.5 KB   a model -> MODELS folder
|   |-- TEPBELL.DLL                                   273.5 KB   a model -> MODELS folder
|   |-- TEPBTS7960.DLL                                291.0 KB   a model -> MODELS folder
|   |-- TEPDOORLOCK.DLL                               278.5 KB   a model -> MODELS folder
|   |-- TEPKY040.DLL                                  379.0 KB   a model -> MODELS folder
|   |-- TEPMAX7219.DLL                                294.0 KB   a model -> MODELS folder
|   |-- TEPNET.DLL                                     2.89 MB   a model -> MODELS folder
|   |-- TEPNMOS.DLL                                   295.0 KB   a model -> MODELS folder
|   |-- TEPRESISTOR.DLL                               311.0 KB   a model -> MODELS folder
|-- Proteus Simulation/
|   |-- ESP32_Combination_Lock.hex                     62.2 KB   the firmware
|   |-- ESP32-Combination-Lock.pdsprj                  44.4 KB   the project simulation
|   |-- TEP1N5819.DLL                                 286.5 KB   copy of the model
|   |-- TEPBELL.DLL                                   273.5 KB   copy of the model
|   |-- TEPBTS7960.DLL                                291.0 KB   copy of the model
|   |-- TEPDOORLOCK.DLL                               278.5 KB   copy of the model
|   |-- TEPKY040.DLL                                  379.0 KB   copy of the model
|   |-- TEPMAX7219.DLL                                294.0 KB   copy of the model
|   |-- TEPNET.DLL                                     2.89 MB   copy of the model
|   |-- TEPNMOS.DLL                                   295.0 KB   copy of the model
|   |-- TEPRESISTOR.DLL                               311.0 KB   copy of the model
|-- Arduino Code/
|   |-- ESP32_Combination_Lock/ESP32_Combination_Lock.ino   11.4 KB   the sketch (source of the .hex)
|-- README.txt                                        ~10.5 KB   this file
Total: 11.50 MB (unzipped). The C++ source code of the models is not included.

WHAT IS IT?
  A combination lock you can run in Proteus: an ESP32 turns a rotary encoder into a safe's dial, shows the code on
  an LED matrix, drives a car's door lock actuator through an H-bridge, rings an electric bell after three wrong
  codes and serves a web dashboard that can lock and unlock the door.
    * KY-040 rotary encoder (KY040ADVTEP, ENC1): CLK D32, DT D33, SW D25 (INPUT_PULLUP), + on the 5 V rail (a real
      ESP32 build: 3.3 V), GND. One full quadrature cycle a click; every contact edge bounces (1 ms).
    * MAX7219 4-in-1 LED matrix, 32 x 8 (MAX7219X4ADVTEP, MX1): DIN D23 (MOSI), CLK D18 (SCK), CS D5, VCC 5 V, GND.
    * BTS7960 H-bridge (BTS7960ADVTEP, DRV1): RPWM D26, LPWM D27, R_EN and L_EN D14, VCC 5 V, B+ +12V, B- GND,
      M+ / M- to the actuator.
    * Car door lock actuator (DOORLOCKTEP, M1) on 12 V: its switches SL (locked) D4 and SU (unlocked) D13 with the
      ESP32's pull-ups, S (the common) to GND.
    * 12 V electric bell (ELECBELLTEP, BELL1): + on +12V, - to the drain of Q1, an IRLZ44N logic-level MOSFET (gate
      from D2 through R1 100 ohm, R2 10 k to GND), D1 1N5819 across the bell (cathode to +12V).
    * ESP32 DEVKIT V1 (U1) runs ESP32_Combination_Lock.hex on TEP-WiFi at 192.168.1.101 (port 80).
    * Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.101/.
  The rules (at the top of the sketch):
    * the code is 2580 (CODE); turn the knob to choose a digit, press to enter it; the matrix shows * for the digits
      entered, the digit being chosen and _ for the rest;
    * the right code: a 0.3 s pulse unlocks (the stroke takes about 0.22 s); the SU switch must close, else JAMMED;
      the door locks itself again after 10 s;
    * a wrong code: NO for 1.5 s; the third wrong code: ALARM - the bell rings 5 s, the dial ignores the knob for 30 s;
    * the encoder: the two contacts as a 2-bit Gray code, a valid change is a quarter step, a click is counted when
      the contacts are back at the detent (both open) - a bounce only goes back and forth.
  Its pages:
    /          the dashboard: the controls, the lock, the dial, the wrong codes, the switches, the events
    /unlock    /lock    from the dashboard (not during an alarm)
    /data      everything as JSON
  No extra library: the sketch drives the encoder, the matrix (through the ESP32's SPI) and the lock itself.

TEST STATUS
  Tested in Proteus 8 Professional on Windows 11, the run that made the tutorial's screenshots (the sketch's times):
  - 2 s: "LOCKED" - the door lock pulled its rod in (0 mm), switch SL closed; the matrix shows "____".
  - 14 / 17 / 21 / 22 s: the four digits 2-5-8-0 turned in on the KY-040 and pressed (the matrix shows "*", "**" ...).
  - 23 s: "code OK - unlock pulse 300 ms" - the rod went out to 20.0 mm in 0.22 s, switch SU closed, "OPEN".
  - 33 s: relock after 10 s open - the rod back in, "LOCKED" again.
  - 36 / 38 s: the phone's dashboard links /unlock and /lock moved the rod out and in.
  - 44 / 50 / 56 s: three wrong codes - "NO" on the matrix twice, then "ALARM" at 56 s.
  - 56-61 s: the 12 V bell rang 5 s through the IRLZ44N (27.8 strikes a second, 0.51 A peak, 139 strikes in all).
  - The run: 5 lock strokes, windings 28.3 C; matrix 38 of 256 LEDs lit at 74 mA (intensity 3); 64.65 s of sim in 436 s.

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, KY040ADVTEP, MAX7219X4ADVTEP,
     BTS7960ADVTEP, DOORLOCKTEP or ELECBELLTEP to check that the parts are there.

RUN THE SIMULATION
  1. Open "Proteus Simulation\ESP32-Combination-Lock.pdsprj". Keep the HEX and the DLL files beside it.
  2. Press Play. The lock goes to its locked end; the matrix shows 0___.
  3. In the KY-040's pop-up (ENC1) turn the knob (one click, five clicks) and PRESS it to enter each digit: 2, 5, 8, 0.
  4. Open the Laptop WiFi Monitor (PC1) or the Mobile WiFi Monitor (MOB1) and press Go; UNLOCK and LOCK are links.
  Your own sketch: compile it, export the compiled binary and set U1's PROGRAM property to the new file.

PROPERTIES USED IN THIS PROJECT
  U1 ESP32 DEVKIT V1           PROGRAM=ESP32_Combination_Lock.hex, AUTOOPEN=YES (TEP-WiFi, 192.168.1.101)
  ENC1 KY040ADVTEP             (no changes: 1 ms of bounce)
  MX1 MAX7219X4ADVTEP          (no changes)
  DRV1 BTS7960ADVTEP           (no changes) on +12V
  M1 DOORLOCKTEP               (no changes: 12 V, the DOOR load)
  BELL1 ELECBELLTEP            (no changes: 12 V)
  Q1 IRLZ44NTEP, D1 DIODE1N5819TEP, R1 100 ohm, R2 10 kohm
  PC1, MOB1                    HOMEPAGE=http://192.168.1.101/

TROUBLESHOOTING
  * One click counts as two or none: the encoder read on single edges with bounce - keep the quarter-step decoder.
  * The matrix shows mirrored or reversed text: another module type (FC-16 here) - swap the bit order or the chips.
  * JAMMED after a pulse: the rod did not reach its end - the load, the 12 V supply or a pulse too short.
  * The bell does not ring: Q1's gate (R1, D2), or the bell's + not on +12V.
  * The dashboard UNLOCK does nothing: an ALARM is running (30 s).

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.
  * Proteus is a product of Labcenter Electronics and is not included. ESP32 is a product of Espressif Systems; the
    MAX7219 of Analog Devices (Maxim); the BTS7960 and the IRLZ44N of Infineon.
    This project is not made or endorsed by them. It is a teaching project, not a certified security device.

VERSION
  V1.0 - the first release of the project.
===============================================================================================================
Advertisement

Development1 release

  1. V1.0IoT Combination Lock 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. 1

    Extract the archive

    Right-click 1130d06ba9a44cccb9ef0b55e2c713d1.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-Combination-Lock-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move TEP1N5819.LIB, TEPBELL.LIB and TEPBTS7960.LIB and 8 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. 3

    Add the simulation model

    Copy TEP1N5819.DLL, TEPBELL.DLL and TEPBTS7960.DLL and 6 more into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.

  4. 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. 5

    Open the sketch in the Arduino IDE

    Open ESP32_Combination_Lock.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.

  6. 6

    Load the HEX file

    In Proteus double-click the microcontroller, set Program File to ESP32_Combination_Lock.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open ESP32-Combination-Lock.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.

  8. 8

    Follow the tutorial

    IoT Combination Lock with ESP32 - Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.

How to add a library in Proteus 8

FAQs9 questionsContact TEP

How do I download IoT Combination Lock 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 Combination Lock with ESP32 - Proteus Simulation V1.0 comes as a ZIP archive of 33 files (5.2 MB, 11.5 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 33 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, ab7f01b18201c8c94d5ead770a1aa6c0ca4c73c52b37daa73a05f0e01f7d9780. In PowerShell run Get-FileHash "1130d06ba9a44cccb9ef0b55e2c713d1.zip"; on macOS or Linux run shasum -a 256 "1130d06ba9a44cccb9ef0b55e2c713d1.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.

preparing · 1130d06ba9a44cccb9ef0b55e2c713d1.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

Last 14 days0 downloads
SHA-256 ab7f01b18201c8c94d5ead770a1aa6c0ca4c73c52b37daa73a05f0e01f7d9780
DocumentationIoT Combination Lock with ESP32 - Proteus Simulation
Need help with this file? Bug report Ask a question Download problemsGet updates
Advertisement

Comments

0

Join the conversation

Start the conversationAsk a question or share how you used this download.