Project Files of MAX30102 Heart Rate Zone Trainer on ESP32: Proteus Simulation
4df1d10be89e4a969afc68327d571bef.zip

MAX30102 Heart Rate Zone Trainer on ESP32: Proteus Simulation V1.0
MAX30102 Heart Rate Zone Trainer on ESP32: Proteus Simulation V1.0 comes as a ZIP archive of 27 files (4.9 MB, 10.6 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
MAX30102-Heart-Rate-Zone-Trainer-ESP32-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (ESP32 DevKit V1, a MAX30102 pulse oximeter, a 0.91" SSD1306 128x32 OLED, a piezo disc, SMD LEDs, a push button, the Laptop and Mobile WiFi Monitors), the Arduino sketch ESP32_Zone_Trainer.ino with its .hex, every LIB and DLL and a README.
File Structure
16.4 KB20.7 KB36.6 KB39.5 KB44.2 KB13.1 KB78.1 KB13.4 KB17.7 KB171.9 KB274 KB537 KB3.0 MB342.5 KB288.5 KB290.5 KB305.5 KB32.1 KB129.4 KB274 KB537 KB3.0 MB342.5 KB288.5 KB290.5 KB305.5 KB11 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in MAX30102 Heart Rate Zone Trainer on ESP32: Proteus Simulation. Open an image for its full size.












README
===============================================================================================================
MAX30102 Heart Rate Zone Trainer on 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/max30102-heart-rate-zone-trainer-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
MAX30102 pulse oximeter:
https://www.theengineeringprojects.com/2026/09/max30102-proteus-library.html
OLED 128x32:
https://www.theengineeringprojects.com/2026/10/oled-128x32-library-for-proteus-v1-0.html
Passive buzzer / piezo disc:
https://www.theengineeringprojects.com/2026/11/passive-buzzer-library-for-proteus.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
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-Zone-Trainer-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
| |-- TEPLAPTOP.LIB 39.5 KB a part of the project -> LIBRARY folder
| |-- TEPMAX30102.LIB 44.2 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
| |-- TEPPASSIVE.LIB 13.4 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
| |-- TEPMAX30102.DLL 537.0 KB a model -> MODELS folder
| |-- TEPNET.DLL 2.99 MB a model -> MODELS folder
| |-- TEPOLED.DLL 342.5 KB a model -> MODELS folder
| |-- TEPPASSIVE.DLL 288.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_Zone_Trainer.hex 129.4 KB the firmware
| |-- ESP32-Zone-Trainer.pdsprj 32.1 KB the project simulation
| |-- TEPBUTTON.DLL 274.0 KB copy of the model
| |-- TEPMAX30102.DLL 537.0 KB copy of the model
| |-- TEPNET.DLL 2.99 MB copy of the model
| |-- TEPOLED.DLL 342.5 KB copy of the model
| |-- TEPPASSIVE.DLL 288.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_Zone_Trainer/ESP32_Zone_Trainer.ino 16.4 KB the sketch (source of the .hex)
|-- README.txt ~10.7 KB this file
Total: 10.56 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
A fingertip pulse oximeter that coaches a workout: the pulse and the blood oxygen on a small OLED, a beep on every
heartbeat whose pitch follows SpO2, the heart-rate training zone, a workout timer and a low-oxygen alarm.
* U1 ESP32 DEVKIT V1 runs ESP32_Zone_Trainer.hex on TEP-WiFi at 192.168.1.101 (port 80).
* U2 a MAX30102 pulse oximeter (MAX30102ADVTEP, the pop-up panel: the finger, the pulse and SpO2, presets) and
OLED1 a 0.91" SSD1306 128x32 OLED (OLED12832WHITEADVTEP) on I2C: SDA D21, SCL D22; the MAX30102 at 0x57, the
OLED at 0x3C. The OLED's VCC is on +3.3V; the MAX30102's VIN is on the default power rail - its digital model
reads VIN as a logic level (a real GY-MAX30102 has its own regulators and takes 3.3 V or 5 V).
* BZ1 a 27 mm piezo disc (PIEZODISC27TEP) from D26 to GND, driven straight from the pin with tone().
* D1 green (D18, the beat) and D2 red (D19, the alarm), SMD LEDs (LEDSMDGREENTEP, LEDSMDREDTEP) through R1 / R2,
220 ohm SMD resistors (RESISTORSMD1206TEP).
* SW1 (BUTTONGREENTEP) from the board's 3V3 to D25, R3 10 kohm from D25 to GND: START / STOP a workout.
* Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.101/.
The rules (at the top of the sketch):
* the MAX30102 in SpO2 mode: red + IR LEDs at 12 mA, 100 samples a second averaged by 4 = 25 a second;
* every second the last 4 s (100 samples): the pulse from the spacing of the IR wave's upward crossings of its
middle level; SpO2 from R = (ACred / DCred) / (ACir / DCir), SpO2 = -45.060 R^2 + 30.354 R + 94.845 (Maxim's
approximation); the median of the last three estimates is shown; no finger = the IR level under 20000;
* a beat (an upward crossing, at most every 300 ms): the green LED and a 40 ms beep at 300 + 30 x (SpO2 - 70) Hz;
* the zones for age 40 (HRmax 220 - 40 = 180 BPM): under 90 BPM REST, 90 Z1 WARM UP, 108 Z2 FAT BURN, 126 Z3
CARDIO, 144 Z4 HARD, 162 Z5 MAX; a new zone after 3 s in it;
* the alarm: SpO2 under 92 % for 5 s - the red LED, a 2 kHz tone every second, LOW SpO2! (cleared at 94 %);
* a workout (SW1 or the dashboard): its real elapsed time goes to the current zone; STOP prints the summary.
The pages:
/ the dashboard: the zone, the pulse, SpO2, the workout and its zone times, the trend, the events
/start /stop the workout /trend.bmp the last 160 s (160 x 64, 4-bit) /data JSON
Libraries: SparkFun MAX3010x, Adafruit SSD1306, Adafruit GFX and Adafruit BusIO (Library Manager); WiFi, WebServer
and Wire 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 sketch's times):
- 6.3 s "a finger on the sensor" (the MAX30102 at 72 BPM, 98 %); 10.0 s 72 BPM, SpO2 98 %; 10.3 s REST (40 % of
HRmax). REST 60: 60 BPM from 20 s, the sketch reading IR 50990 / RED 50528 -> 60.0 BPM, 98.0 %.
- 18.1 s "workout 1 started (SW1)".
- WALK 95: 36.7 s "Z1 WARM UP - 95 BPM, 53 % of HRmax", SpO2 97 %; the beat beep at 1111 Hz (C#6).
- RUN 150: 50.7 s "Z4 HARD - 150 BPM, 83 % of HRmax", SpO2 95 %.
- LOW SPO2 (80 BPM, 85 %): 69.1 s "ALARM: SpO2 85 % - under 92 % for 5 s" - the red LED, the 2000 Hz tone, LOW SpO2!
on the OLED and the dashboards; 70.1 s REST (80 BPM). REST 60: 85.8 s "SpO2 back to 98 % - the alarm cleared".
- FINGER OFF: 92.8 s "no finger" (NO FINGER on the OLED, the workout paused); FINGER ON: 98.8 s, REST at 104.8 s.
- 105.6 s STOP from the laptop: "workout 1 done: 1:16 - REST 43 s, Z1 WARM UP 14 s, Z4 HARD 19 s; peak 150 BPM,
average 94 BPM, lowest SpO2 85 %". The trend picture (160 x 64) on the laptop and the phone.
- 114 s of simulation in 655 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, MAX30102ADVTEP or OLED12832WHITEADVTEP to
check that the parts are there.
RUN THE SIMULATION
1. Open "Proteus Simulation\ESP32-Zone-Trainer.pdsprj". Keep the HEX file and the DLL files beside it.
2. Press Play. The MAX30102 has a finger on it at 72 BPM: after a few seconds the OLED shows the pulse, SpO2 and
REST, and the piezo beeps with each beat.
3. Press SW1 (its pop-up's Press) to start a workout.
4. On the MAX30102's pop-up (U2) pick a preset: REST 60, WALK 95 (Z1), RUN 150 (Z4), LOW SPO2 (the alarm after
5 s), FINGER OFF / ON - or move the PULSE RATE and SPO2 TARGET sliders.
5. Open the Laptop WiFi Monitor (PC1) or the Mobile WiFi Monitor (MOB1) and press Go: Refresh, START, STOP.
Your own sketch: compile it, export the compiled binary and set U1's PROGRAM to the new file.
PROPERTIES USED IN THIS PROJECT
U1 ESP32 DEVKIT V1 PROGRAM=ESP32_Zone_Trainer.hex, AUTOOPEN=YES (TEP-WiFi, 192.168.1.101)
U2 MAX30102ADVTEP a finger at 72 BPM, SpO2 98 % (the pop-up changes them)
OLED1 OLED12832WHITEADVTEP address 0x3C
BZ1 PIEZODISC27TEP; SW1 BUTTONGREENTEP; D1 / D2 SMD LEDs; R1 / R2 220 ohm, R3 10 kohm
PC1, MOB1 HOMEPAGE=http://192.168.1.101/
TROUBLESHOOTING
* "MAX30102 not found at 0x57": SDA / SCL are not on D21 / D22, or VIN / GND have no supply.
* "SSD1306 not found at 0x3C": the OLED's VCC / GND, SDA D21 / SCL D22.
* NO FINGER all the time: the MAX30102's pop-up - FINGER ON; the IR level must be above 20000.
* No beep: the piezo between D26 and GND.
* SW1 does nothing: it must switch the 3V3 pin to D25, with R3 from D25 to GND.
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
MAX30102 a sensor of Analog Devices (Maxim Integrated), the SSD1306 a controller of Solomon Systech. This
project is not made or endorsed by them. It is a teaching model, not a medical device.
VERSION
V1.0 - the first release of the project.
===============================================================================================================Development1 release
-
V1.0MAX30102 Heart Rate Zone Trainer on 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 4df1d10be89e4a969afc68327d571bef.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-Zone-Trainer-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move TEPBUTTON.LIB, TEPESP32V1.LIB and TEPLAPTOP.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
Add the simulation model
Copy TEPBUTTON.DLL, TEPMAX30102.DLL and TEPNET.DLL and 4 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_Zone_Trainer.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_Zone_Trainer.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open ESP32-Zone-Trainer.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
MAX30102 Heart Rate Zone Trainer on 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 MAX30102 Heart Rate Zone Trainer on 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?
MAX30102 Heart Rate Zone Trainer on ESP32: Proteus Simulation V1.0 comes as a ZIP archive of 27 files (4.9 MB, 10.6 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 27 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, ed9ce870acb82c620496900ebf3b427a7abf2b311b511ae22f2b88c8aaaa917a. In PowerShell run Get-FileHash "4df1d10be89e4a969afc68327d571bef.zip"; on macOS or Linux run shasum -a 256 "4df1d10be89e4a969afc68327d571bef.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
- ESP32 ProjectsCategory
- 0Comments
- ssyedzainnasirUploaded by
- 23 Nov 2026Uploaded at
ed9ce870acb82c620496900ebf3b427a7abf2b311b511ae22f2b88c8aaaa917a






















Comments
0