TEP DOWNLOAD CENTER

Project Files of HC-12 433 MHz Mailbox and Gate Alert with ESP32 - Proteus Simulation

Libraries Code Projects Simulation
tep://download-terminal 21c75a00083a4f8486cb80b6e75842d9.zip ZIP archiveV1.0Verified0 downloadsFree
HC-12 433 MHz Mailbox and Gate Alert with ESP32 - Proteus Simulation: the gate ESP32 with its HC-12, the PIR and the mailbox switches, and the house ESP32 with its HC-12, the OLED and the MAIL lamp
Proteus library · File 1 of 1

HC-12 433 MHz Mailbox and Gate Alert with ESP32 - Proteus Simulation V1.0

HC-12 433 MHz Mailbox and Gate Alert with ESP32 - Proteus Simulation V1.0 comes as a ZIP archive of 29 files (4.8 MB, 10.8 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

HC-12-433MHz-Mailbox-Gate-Alert-ESP32-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (two ESP32 DevKit V1 boards, two HC-12 radios, an HC-SR501 PIR, two push buttons, an SMD LED, a 128x32 OLED, the Laptop and Mobile WiFi Monitors), the Arduino sketches ESP32_Gate_House.ino and ESP32_Gate_Node.ino with their .hex files, every LIB and DLL and a README.

Read HC-12 433 MHz Mailbox and Gate Alert with ESP32 - Proteus Simulation

File Structure

21c75a00083a4f8486cb80b6e75842d9.zip29 files · 6 folders · 10.8 MB unpacked
ESP32-HC12-Gate-Alert-TEP-v1.0/29 files · 10.8 MB
Arduino Code/2 files · 13.9 KB
ESP32_Gate_House/1 file · 6.6 KB
INO ESP32_Gate_House.inoArduino sketch 6.6 KB
ESP32_Gate_Node/1 file · 7.3 KB
INO ESP32_Gate_Node.inoArduino sketch 7.3 KB
Proteus Library Files/9 files · 836.2 KB
LIB TEPBUTTON.LIBProteus library 20.7 KB
LIB TEPESP32V1.LIBProteus library 36.6 KB
LIB TEPHC12.LIBProteus library 67.1 KB
LIB TEPHCSR501.LIBProteus library 391.6 KB
LIB TEPLAPTOP.LIBProteus library 39.5 KB
LIB TEPMOBILE.LIBProteus library 13.1 KB
LIB TEPOLED12832.LIBProteus library 78.1 KB
LIB TEPSMDLED.LIBProteus library 17.7 KB
LIB TEPSMDRES.LIBProteus library 171.9 KB
Proteus Model Files/7 files · 4.9 MB
DLL TEPBUTTON.DLLSimulation model 274 KB
DLL TEPHC12.DLLSimulation model 313 KB
DLL TEPHCSR501.DLLSimulation model 400 KB
DLL TEPNET.DLLSimulation model 3.0 MB
DLL TEPOLED.DLLSimulation model 342.5 KB
DLL TEPSMDLED.DLLSimulation model 290.5 KB
DLL TEPSMDRES.DLLSimulation model 305.5 KB
Proteus Simulation/10 files · 5.1 MB
DSN ESP32-HC12-Gate-Alert.pdsprjProteus simulation 40 KB
HEX ESP32_Gate_House.hexCompiled HEX file 99 KB
HEX ESP32_Gate_Node.hexCompiled HEX file 32 KB
DLL TEPBUTTON.DLLSimulation model 274 KB
DLL TEPHC12.DLLSimulation model 313 KB
DLL TEPHCSR501.DLLSimulation model 400 KB
DLL TEPNET.DLLSimulation model 3.0 MB
DLL TEPOLED.DLLSimulation model 342.5 KB
DLL TEPSMDLED.DLLSimulation model 290.5 KB
DLL TEPSMDRES.DLLSimulation model 305.5 KB
TXT README.txtText file 10.5 KB

README

README.txt 145 lines
===============================================================================================================
  HC-12 433 MHz Mailbox and Gate Alert 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/hc-12-433mhz-mailbox-gate-alert-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
    HC-12 433 MHz wireless serial module:
      https://www.theengineeringprojects.com/2026/10/hc-12-library-for-proteus.html
    PIR motion sensor HC-SR501:
      https://www.theengineeringprojects.com/2026/10/pir-sensor-library-for-proteus-v4-0.html
    Push button:
      https://www.theengineeringprojects.com/2026/11/push-button-library-for-proteus.html
    SMD LED:
      https://www.theengineeringprojects.com/2026/11/smd-led-library-for-proteus.html
    SMD resistor:
      https://www.theengineeringprojects.com/2026/11/smd-resistor-library-for-proteus.html
    OLED 128x32:
      https://www.theengineeringprojects.com/2026/10/oled-128x32-library-for-proteus-v1-0.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-HC12-Gate-Alert-TEP-v1.0/
|-- Proteus Library Files/
|   |-- TEPBUTTON.LIB                                  20.7 KB   a part of the project -> LIBRARY folder
|   |-- TEPESP32V1.LIB                                 36.6 KB   a part of the project -> LIBRARY folder
|   |-- TEPHC12.LIB                                    67.1 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
|   |-- TEPMOBILE.LIB                                  13.1 KB   a part of the project -> LIBRARY folder
|   |-- TEPOLED12832.LIB                               78.1 KB   a part of the project -> LIBRARY folder
|   |-- TEPSMDLED.LIB                                  17.7 KB   a part of the project -> LIBRARY folder
|   |-- TEPSMDRES.LIB                                 171.9 KB   a part of the project -> LIBRARY folder
|-- Proteus Model Files/
|   |-- TEPBUTTON.DLL                                 274.0 KB   a model -> MODELS folder
|   |-- TEPHC12.DLL                                   313.0 KB   a model -> MODELS folder
|   |-- TEPHCSR501.DLL                                400.0 KB   a model -> MODELS folder
|   |-- TEPNET.DLL                                     3.01 MB   a model -> MODELS folder
|   |-- TEPOLED.DLL                                   342.5 KB   a model -> MODELS folder
|   |-- TEPSMDLED.DLL                                 290.5 KB   a model -> MODELS folder
|   |-- TEPSMDRES.DLL                                 305.5 KB   a model -> MODELS folder
|-- Proteus Simulation/
|   |-- ESP32_Gate_House.hex                           99.0 KB   the firmware
|   |-- ESP32_Gate_Node.hex                            32.0 KB   the firmware
|   |-- ESP32-HC12-Gate-Alert.pdsprj                   40.0 KB   the project simulation
|   |-- TEPBUTTON.DLL                                 274.0 KB   copy of the model
|   |-- TEPHC12.DLL                                   313.0 KB   copy of the model
|   |-- TEPHCSR501.DLL                                400.0 KB   copy of the model
|   |-- TEPNET.DLL                                     3.01 MB   copy of the model
|   |-- TEPOLED.DLL                                   342.5 KB   copy of the model
|   |-- TEPSMDLED.DLL                                 290.5 KB   copy of the model
|   |-- TEPSMDRES.DLL                                 305.5 KB   copy of the model
|-- Arduino Code/
|   |-- ESP32_Gate_House/ESP32_Gate_House.ino           6.6 KB   the sketch (source of the .hex)
|   |-- ESP32_Gate_Node/ESP32_Gate_Node.ino             7.3 KB   the sketch (source of the .hex)
|-- README.txt                                        ~10.0 KB   this file
Total: 10.79 MB (unzipped). The C++ source code of the models is not included.

WHAT IS IT?
  A garden gate and mailbox that tell the house what happens, over a 433 MHz radio link that finds the least
  power it needs: two ESP32 boards, two HC-12 radios, a PIR sensor and two switches.
  THE GATE node:
    * U3 ESP32 DEVKIT V1 runs ESP32_Gate_Node.hex.
    * U4 an HC-12 433 MHz radio (HC12ADVTEP): TXD to RX2 (GPIO16), RXD from TX2 (GPIO17), SET from D4 (LOW = AT
      commands), VCC on the 5 V rail.
    * U5 an HC-SR501 PIR (HCSR501ADVTEP) watching the path: OUT on D27, VCC on the 5 V rail.
    * SW1 MAILBOX FLAP on D25 and SW2 MAILBOX DOOR on D26 (BUTTONGREENTEP), from the gate's 3.3 V with R2 / R3 10k
      pull-downs.
  THE HOUSE node:
    * U1 ESP32 DEVKIT V1 runs ESP32_Gate_House.hex on TEP-WiFi at 192.168.1.101 (port 80).
    * U2 its HC-12: TXD to RX2, RXD from TX2, SET open (its own pull-up), VCC on the 5 V rail.
    * OLED1 an SSD1306 0.91" 128x32 OLED (OLED12832WHITEADVTEP, 0x3C) on I2C D21 / D22, VCC +3.3V.
    * D1 the amber MAIL LED (LEDSMDAMBERTEP) on D4 through R1 220 ohm: lit while post waits in the box.
    * Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.101/.
  The link: the gate sends "G,<seq>,<type>,<power>" (V a visitor, M mail, C collected, H a heartbeat every 5 s), the
  house answers "A,<seq>" at once; a repeat of a seq is answered again but counted once; no message for 16 s =
  GATE SILENT. ADAPTIVE POWER: the gate starts at P1 (-1 dBm); a message with no answer goes twice at each level and
  the power climbs (AT+P1 .. AT+P8 = -1 .. +20 dBm) until the house answers; after 3 answers at the first try it steps
  down one level; a step down that fails goes back up and waits twice as long before trying again (3, 6 ... 48).
  The house's pages:
    /          the dashboard: the mail, the visitors, the gate's power, when it was last heard, the last events
    /reset     the counts          /data   JSON
  Libraries: WiFi and WebServer (part of the ESP32 core), Wire, Adafruit SSD1306 and Adafruit GFX (the house).

TEST STATUS
  Tested in Proteus 8 Professional on Windows 11, the run that made the tutorial's screenshots (the sketches' times):
  - The radios 100 m apart: P1 and P2 twice each without an answer, then 3.4 s "H #1 answered at P3 (5 dBm), try 5";
    the house: "the gate node online - P3 (5 dBm)". U4's pop-up: -111 dBm at the house, -112 needed, OK (+0.8 dB).
  - 7.0 s the PIR (Walk in): "a VISITOR at the gate (#3, P3)"; 9.1 s SW1: "MAIL delivered (#4, P3)", the MAIL LED on.
  - 9.3 s three answers at the first try: the gate tries P2. With U4 at 250 m the next heartbeat climbs: 15.4 s
    "H #5 answered at P6 (14 dBm), try 9"; U2's pop-up: 12 packets too weak in all, the last one heard at -110 dBm.
  - 18.2 s SW2: "the mail collected (#7, P6)", the LED off.
  - 1 km: "NO ANSWER even at P8 (+20 dBm)" (-116 dBm, 4.2 dB too weak); 34.2 s the house: "GATE SILENT - nothing
    for 16.0 s (3 heartbeats missed)".
  - Back in range: 36.4 s "the gate is back - P8 (20 dBm)"; one level down after every 3 answers: P7 at 46.7 s, P6 at
    61.7 s. 0 repeats; 71 s of simulation in 1,245 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, HC12ADVTEP or HCSR501ADVTEP to check
     that the parts are there.

RUN THE SIMULATION
  1. Open "Proteus Simulation\ESP32-HC12-Gate-Alert.pdsprj". Keep both HEX files and the DLL files beside it.
  2. Press Play. The gate's first heartbeat climbs from P1 until the house answers (P3 at the radios' 100 m).
  3. On the PIR's pop-up (U5) press Walk in: a visitor. Press SW1 (the flap): mail; the MAIL LED lights.
  4. On the gate HC-12's pop-up (U4) press DISTANCE 250 m: the gate climbs to P6. 1 km: the house says GATE SILENT.
  5. Open the Laptop WiFi Monitor (PC1) or the Mobile WiFi Monitor (MOB1) and press Go for the dashboard.
  Your own sketches: compile them, export the compiled binaries and set U1's / U3's PROGRAM to the new files.

PROPERTIES USED IN THIS PROJECT
  U1 ESP32 DEVKIT V1           PROGRAM=ESP32_Gate_House.hex, AUTOOPEN=YES (TEP-WiFi, 192.168.1.101)
  U3 ESP32 DEVKIT V1           PROGRAM=ESP32_Gate_Node.hex, AUTOOPEN=YES
  U2, U4 HC12ADVTEP            the defaults: FU3, 9600 8N1, CH001, P8 stored (the gate sets P1 at the start)
  U5 HCSR501ADVTEP;  SW1, SW2 BUTTONGREENTEP;  OLED1 OLED12832WHITEADVTEP;  D1 LEDSMDAMBERTEP
  PC1, MOB1                    HOMEPAGE=http://192.168.1.101/

TROUBLESHOOTING
  * Nothing gets through: both HC-12s on the same channel, mode and baud rate; check the DISTANCE on their pop-ups.
  * "NO REPLY from the HC-12" on the gate: SET must go to D4; in AT mode the module answers OK+Px.
  * The PIR never triggers: VCC on the 5 V rail; it sees only a moving warm body (Walk in, not Stand still).
  * One press counted twice: the button bounces; the gate counts an edge only 300 ms after the last one.
  * The OLED stays blank: SDA / SCL on D21 / D22, address 0x3C, VCC 3.3 V.

LICENCES
  * The project, the sketches, 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.
    This project is not made or endorsed by them.

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

Development1 release

  1. V1.0HC-12 433 MHz Mailbox and Gate Alert 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 21c75a00083a4f8486cb80b6e75842d9.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-HC12-Gate-Alert-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move TEPBUTTON.LIB, TEPESP32V1.LIB and TEPHC12.LIB and 6 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 TEPBUTTON.DLL, TEPHC12.DLL and TEPHCSR501.DLL and 4 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_Gate_House.ino and ESP32_Gate_Node.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_Gate_House.hex and ESP32_Gate_Node.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open ESP32-HC12-Gate-Alert.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

    HC-12 433 MHz Mailbox and Gate Alert 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 HC-12 433 MHz Mailbox and Gate Alert 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?

HC-12 433 MHz Mailbox and Gate Alert with ESP32 - Proteus Simulation V1.0 comes as a ZIP archive of 29 files (4.8 MB, 10.8 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 29 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, 0b0fc8495be043fb148bf4d5dc4b2e8d5624883efa2a98ce7ea69a09119da8a5. In PowerShell run Get-FileHash "21c75a00083a4f8486cb80b6e75842d9.zip"; on macOS or Linux run shasum -a 256 "21c75a00083a4f8486cb80b6e75842d9.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 · 21c75a00083a4f8486cb80b6e75842d9.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 0b0fc8495be043fb148bf4d5dc4b2e8d5624883efa2a98ce7ea69a09119da8a5
DocumentationHC-12 433 MHz Mailbox and Gate Alert 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.