TEP DOWNLOAD CENTER

Project Files of STM32 Black Pill Library for Proteus: MPU9250, Compass, OLED

Libraries Code Projects Simulation
tep://download-terminal stm32-black-pill-tep-v1-0-4877f09d58ff4a51aff8a37ece28e177.zip ZIP archiveV1.0Verified0 downloadsFree
STM32 Black Pill Library for Proteus: an attitude and heading display with an MPU9250, a GY-271 and an OLED
Proteus library · File 1 of 1

STM32 Black Pill Library for Proteus V1.0

STM32 Black Pill Library for Proteus V1.0 comes as a ZIP archive of 186 files (3.7 MB, 8.2 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch, an Arduino library, compiled HEX firmware and source code.

  • LIBProteus library
  • DLLProteus model
  • DSNProteus simulation
  • INOArduino sketch
  • LIBArduino library
  • HEXHEX firmware
  • SRCSource code

Description

STM32-Black-Pill-Library-for-Proteus-v1.0.zip with the STM32 Black Pill in Proteus (your STM32 sketch with the STM32 core's pin names, KEY, NRST, the C13 LED and a serial monitor; TEPBLACKPILL.LIB, TEPNET.DLL and the TEP Boards for Proteus add-on 1.26.0), the MPU9250, GY-271, SH1106 and ESP-01S libraries, the Laptop / Mobile WiFi Monitor symbols, the attitude and heading display demo with its sketch and a README.

Read STM32 Black Pill Library for Proteus: MPU9250, Compass, OLED

File Structure

stm32-black-pill-tep-v1-0-4877f09d58ff4a51aff8a37ece28e177.zip186 files · 91 folders · 8.2 MB unpacked
STM32-Black-Pill-TEP-v1.0/186 files · 8.2 MB
Arduino Code/168 files · 731.3 KB
BlackPill_Attitude_Compass/1 file · 14.8 KB
INO BlackPill_Attitude_Compass.inoArduino sketch 14.8 KB
TEP Boards for Proteus/167 files · 716.5 KB
hardware/167 files · 716.5 KB
tep/167 files · 716.5 KB
avr/167 files · 716.5 KB
cores/52 files · 259.3 KB
tep32/52 files · 259.3 KB
SRC abi.cppSource file 1.1 KB
SRC Arduino.hSource file 7.7 KB
SRC binary.hSource file 11 KB
SRC CDC.cppSource file 8.5 KB
SRC Client.hSource file 1.5 KB
SRC Esp.cppSource file 1.7 KB
SRC Esp.hSource file 1.8 KB
SRC esp32-hal-ledc.cSource file 5.6 KB
SRC esp32-hal-misc.cppSource file 4.9 KB
SRC esp32-hal-rgb.cSource file 1.1 KB
SRC esp32-hal.hSource file 5.8 KB
SRC HardwareSerial.cppSource file 9.6 KB
SRC HardwareSerial.hSource file 5.9 KB
SRC HardwareSerial0.cppSource file 2.5 KB
SRC HardwareSerial2.cppSource file 1.9 KB
SRC HardwareSerial_private.hSource file 4.4 KB
SRC hooks.cSource file 1.1 KB
SRC IPAddress.cppSource file 3 KB
SRC IPAddress.hSource file 3 KB
SRC main.cppSource file 1.8 KB
FILE newFile 2.5 KB
SRC new.cppSource file 3.5 KB
SRC new.hSource file 149 B
SRC PluggableUSB.cppSource file 2.7 KB
SRC PluggableUSB.hSource file 2 KB
SRC Print.cppSource file 6.4 KB
SRC Print.hSource file 3.2 KB
SRC Printable.hSource file 1.3 KB
SRC Server.hSource file 963 B
SRC Stream.cppSource file 8.6 KB
SRC Stream.hSource file 5.9 KB
SRC tep32_link.cSource file 5.8 KB
SRC tep32_link.hSource file 8.4 KB
SRC tep32_private.hSource file 1.5 KB
SRC Tone.cppSource file 14.7 KB
SRC Udp.hSource file 4.3 KB
SRC USBAPI.hSource file 6.1 KB
SRC USBCore.cppSource file 20.1 KB
SRC USBCore.hSource file 8.2 KB
SRC USBDesc.hSource file 2 KB
SRC WCharacter.hSource file 4.5 KB
SRC WInterrupts.cSource file 311 B
SRC wiring.cSource file 12.3 KB
SRC wiring_analog.cSource file 5.6 KB
SRC wiring_digital.cSource file 3.6 KB
SRC wiring_private.hSource file 2.2 KB
SRC wiring_pulse.cSource file 3.4 KB
SRC wiring_pulse.SSource file 5.9 KB
SRC wiring_shift.cSource file 1.5 KB
SRC WMath.cppSource file 1.6 KB
SRC WString.cppSource file 16.6 KB
SRC WString.hSource file 9.7 KB
libraries/84 files · 223.4 KB
Arduino_LED_Matrix/3 files · 7.8 KB
src/2 files · 7.4 KB
LIB Arduino_LED_Matrix.cppArduino library file 3.6 KB
LIB Arduino_LED_Matrix.hArduino library file 3.8 KB
LIB library.propertiesArduino library file 504 B
Arduino_RouterBridge/3 files · 19.8 KB
src/2 files · 19.3 KB
LIB Arduino_RouterBridge.cppArduino library file 8.3 KB
LIB Arduino_RouterBridge.hArduino library file 10.9 KB
LIB library.propertiesArduino library file 522 B
EEPROM/12 files · 22.6 KB
examples/8 files · 11 KB
eeprom_clear/1 file · 918 B
INO eeprom_clear.inoArduino sketch 918 B
eeprom_crc/1 file · 1.4 KB
INO eeprom_crc.inoArduino sketch 1.4 KB
eeprom_get/1 file · 1.8 KB
INO eeprom_get.inoArduino sketch 1.8 KB
eeprom_iteration/1 file · 1 KB
INO eeprom_iteration.inoArduino sketch 1 KB
eeprom_put/1 file · 1.3 KB
INO eeprom_put.inoArduino sketch 1.3 KB
eeprom_read/1 file · 1.4 KB
INO eeprom_read.inoArduino sketch 1.4 KB
eeprom_update/1 file · 1.8 KB
INO eeprom_update.inoArduino sketch 1.8 KB
eeprom_write/1 file · 1.4 KB
INO eeprom_write.inoArduino sketch 1.4 KB
src/1 file · 5.7 KB
LIB EEPROM.hArduino library file 5.7 KB
TXT keywords.txtText file 502 B
LIB library.propertiesArduino library file 463 B
MD README.mdReadme 5 KB
ESP32Servo/2 files · 2 KB
src/1 file · 1.6 KB
LIB ESP32Servo.hArduino library file 1.6 KB
LIB library.propertiesArduino library file 368 B
ESP8266HTTPClient/2 files · 872 B
src/1 file · 406 B
LIB ESP8266HTTPClient.hArduino library file 406 B
LIB library.propertiesArduino library file 466 B
ESP8266mDNS/2 files · 848 B
src/1 file · 404 B
LIB ESP8266mDNS.hArduino library file 404 B
LIB library.propertiesArduino library file 444 B
ESP8266WebServer/2 files · 937 B
src/1 file · 460 B
LIB ESP8266WebServer.hArduino library file 460 B
LIB library.propertiesArduino library file 477 B
ESP8266WiFi/2 files · 1.2 KB
src/1 file · 739 B
LIB ESP8266WiFi.hArduino library file 739 B
LIB library.propertiesArduino library file 448 B
ESPmDNS/2 files · 1.6 KB
src/1 file · 1.3 KB
LIB ESPmDNS.hArduino library file 1.3 KB
LIB library.propertiesArduino library file 350 B
ETH/3 files · 10.3 KB
src/2 files · 9.7 KB
LIB ETH.cppArduino library file 5.7 KB
LIB ETH.hArduino library file 4 KB
LIB library.propertiesArduino library file 562 B
HTTPClient/3 files · 11.6 KB
src/2 files · 11.3 KB
LIB HTTPClient.cppArduino library file 7.2 KB
LIB HTTPClient.hArduino library file 4.1 KB
LIB library.propertiesArduino library file 371 B
LEAmDNS/2 files · 868 B
src/1 file · 390 B
LIB LEAmDNS.hArduino library file 390 B
LIB library.propertiesArduino library file 478 B
Preferences/3 files · 10 KB
src/2 files · 9.6 KB
LIB Preferences.cppArduino library file 5.1 KB
LIB Preferences.hArduino library file 4.6 KB
LIB library.propertiesArduino library file 371 B
Servo/2 files · 652 B
src/1 file · 294 B
LIB Servo.hArduino library file 294 B
LIB library.propertiesArduino library file 358 B
SPI/6 files · 23.7 KB
examples/2 files · 6.4 KB
BarometricPressureSensor/1 file · 4.4 KB
INO BarometricPressureSensor.inoArduino sketch 4.4 KB
DigitalPotControl/1 file · 1.9 KB
INO DigitalPotControl.inoArduino sketch 1.9 KB
src/2 files · 16 KB
LIB SPI.cppArduino library file 5.6 KB
LIB SPI.hArduino library file 10.4 KB
TXT keywords.txtText file 835 B
LIB library.propertiesArduino library file 518 B
WebServer/3 files · 13.9 KB
src/2 files · 13.5 KB
LIB WebServer.cppArduino library file 9.1 KB
LIB WebServer.hArduino library file 4.4 KB
LIB library.propertiesArduino library file 439 B
WiFi/15 files · 46.7 KB
src/14 files · 46.2 KB
LIB tep_wifi_link.cppArduino library file 3.9 KB
LIB tep_wifi_link.hArduino library file 1.2 KB
LIB WiFi.cppArduino library file 9.3 KB
LIB WiFi.hArduino library file 7.1 KB
LIB WiFiClient.cppArduino library file 4.4 KB
LIB WiFiClient.hArduino library file 2.4 KB
LIB WiFiClientSecure.hArduino library file 388 B
LIB WiFiEvents.cppArduino library file 5.1 KB
LIB WiFiMulti.hArduino library file 893 B
LIB WiFiServer.cppArduino library file 667 B
LIB WiFiServer.hArduino library file 1.3 KB
LIB WiFiType.hArduino library file 5.5 KB
LIB WiFiUdp.cppArduino library file 2.3 KB
LIB WiFiUdp.hArduino library file 1.8 KB
LIB library.propertiesArduino library file 468 B
WiFiNINA/2 files · 1.4 KB
src/1 file · 882 B
LIB WiFiNINA.hArduino library file 882 B
LIB library.propertiesArduino library file 530 B
WiFiS3/2 files · 1.2 KB
src/1 file · 791 B
LIB WiFiS3.hArduino library file 791 B
LIB library.propertiesArduino library file 487 B
Wire/13 files · 45.5 KB
examples/7 files · 8.5 KB
digital_potentiometer/1 file · 894 B
INO digital_potentiometer.inoArduino sketch 894 B
i2c_scanner/1 file · 2 KB
INO i2c_scanner.inoArduino sketch 2 KB
master_reader/1 file · 730 B
INO master_reader.inoArduino sketch 730 B
master_writer/1 file · 646 B
INO master_writer.inoArduino sketch 646 B
SFRRanger_reader/1 file · 2.6 KB
INO SFRRanger_reader.inoArduino sketch 2.6 KB
slave_receiver/1 file · 977 B
INO slave_receiver.inoArduino sketch 977 B
slave_sender/1 file · 702 B
INO slave_sender.inoArduino sketch 702 B
src/4 files · 36 KB
utility/2 files · 22.4 KB
LIB twi.cArduino library file 20.6 KB
LIB twi.hArduino library file 1.8 KB
LIB Wire.cppArduino library file 10.4 KB
LIB Wire.hArduino library file 3.2 KB
TXT keywords.txtText file 596 B
LIB library.propertiesArduino library file 406 B
variants/26 files · 167.2 KB
blackpill_f411/1 file · 7.7 KB
SRC pins_arduino.hSource file 7.7 KB
d1_mini/1 file · 5.9 KB
SRC pins_arduino.hSource file 5.9 KB
d1_r2/1 file · 6.4 KB
SRC pins_arduino.hSource file 6.4 KB
esp32c3_supermini/1 file · 5.3 KB
SRC pins_arduino.hSource file 5.3 KB
esp32c6_devkitc1/1 file · 5.7 KB
SRC pins_arduino.hSource file 5.7 KB
esp32s3_devkitc1/1 file · 7.7 KB
SRC pins_arduino.hSource file 7.7 KB
esp32_devkitc_v4/1 file · 6.4 KB
SRC pins_arduino.hSource file 6.4 KB
esp32_devkit_v1/1 file · 6.3 KB
SRC pins_arduino.hSource file 6.3 KB
lilygo_t_display_s3/1 file · 8.3 KB
SRC pins_arduino.hSource file 8.3 KB
lolin_s2_mini/1 file · 7.2 KB
SRC pins_arduino.hSource file 7.2 KB
mkr_wifi_1010/1 file · 6 KB
SRC pins_arduino.hSource file 6 KB
nano_33_iot/1 file · 6.1 KB
SRC pins_arduino.hSource file 6.1 KB
nano_esp32/1 file · 6.3 KB
SRC pins_arduino.hSource file 6.3 KB
nano_every/1 file · 6 KB
SRC pins_arduino.hSource file 6 KB
nano_rp2040_connect/1 file · 6.2 KB
SRC pins_arduino.hSource file 6.2 KB
nodemcu_v2/1 file · 6.1 KB
SRC pins_arduino.hSource file 6.1 KB
nodemcu_v3/1 file · 5.8 KB
SRC pins_arduino.hSource file 5.8 KB
pico2_w/1 file · 6.6 KB
SRC pins_arduino.hSource file 6.6 KB
pico_w/1 file · 6.5 KB
SRC pins_arduino.hSource file 6.5 KB
ttgo_t_display/1 file · 7.7 KB
SRC pins_arduino.hSource file 7.7 KB
uno_q/1 file · 7.1 KB
SRC pins_arduino.hSource file 7.1 KB
uno_r4_minima/1 file · 5.8 KB
SRC pins_arduino.hSource file 5.8 KB
uno_r4_wifi/1 file · 5.9 KB
SRC pins_arduino.hSource file 5.9 KB
uno_wifi_rev2/1 file · 5.9 KB
SRC pins_arduino.hSource file 5.9 KB
wt32_eth01/1 file · 7 KB
SRC pins_arduino.hSource file 7 KB
xiao_esp32c3/1 file · 5.5 KB
SRC pins_arduino.hSource file 5.5 KB
TXT boards.txtText file 13 KB
TXT LICENSE-LGPL-2.1.txtText file 25.9 KB
TXT LICENSE-MIT.txtText file 1.3 KB
TXT platform.txtText file 8.5 KB
TXT README.txtText file 17.7 KB
Proteus Library Files/7 files · 384.4 KB
LIB TEPBLACKPILL.LIBProteus library 32.3 KB
LIB TEPCOMPASS.LIBProteus library 122.4 KB
LIB TEPESP01S.LIBProteus library 18.5 KB
LIB TEPLAPTOP.LIBProteus library 39.5 KB
LIB TEPMOBILE.LIBProteus library 13.1 KB
LIB TEPMPU9250.LIBProteus library 81.1 KB
LIB TEPOLEDSH1106.LIBProteus library 77.5 KB
Proteus Model Files/4 files · 3.5 MB
DLL TEPCOMPASS.DLLSimulation model 320.5 KB
DLL TEPMPU9250.DLLSimulation model 373.5 KB
DLL TEPNET.DLLSimulation model 2.5 MB
DLL TEPOLED.DLLSimulation model 342.5 KB
Proteus Simulation/6 files · 3.6 MB
DSN Black-Pill-Attitude-Compass.pdsprjProteus simulation 30.3 KB
HEX BlackPill_Attitude_Compass.hexCompiled HEX file 80.3 KB
DLL TEPCOMPASS.DLLSimulation model 320.5 KB
DLL TEPMPU9250.DLLSimulation model 373.5 KB
DLL TEPNET.DLLSimulation model 2.5 MB
DLL TEPOLED.DLLSimulation model 342.5 KB
TXT README.txtText file 16 KB

README

README.txt 200 lines
STM32 BLACK PILL LIBRARY FOR PROTEUS - V1.0 (YOUR STM32F411 SKETCH, ESP-01S WI-FI, AN ATTITUDE AND HEADING DISPLAY)
Designed by The Engineering Projects
www.TheEngineeringProjects.com

IMPORTANT LINKS
Article (read it first - pictures, step by step, every feature explained):
  https://www.theengineeringprojects.com/2026/10/stm32-black-pill-library-for-proteus.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/stm32-black-pill-proteus-library
The demo's parts are our libraries (included) - their articles:
  MPU9250:    https://www.theengineeringprojects.com/2026/10/mpu9250-library-for-proteus-v1-0.html
  GY-271:     https://www.theengineeringprojects.com/2026/10/hmc5883l-qmc5883l-compass-library-for-proteus-v1-0.html
  SH1106:     https://www.theengineeringprojects.com/2026/10/oled-sh1106-library-for-proteus-v1-0.html
  ESP-01S:    https://www.theengineeringprojects.com/2026/10/esp-01s-library-for-proteus.html
  Laptop and phone:
    https://www.theengineeringprojects.com/2026/10/laptop-wifi-monitor-library-for-proteus.html
    https://www.theengineeringprojects.com/2026/10/mobile-wifi-monitor-library-for-proteus.html
Support us (the libraries are free):
  https://www.theengineeringprojects.com/donate

FILE STRUCTURE
STM32-Black-Pill-TEP-v1.0/
|-- Proteus Library Files/
|   |-- TEPBLACKPILL.LIB                                 32.3 KB   the STM32 Black Pill, to LIBRARY
|   |-- TEPCOMPASS.LIB                                  122.4 KB   the GY-271 compass (demo), to LIBRARY
|   |-- TEPESP01S.LIB                                    18.5 KB   the ESP-01S (demo), to LIBRARY
|   |-- TEPLAPTOP.LIB                                    39.5 KB   the laptop (demo), to LIBRARY
|   |-- TEPMOBILE.LIB                                    13.1 KB   the phone (demo), to LIBRARY
|   |-- TEPMPU9250.LIB                                   81.1 KB   the MPU9250 (demo), to LIBRARY
|   |-- TEPOLEDSH1106.LIB                                77.5 KB   the SH1106 OLED (demo), to LIBRARY
|-- Proteus Model Files/
|   |-- TEPCOMPASS.DLL                                  320.5 KB   the GY-271 compass, to MODELS
|   |-- TEPMPU9250.DLL                                  373.5 KB   the MPU9250, to MODELS
|   |-- TEPNET.DLL                                       2.46 MB   the board + monitors + network, to MODELS
|   |-- TEPOLED.DLL                                     342.5 KB   the SH1106 OLED, to MODELS
|-- Arduino Code/
|   |-- BlackPill_Attitude_Compass/BlackPill_Attitude_Compass.ino   14.8 KB   the demo sketch
|   |-- TEP Boards for Proteus/hardware/                716.5 KB   the Arduino IDE add-on 1.26.0 (167 files)
|-- Proteus Simulation/
|   |-- BlackPill_Attitude_Compass.hex                   80.3 KB   the demo sketch (U1)
|   |-- Black-Pill-Attitude-Compass.pdsprj               30.3 KB   the demo: an attitude and heading display
|   |-- TEPCOMPASS.DLL                                  320.5 KB   copy of the model
|   |-- TEPMPU9250.DLL                                  373.5 KB   copy of the model
|   |-- TEPNET.DLL                                       2.46 MB   copy of the model
|   |-- TEPOLED.DLL                                     342.5 KB   copy of the model
|-- README.txt                                          ~14.7 KB   this file
Total: 8.16 MB (unzipped). The source code of the models is not included.

WHAT IS IT?
Proteus 8 has no STM32F411 (ARM Cortex-M4) processor model, so this is NOT a real STM32. It is WeAct Studio's Black Pill
V3.0 - the 53 x 21 mm board with the STM32F411CEU6, USB-C, the BOOT0, NRST and KEY buttons, the red power LED, the
blue LED on PC13, the 25 MHz and 32.768 kHz crystals, the SWD header and 2 x 20 pins - that runs YOUR STM32 sketch in
Proteus:
  * You write a normal Black Pill sketch with the STM32 core's pin names (PA0 .. PA15, PB0 .. PB15, PC13 .. PC15,
    LED_BUILTIN = PC13, USER_BTN = PA0, Serial, Serial1, Wire, SPI, analogRead 0 .. 1023, analogWrite, attachInterrupt
    ...) and compile it in the Arduino IDE with our board package "TEP Boards for Proteus" 1.26.0 (in Arduino Code - see
    INSTALLATION).
  * Inside the board, Proteus's own ATmega2560 model runs the compiled sketch at 16 MHz; our model (TEPNET.DLL) wraps
    it: the 32 GPIOs with their STM32 names, 3.3 V logic, analogRead on PA0 .. PA7, PB0, PB1 (0 .. 1023 for 0 .. 3.3 V),
    NRST, the KEY button (PA0 LOW while pressed), the blue LED on PC13 (lit when LOW), the power LED and the built-in
    serial monitor on the USB (Serial).
  * The Black Pill has no radio. For Wi-Fi, put an ESP-01 / ESP-01S on Serial1 (PA9 TX / PA10 RX) and talk to it with AT
    commands, as the demo does: it joins our virtual router TEP-WiFi with the Laptop and Mobile WiFi Monitors.
TEP additions: the USB-C port opens the serial monitor; the LEDs glow in the simulation. There is no panel: the board
has no Wi-Fi.
Limits (say them before you start): 16 MHz, 8 KB of RAM (the real STM32F411: 100 MHz, 128 KB), 256 KB of flash; int is
16 bits (use long / int32_t for big numbers); the STM32's own peripherals (HAL, LL, the timers, DMA and the DSP
instructions by register, the USB device, the RTC) are not there - write Arduino code, not registers. See MODEL SCOPE
AND LIMITS.

ONE DEVICE (search "BLACK PILL" or "STM32" in Pick Devices):
  STM32 BLACK PILL  "STM32 Black Pill" V1.0 (Microprocessor ICs > STM32 Boards), prefix U, model TEPNET.DLL. The serial
  monitor (115200 baud) has Monitor, Plotter and Board tabs (the Board tab: the LEDs, NRST, KEY, every pin). Like every
  TEP window it has no Windows title bar.
The same TEPNET.DLL also runs our other sketch boards, the ESP-01 / ESP-01S modules and the Laptop / Mobile WiFi
Monitors; it replaces any older TEPNET.DLL (keep only this newest one in MODELS).

TEST STATUS
V1.0: verified in Proteus 8.5 on 26 Oct 2026 with the demo project as shipped. What the Proteus run showed:
* Black-Pill-Attitude-Compass: the monitor printed "MPU9250 ready, QMC5883L ready, SH1106 ready", "Joining TEP-WiFi...
  connected", "Attitude page: http://192.168.1.102/", then "Heading 50.3 (NE)  pitch 1.0  roll -0.9  25.0 C  level"
  every 2 s; the PWR and C13 LEDs on; the OLED: the COMPASS page.
* The laptop (192.168.1.21) and the phone (192.168.1.41) opened http://192.168.1.102/ (HTTP 200).
* E on the GY-271's pop-up: "Heading 93.7 (E)", the needle and E on the OLED, the phone: Heading 93.5 (E).
* PITCH +15 twice on the MPU9250's pop-up: ">> TILT ALARM - pitch 29.9, roll -1.0", the C13 LED blinking, the phone
  and the laptop: TILT ALARM; LEVEL on the phone: "Page: LEVEL page", the bubble off the centre; FLAT: ">> level
  again"; ZERO: "Level zeroed (offsets 1.1, -0.8)", then "pitch -0.1  roll 0.5".
* About 244 s of simulation, with the four pop-ups, the monitor and both tools open. Once the phone's request timed
  out and its retry got "ESP-01S: ERROR" for the busy link; the next request worked.

INSTALLATION (about 3 minutes)
1. Close Proteus. Extract the WHOLE ZIP to a normal folder (e.g. Desktop).
2. Copy everything in "Proteus Library Files" to the LIBRARY folder of Proteus, for example:
     C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
   (on some PCs: C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\LIBRARY). TEPBLACKPILL.LIB is the board;
   the others are the demo's parts: TEPMPU9250.LIB, TEPCOMPASS.LIB, TEPOLEDSH1106.LIB, TEPESP01S.LIB, TEPLAPTOP.LIB and
   TEPMOBILE.LIB.
3. Copy the DLLs from "Proteus Model Files" (TEPNET.DLL, TEPMPU9250.DLL, TEPCOMPASS.DLL, TEPOLED.DLL) to the MODELS
   folder (...\Proteus 8 Professional\MODELS) - replace an older TEPNET.DLL (this one is the first that knows the Black
   Pill).
4. Delete TEPBLACKPILL.IDX from the LIBRARY folder if it is there.
5. The Arduino IDE (only to compile your own sketches - the demo has its HEX file): copy the folder
   "Arduino Code\TEP Boards for Proteus\hardware" into your sketchbook folder (normally Documents\Arduino), so that
   Documents\Arduino\hardware\tep\avr\boards.txt exists (replace an older copy); restart the IDE. The Arduino AVR Boards
   platform must be installed (it comes with IDE 1.8.x; in IDE 2.x install "Arduino AVR Boards" from the Boards Manager
   once). Tools > Board > TEP Boards for Proteus > STM32 Black Pill F411 (TEP Proteus). The demo also needs Adafruit
   SH110X, Adafruit GFX and Adafruit BusIO (Library Manager).
6. Start Proteus. In Pick Devices (P) search "BLACK PILL".

RUN THE DEMO
Keep the .hex file and the DLLs beside the project in "Proteus Simulation".
Black-Pill-Attitude-Compass.pdsprj - U1 the Black Pill (BlackPill_Attitude_Compass.hex) is an attitude and heading
display: U3 = the MPU9250 (GY-9250 board, I2C address 0x68: AD0 on GND, NCS on VCC for I2C), U4 = the GY-271 compass
(QMC5883L, 0x0D) and OLED1 = the 1.3" SH1106 OLED (0x3C), all three on one I2C bus (SDA PB7, SCL PB6); U2 = the ESP-01S
on Serial1 (its TXD to PA10, its RXD to PA9; 115200 baud, AT commands). PC1 the Laptop WiFi Monitor and MOB1 the Mobile
WiFi Monitor open http://192.168.1.102/ (the ESP-01S is U2). The MPU9250, the GY-271 and the OLED are the Advance
versions: each opens its pop-up window at Run, as the ESP-01S does.
The sketch reads the MPU9250's accelerometer five times a second (ACCEL_X / Y / Z from register 0x3B, +-2 g): pitch =
atan2(ax, sqrt(ay^2 + az^2)), roll = atan2(ay, az); the temperature comes from the same burst. The QMC5883L (set up as
the QMC5883LCompass library does: SET / RESET 0x01, control 0x1D) gives X and Y: heading = atan2(y, x), 0 .. 360
degrees, with the nearest of the eight compass points. Above 20 degrees of pitch or roll the TILT ALARM starts: the blue
C13 LED blinks (it is on while all is level), the OLED shows TILT!. The OLED has two pages - COMPASS (the heading and a
needle) and LEVEL (pitch, roll and a bubble); the KEY button (PA0) switches them, so do the page's COMPASS and LEVEL
links. ZERO makes the mount's pitch and roll of that moment the new zero.
Press Run. The ESP-01S joins TEP-WiFi and the monitor prints the page's address. On the GY-271's pop-up click E: the
heading turns to the east. On the MPU9250's pop-up click PITCH +15 twice: TILT ALARM. LEVEL on the phone shows the
bubble; FLAT on the MPU9250: level again.
The modules' supplies: in the demo the VCC of the MPU9250, the GY-271, the OLED and the ESP-01S go to Proteus' power
rail (power terminals) - their models read the supply as a digital level, which the board's 3V3 and 5V (analog sources)
do not give them; on a real board they sit on the Black Pill's 3V3 (the ESP-01S on its own 3.3 V regulator). Closed the
monitor? Click the board's USB-C port. The monitor (115200) takes STATUS, ZERO, PAGE and AT commands for the ESP-01S.
The heading is a plain compass reading: the QMC5883L's offsets (hard iron) move it by a few degrees until the module is
calibrated (the GY-271 article shows how); the two sensors are separate models, so the heading is not tilt-compensated.

THE PINS (the label on the board, what it can do in the simulation)
  A0 .. A7, B0, B1   GPIO, analogRead 0 .. 1023 for 0 .. 3.3 V (STM32 ADC1 channels 0 .. 9), PWM, interrupt
  A9 / A10           PA9 / PA10: Serial1 TX / RX (not the USB), GPIO
  B6 / B7            PB6 / PB7: Wire SCL / SDA (I2C), GPIO
  A4 .. A7           PA4 .. PA7: also SPI SS / SCK / MISO / MOSI
  A8, A11, A12, A15, B2 .. B5, B8 .. B10, B12 .. B15, C13 .. C15   GPIO, PWM, interrupt; C13 is also the blue LED
  A0                 also the KEY button (LOW when pressed)
  R                  NRST (LOW holds the board in reset)
  3V3, 5V, GND       3.3 V (the logic), 5 V, ground
  VB                 the RTC's battery: drawn, not modelled
Serial is the USB (the board's monitor), not PA9 / PA10. The pins are 3.3 V logic.

PROPERTIES (double-click the board > Edit Properties)
  PROGRAM   the sketch's HEX (Arduino IDE: Sketch > Export Compiled Binary with STM32 Black Pill F411 (TEP Proteus))
  MONITOR   YES = the built-in serial monitor on the USB (Serial);  BAUD  its speed (115200, or AUTO)
  AUTOOPEN  YES = the monitor window opens at Run (the demo: YES)
One Black Pill per design (its USB serial lines are hidden pins, and Proteus joins hidden pins of the same name across
parts).

TROUBLESHOOTING
* Nothing happens at Run: the HEX was not built with TEP Boards for Proteus - select STM32 Black Pill F411 (TEP Proteus)
  and export the binary again.
* "MPU9250 NOT FOUND": SDA on PB7, SCL on PB6, AD0 on GND (0x68), NCS on VCC (I2C mode); give it 100 ms after power-up.
* The ESP-01S does not answer, NO POWER on its pop-up: its VCC needs a digital supply (the power terminal, as in the
  demo); TXD to PA10, RXD to PA9; Serial1.begin(115200).
* "Joining TEP-WiFi... FAILED": the sketch's SSID / password differ from the ESP-01S's WIFISSID / WIFIPASS.
* The OLED stays dark: the SH1106 needs its own driver (Adafruit_SH1106G); an SSD1306 library shows random dots on it.
* An integer goes wrong above 32767: int is 16 bits on the hidden AVR - use long.
* The page shows old values: tap REFRESH (the monitors do not reload by themselves).

BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot and the Serial Monitor text:
  https://www.theengineeringprojects.com/forum/category/stm32-black-pill-proteus-library

LICENCES AND THIRD-PARTY NOTES
* The board model and the network (TEPNET.DLL, which also runs the ESP-01S), the symbols and artwork (TEPBLACKPILL.LIB,
  TEPESP01S.LIB, TEPLAPTOP.LIB, TEPMOBILE.LIB) and the module models (TEPMPU9250, TEPCOMPASS .LIB / .DLL,
  TEPOLEDSH1106.LIB / TEPOLED.DLL) are made by The Engineering Projects. The board's processor is Proteus's own
  ATmega2560 model. The source code of the models is not included.
* TEP Boards for Proteus (Arduino Code): its core, the variants and the EEPROM, SPI and Wire libraries are modified
  copies of the Arduino AVR core 1.8.6 - GNU Lesser General Public License 2.1 (LGPL 2.1, the text:
  LICENSE-LGPL-2.1.txt); its other libraries and our core files are MIT (LICENSE-MIT.txt).
* The demo sketch uses Adafruit SH110X, Adafruit GFX and Adafruit BusIO (BSD / MIT) - install them in the Arduino IDE
  (Library Manager) to compile it; the .hex is included. The sensors are read with Wire by hand.
* Proteus is a product of Labcenter Electronics and is not included. STM32 is a trademark of STMicroelectronics; Black
  Pill is WeAct Studio's board. This library is not made or endorsed by them or by Labcenter.

REBUILDING THE FIRMWARE (OPTIONAL)
The HEX file is supplied. Install TEP Boards for Proteus (INSTALLATION step 5) and the Adafruit libraries, open Arduino
Code\BlackPill_Attitude_Compass, select STM32 Black Pill F411 (TEP Proteus) and use Sketch > Export Compiled Binary. For
a real Black Pill install "STM32 MCU based boards" (STM32duino) in the Boards Manager, select "Generic STM32F4 series"
with the board part number "BlackPill F411CE" and upload over USB (DFU: hold BOOT0, tap NRST) - the same sketch.

MODEL SCOPE AND LIMITS
Modelled: the Black Pill's 32 GPIOs on a hidden ATmega2560 (Proteus's AVR model, 16 MHz, 3.3 V); digital I/O, analogRead
(PA0 .. PA7, PB0, PB1) 0 .. 1023 for 0 .. 3.3 V, PWM (analogWrite) and attachInterrupt on any pin through the board
model; NRST, KEY on PA0, the blue LED on PC13, the power LED; Serial (the USB, the board's monitor), Serial1 on PA9 /
PA10, Wire on PB6 / PB7 and SPI on PA4 .. PA7 (the AVR's hardware); Wi-Fi through a TEP ESP-01 / ESP-01S on Serial1.
Not modelled: the STM32F411 itself (100 MHz, 128 KB RAM, the FPU and DSP, HAL / LL, its timers, DMA, the USB device and
DFU, the RTC and VB, the second USART and I2C), BOOT0 (drawn: the sketch always runs), the SWD header. Upload over USB
is not used (Proteus loads the HEX). The simulation runs below real time.

VERSION
TEP STM32 Black Pill library V1.0 (Oct 2026). Device STM32 BLACK PILL (TEPBLACKPILL.LIB / TEPNET.DLL), TEP Boards for
Proteus 1.26.0 (adds the Black Pill). Demo sketch BlackPill_Attitude_Compass V1.0. Demo parts: MPU9250, GY-271
(QMC5883L) and SH1106 (the Advance versions), ESP-01S WIFI MODULE, LAPTOP WIFI MONITOR and MOBILE WIFI MONITOR.
Advertisement

Development1 release

  1. V1.0STM32 Black Pill Library for Proteus 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.

Installation10 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
  • The compiler named in the tutorialto build the source files into firmware
  • Any archive toolWindows, macOS and Linux extract ZIP files on their own

Steps

  1. 1

    Extract the archive

    Right-click stm32-black-pill-tep-v1-0-4877f09d58ff4a51aff8a37ece28e177.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (STM32-Black-Pill-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move TEPBLACKPILL.LIB, TEPCOMPASS.LIB and TEPESP01S.LIB and 4 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 TEPCOMPASS.DLL, TEPMPU9250.DLL and TEPNET.DLL and 1 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

    Install the Arduino library

    In the Arduino IDE choose Sketch → Include Library → Add .ZIP Library and pick the library, or copy its folder into Documents\Arduino\libraries. Restart the IDE to see its examples.

  6. 6

    Open the sketch in the Arduino IDE

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

  7. 7

    Build the source code

    Open abi.cpp, Arduino.h and binary.h and 49 more in the compiler named in the tutorial (MikroC, Keil, MPLAB, Code Composer or the Arduino IDE) and build it to get the firmware.

  8. 8

    Load the HEX file

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

  9. 9

    Open the example simulation

    Open Black-Pill-Attitude-Compass.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.

  10. 10

    Follow the tutorial

    STM32 Black Pill Library for Proteus: MPU9250, Compass, OLED 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 STM32 Black Pill Library for Proteus 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?

STM32 Black Pill Library for Proteus V1.0 comes as a ZIP archive of 186 files (3.7 MB, 8.2 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch, an Arduino library, compiled HEX firmware and source code. Open the File Structure tab for the full list of 186 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, ee94f704c7a277db10df465f16dbc8c7bd1dacedb5806c17b670af329f092a36. In PowerShell run Get-FileHash "stm32-black-pill-tep-v1-0-4877f09d58ff4a51aff8a37ece28e177.zip"; on macOS or Linux run shasum -a 256 "stm32-black-pill-tep-v1-0-4877f09d58ff4a51aff8a37ece28e177.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 · stm32-black-pill-tep-v1-0-4877f09d58ff4a51aff8a37ece28e177.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 0Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 27 Oct 2026Uploaded at
Last 14 days0 downloads
SHA-256 ee94f704c7a277db10df465f16dbc8c7bd1dacedb5806c17b670af329f092a36
DocumentationSTM32 Black Pill Library for Proteus: MPU9250, Compass, OLED
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.