TEP DOWNLOAD CENTER

Project Files of Long-Range ESP32 LoRa Soil Station with SX1278 in Proteus Simulation

Libraries Code Projects Simulation
tep://download-terminal b9a056d452cb41b389cad5ad3a81b881.zip ZIP archiveV1.0Verified0 downloadsFree
Long-Range ESP32 LoRa Soil Station with SX1278 in Proteus Simulation: the gateway ESP32 with its SX1278, the field node ESP32 with its SX1278, the soil sensor, the DS18B20 probe and the solenoid valve
Proteus library · File 1 of 1

Long-Range ESP32 LoRa Soil Station with SX1278 in Proteus Simulation V1.0

Long-Range ESP32 LoRa Soil Station with SX1278 in Proteus Simulation V1.0 comes as a ZIP archive of 29 files (4.7 MB, 10.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

ESP32-LoRa-Soil-Station-SX1278-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (two ESP32 DevKit V1 boards, two SX1278 LoRa modules, a capacitive soil moisture sensor, a DS18B20 probe, a 12 V solenoid water valve on an L9110S, the Laptop and Mobile WiFi Monitors), both Arduino sketches and their HEX files, every LIB and DLL and a README.

Read Long-Range ESP32 LoRa Soil Station with SX1278 in Proteus Simulation

File Structure

b9a056d452cb41b389cad5ad3a81b881.zip29 files · 6 folders · 10.5 MB unpacked
ESP32-LoRa-Soil-Station-TEP-v1.0/29 files · 10.5 MB
Arduino Code/2 files · 14.5 KB
ESP32_LoRa_Gateway/1 file · 7.5 KB
INO ESP32_LoRa_Gateway.inoArduino sketch 7.5 KB
ESP32_LoRa_Node/1 file · 7 KB
INO ESP32_LoRa_Node.inoArduino sketch 7 KB
Proteus Library Files/9 files · 745.5 KB
LIB TEPCAPSOIL.LIBProteus library 60.1 KB
LIB TEPDS18B20.LIBProteus library 88 KB
LIB TEPESP32V1.LIBProteus library 36.6 KB
LIB TEPL9110S.LIBProteus library 78.5 KB
LIB TEPLAPTOP.LIBProteus library 39.5 KB
LIB TEPMOBILE.LIBProteus library 13.1 KB
LIB TEPRESISTOR.LIBProteus library 306.9 KB
LIB TEPSX1278.LIBProteus library 104.4 KB
LIB TEPVALVE.LIBProteus library 18.4 KB
Proteus Model Files/7 files · 4.8 MB
DLL TEPCAPSOIL.DLLSimulation model 312.5 KB
DLL TEPDS18B20.DLLSimulation model 305 KB
DLL TEPL9110S.DLLSimulation model 295 KB
DLL TEPNET.DLLSimulation model 3.0 MB
DLL TEPRESISTOR.DLLSimulation model 311 KB
DLL TEPSX1278.DLLSimulation model 374 KB
DLL TEPVALVE.DLLSimulation model 281 KB
Proteus Simulation/10 files · 5.0 MB
DSN ESP32-LoRa-Soil-Station.pdsprjProteus simulation 40.4 KB
HEX ESP32_LoRa_Gateway.hexCompiled HEX file 80 KB
HEX ESP32_LoRa_Node.hexCompiled HEX file 55.9 KB
DLL TEPCAPSOIL.DLLSimulation model 312.5 KB
DLL TEPDS18B20.DLLSimulation model 305 KB
DLL TEPL9110S.DLLSimulation model 295 KB
DLL TEPNET.DLLSimulation model 3.0 MB
DLL TEPRESISTOR.DLLSimulation model 311 KB
DLL TEPSX1278.DLLSimulation model 374 KB
DLL TEPVALVE.DLLSimulation model 281 KB
TXT README.txtText file 11 KB

README

README.txt 150 lines
===============================================================================================================
  Long-Range ESP32 LoRa Soil Station with SX1278 in 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/esp32-lora-soil-station-sx1278-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
    SX1278 LoRa module (Ra-02):
      https://www.theengineeringprojects.com/2026/09/sx1278-lora-proteus-library.html
    Capacitive soil moisture sensor:
      https://www.theengineeringprojects.com/2026/10/capacitive-soil-moisture-sensor-library-for-proteus-v1-0.html
    DS18B20 temperature sensor:
      https://www.theengineeringprojects.com/2026/10/ds18b20-library-for-proteus-v1-0.html
    12V solenoid water valve:
      https://www.theengineeringprojects.com/2026/11/12v-solenoid-water-valve-library-for-proteus-v1-0.html
    L9110S motor driver:
      https://www.theengineeringprojects.com/2026/10/l9110s-motor-driver-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
ESP32-LoRa-Soil-Station-TEP-v1.0/
|-- Proteus Library Files/
|   |-- TEPCAPSOIL.LIB                                 60.1 KB   a part of the project -> LIBRARY folder
|   |-- TEPDS18B20.LIB                                 88.0 KB   a part of the project -> LIBRARY folder
|   |-- TEPESP32V1.LIB                                 36.6 KB   a part of the project -> LIBRARY folder
|   |-- TEPL9110S.LIB                                  78.5 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
|   |-- TEPRESISTOR.LIB                               306.9 KB   a part of the project -> LIBRARY folder
|   |-- TEPSX1278.LIB                                 104.4 KB   a part of the project -> LIBRARY folder
|   |-- TEPVALVE.LIB                                   18.4 KB   a part of the project -> LIBRARY folder
|-- Proteus Model Files/
|   |-- TEPCAPSOIL.DLL                                312.5 KB   a model -> MODELS folder
|   |-- TEPDS18B20.DLL                                305.0 KB   a model -> MODELS folder
|   |-- TEPL9110S.DLL                                 295.0 KB   a model -> MODELS folder
|   |-- TEPNET.DLL                                     2.96 MB   a model -> MODELS folder
|   |-- TEPRESISTOR.DLL                               311.0 KB   a model -> MODELS folder
|   |-- TEPSX1278.DLL                                 374.0 KB   a model -> MODELS folder
|   |-- TEPVALVE.DLL                                  281.0 KB   a model -> MODELS folder
|-- Proteus Simulation/
|   |-- ESP32_LoRa_Gateway.hex                         80.0 KB   the firmware
|   |-- ESP32_LoRa_Node.hex                            55.9 KB   the firmware
|   |-- ESP32-LoRa-Soil-Station.pdsprj                 40.4 KB   the project simulation
|   |-- TEPCAPSOIL.DLL                                312.5 KB   copy of the model
|   |-- TEPDS18B20.DLL                                305.0 KB   copy of the model
|   |-- TEPL9110S.DLL                                 295.0 KB   copy of the model
|   |-- TEPNET.DLL                                     2.96 MB   copy of the model
|   |-- TEPRESISTOR.DLL                               311.0 KB   copy of the model
|   |-- TEPSX1278.DLL                                 374.0 KB   copy of the model
|   |-- TEPVALVE.DLL                                  281.0 KB   copy of the model
|-- Arduino Code/
|   |-- ESP32_LoRa_Gateway/ESP32_LoRa_Gateway.ino       7.5 KB   the sketch (source of the .hex)
|   |-- ESP32_LoRa_Node/ESP32_LoRa_Node.ino             7.0 KB   the sketch (source of the .hex)
|-- README.txt                                        ~10.5 KB   this file
Total: 10.51 MB (unzipped). The C++ source code of the models is not included.

WHAT IS IT?
  A long-range link you can run in Proteus: a soil station out in a field, with no Wi-Fi, sends its readings over
  LoRa to a gateway at the farmhouse, and the gateway answers with the valve command. Two ESP32 boards, two SX1278
  (Ra-02) LoRa modules at 433 MHz; in the simulation the modules share one air, and the distance between them is
  set on a module's panel (10 m ... 20 km).
    THE GATEWAY
    * U1 ESP32 DEVKIT V1 runs ESP32_LoRa_Gateway.hex on TEP-WiFi at 192.168.1.101 (port 80).
    * U2 the gateway's SX1278 (SX1278ADVTEP, the pop-up panel): SCK D18, MISO D19, MOSI D23, NSS D5, RST D14,
      DIO0 D26, VCC on a +3.3V supply terminal (on real boards: the 3.3 V pin).
    * Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.101/.
    THE FIELD NODE
    * U3 ESP32 DEVKIT V1 runs ESP32_LoRa_Node.hex; U4 its SX1278 (SX1278ADVTEP, the pop-up panel), wired the same.
    * U5 a capacitive soil moisture sensor (CAPSOILADVTEP): AOUT to D34, VCC 5 V from VIN.
    * U6 a DS18B20 waterproof probe in the soil (DS18B20PROBEADVTEP): DQ to D4, R1 4.7 kohm to 3V3.
    * SV1 a 12 V solenoid water valve (WATERVALVETEP) on motor A of DRV1, an L9110S (L9110SADVTEP) on +12V:
      A-IA = D25 (PWM), A-IB and the B inputs to GND.
  The rules (at the top of the sketches):
    * the node sends one reading every 4 s at SF7 (6 s at SF12) and listens right after it for the gateway's
      answer, as a LoRaWAN class A device: the answer carries the valve command and the spreading factor;
    * AUTO opens the valve below 30 % and closes it above 45 % (the sensor's own 0 - 100 % scale);
    * 3 packets without an answer: both ends go to SF12, the long-range mode; a strong link at SF12: both back to SF7;
    * 4 packets without an answer: the node closes the valve (fail-safe); nothing for 21 s: NODE SILENT;
    * the valve opens with full voltage for 150 ms, then a 40 % PWM holds it.
  The gateway's pages:
    /          the dashboard: the link, the soil, the valve, RSSI / SNR / margin, heard / lost, the events
    /open      /close      the valve by hand (MANUAL)        /auto      back to AUTO        /data      JSON
  Libraries: LoRa by Sandeep Mistry (0.8.0), OneWire and DallasTemperature (Library Manager); WiFi and WebServer
  are part of the ESP32 core.

TEST STATUS
  Tested in Proteus 8 Professional on Windows 11, the run that made the tutorial's screenshots (the sketches' times):
  - 2 km at SF7: reading #1 (2.0 s) got no answer - the gateway was still joining Wi-Fi; #2 heard at RSSI -107 dBm,
    SNR 9.8 dB (margin 17.3 dB), 46 ms on air; soil 24 %: AUTO sent "valve OPEN" with the answer; 6.2 s "valve OPEN:
    150 ms at full voltage, then held at 40 %" (14.1 L/min at 2 bar, 0.17 A held).
  - 10 km: #3 - #5 unanswered (too weak for SF7); 19.0 s the node and 20.0 s the gateway on SF12; #6 heard at
    -128 dBm, SNR -11.3 dB (margin 8.8 dB), 1155 ms on air.
  - 20 km: out of reach; 46.1 s "NODE SILENT: nothing heard for 21 s"; 52.2 s the node's fail-safe closed the valve.
    Once the probe did not answer: "the last temperature is kept".
  - 1 km: 55.2 s "the node is back" at SF12, margin 30 dB: both back to SF7; AUTO opened the valve again.
  - WATER IT x2: #13 soil 46 %: AUTO closed the valve; OPEN from the phone opened it with the next answer; AUTO from
    the laptop closed it again (soil 61 %). 15 readings, 7 lost to the distance.
  - 71 s of simulation in about 38 minutes.

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, SX1278 or WATERVALVETEP to check
     that the parts are there.

RUN THE SIMULATION
  1. Open "Proteus Simulation\ESP32-LoRa-Soil-Station.pdsprj". Keep both HEX files and the DLL files beside it.
  2. Press Play. The node sends a reading every 4 s; the gateway answers; the dry soil opens the valve.
  3. On the node's LoRa pop-up (U4) choose a DISTANCE: 10 km, then 20 km, then 1 km.
  4. Click the soil sensor for its pop-up: WATER IT or a preset changes the soil.
  5. Open the Laptop WiFi Monitor (PC1) or the Mobile WiFi Monitor (MOB1) and press Go: OPEN, CLOSE, AUTO.
  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_LoRa_Gateway.hex, AUTOOPEN=YES (TEP-WiFi, 192.168.1.101)
  U3 ESP32 DEVKIT V1           PROGRAM=ESP32_LoRa_Node.hex, AUTOOPEN=YES
  U2, U4 SX1278ADVTEP          no properties: the sketches set 433 MHz, 125 kHz, SF, +17 dBm, CRC over SPI
  U5 CAPSOILADVTEP             VWC=8 (dry soil);  U6 DS18B20PROBEADVTEP  TEMPERATURE=18
  SV1 WATERVALVETEP            VOLTAGE=12, PRESSURE=2;  DRV1 L9110SADVTEP on +12V;  R1 4.7 kohm
  PC1, MOB1                    HOMEPAGE=http://192.168.1.101/

TROUBLESHOOTING
  * "LoRa module not found": SCK / MISO / MOSI / NSS / RST are not on D18 / D19 / D23 / D5 / D14, or no VCC.
  * The gateway hears nothing: both ends must use the same frequency, SF, bandwidth and sync word; the distance
    may be too far for the SF (SF7 reaches about 5 km here, SF12 about 15 km).
  * The valve never opens: DRV1 needs +12V; A-IA must be D25.
  * The soil reads 0 % or 100 %: the sensor's VCC must be 5 V (VIN); the calibration is AIR_V / WATER_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,
    LoRa a technology of Semtech, the Ra-02 a module of Ai-Thinker. This project is not made or endorsed by them.

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

Development1 release

  1. V1.0Long-Range ESP32 LoRa Soil Station with SX1278 in 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 b9a056d452cb41b389cad5ad3a81b881.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-LoRa-Soil-Station-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move TEPCAPSOIL.LIB, TEPDS18B20.LIB and TEPESP32V1.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 TEPCAPSOIL.DLL, TEPDS18B20.DLL and TEPL9110S.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_LoRa_Gateway.ino and ESP32_LoRa_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_LoRa_Gateway.hex and ESP32_LoRa_Node.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open ESP32-LoRa-Soil-Station.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

    Long-Range ESP32 LoRa Soil Station with SX1278 in 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 Long-Range ESP32 LoRa Soil Station with SX1278 in 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?

Long-Range ESP32 LoRa Soil Station with SX1278 in Proteus Simulation V1.0 comes as a ZIP archive of 29 files (4.7 MB, 10.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 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, a5421273be8741082d27a9ed1da0035a26a2aa05e1c7e34465a572f972ee97ce. In PowerShell run Get-FileHash "b9a056d452cb41b389cad5ad3a81b881.zip"; on macOS or Linux run shasum -a 256 "b9a056d452cb41b389cad5ad3a81b881.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 · b9a056d452cb41b389cad5ad3a81b881.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 a5421273be8741082d27a9ed1da0035a26a2aa05e1c7e34465a572f972ee97ce
DocumentationLong-Range ESP32 LoRa Soil Station with SX1278 in 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.