TEP DOWNLOAD CENTER

Project Files of Raspberry Pi Model B Library for Proteus: Python GPIO Simulation

Libraries Code Projects Simulation
tep://download-terminal raspberry-pi-model-b-tep-v1-0-c4738cbe83374655b2c233a589d99bf5.zip ZIP archiveV1.0Verified0 downloads Free
Raspberry Pi Model B Library for Proteus: the Pi running a Python distance meter with an HC-SR04, an I2C LCD and the Pi Terminal
Proteus library · File 1 of 1

Raspberry Pi Model B Library for Proteus V1.0

Raspberry Pi Model B Library for Proteus V1.0 comes as a ZIP archive of 148 files (13.9 MB, 27.3 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, source code and a nested archive.

  • LIBProteus library
  • DLLProteus model
  • DSNProteus simulation
  • SRCSource code
  • ZIPNested archive

Description

Raspberry-Pi-Model-B-Library-for-Proteus-v1.0.zip with the Raspberry Pi Model B in Proteus (BCM2835, the 26-pin P1 header, Ethernet and the five LEDs; it runs your Python program with RPi.GPIO, gpiozero, smbus2, spidev, pyserial, 1-Wire, Adafruit_DHT and sockets, with the Pi Terminal; TEPRPIB.LIB, TEPNET.DLL and the TEPPi folder with Python 3.11), the demos' I2C LCD 16x2, HC-SR04, DS18B20 and DHT parts, our Laptop and Mobile WiFi Monitors, the distance meter and weather station demo projects with their programs, blink.py and a README.

Read Raspberry Pi Model B Library for Proteus: Python GPIO Simulation

File Structure

raspberry-pi-model-b-tep-v1-0-c4738cbe83374655b2c233a589d99bf5.zip148 files · 21 folders · 27.3 MB unpacked
Raspberry-Pi-Model-B-TEP-v1.0/148 files · 27.3 MB
Proteus Library Files/7 files · 696.1 KB
LIB TEPDHT.LIBProteus library 155.3 KB
LIB TEPDS18B20.LIBProteus library 88 KB
LIB TEPHCSR04.LIBProteus library 170.1 KB
LIB TEPI2CLCD16X2.LIBProteus library 181.4 KB
LIB TEPLAPTOP.LIBProteus library 39.5 KB
LIB TEPMOBILE.LIBProteus library 13.1 KB
LIB TEPRPIB.LIBProteus library 48.7 KB
Proteus Model Files/128 files · 22.8 MB
TEPPi/123 files · 19.1 MB
python/33 files · 17.5 MB
DLL libcrypto-3.dllSimulation model 3.3 MB
DLL libffi-8.dllSimulation model 34.3 KB
DLL libssl-3.dllSimulation model 620.8 KB
TXT LICENSE.txtText file 36 KB
PYD pyexpat.pydPYD file 169.8 KB
CAT python.catCAT file 628.1 KB
EXE python.exeEXE file 99.3 KB
DLL python3.dllSimulation model 65.3 KB
DLL python311.dllSimulation model 4.8 MB
ZIP python311.zipArchive 4.1 MB
_PTH python311._pth_PTH file 80 B
EXE pythonw.exeEXE file 97.8 KB
PYD select.pydPYD file 26.8 KB
DLL sqlite3.dllSimulation model 1.2 MB
PYD unicodedata.pydPYD file 1.1 MB
DLL vcruntime140.dllSimulation model 88.9 KB
PYD winsound.pydPYD file 27.3 KB
PYD _asyncio.pydPYD file 55.8 KB
PYD _bz2.pydPYD file 79.8 KB
PYD _ctypes.pydPYD file 105.8 KB
PYD _decimal.pydPYD file 193.8 KB
PYD _elementtree.pydPYD file 113.8 KB
PYD _hashlib.pydPYD file 48.8 KB
PYD _lzma.pydPYD file 145.8 KB
PYD _msi.pydPYD file 36.8 KB
PYD _multiprocessing.pydPYD file 29.3 KB
PYD _overlapped.pydPYD file 42.3 KB
PYD _queue.pydPYD file 28.8 KB
PYD _socket.pydPYD file 67.3 KB
PYD _sqlite3.pydPYD file 89.3 KB
PYD _ssl.pydPYD file 153.8 KB
PYD _uuid.pydPYD file 22.8 KB
PYD _zoneinfo.pydPYD file 38.8 KB
runtime/90 files · 1.6 MB
Adafruit_DHT/1 file · 2.5 KB
PYC __init__.pycPYC file 2.5 KB
colorzero/16 files · 206.9 KB
__pycache__/8 files · 121.6 KB
PYC attr.cpython-311.pycPYC file 9.2 KB
PYC color.cpython-311.pycPYC file 49.6 KB
PYC conversions.cpython-311.pycPYC file 19.7 KB
PYC deltae.cpython-311.pycPYC file 7.6 KB
PYC easings.cpython-311.pycPYC file 1.6 KB
PYC tables.cpython-311.pycPYC file 18.9 KB
PYC types.cpython-311.pycPYC file 13.6 KB
PYC __init__.cpython-311.pycPYC file 1.4 KB
SRC attr.pySource file 6.5 KB
SRC color.pySource file 37.9 KB
SRC conversions.pySource file 11.1 KB
SRC deltae.pySource file 5.5 KB
SRC easings.pySource file 885 B
SRC tables.pySource file 13.6 KB
SRC types.pySource file 9 KB
SRC __init__.pySource file 878 B
colorzero-2.0.dist-info/5 files · 6.6 KB
TXT LICENSE.txtText file 1.5 KB
FILE METADATAFile 4 KB
FILE RECORDFile 1004 B
TXT top_level.txtText file 10 B
FILE WHEELFile 110 B
gpiozero/48 files · 1.2 MB
fonts/4 files · 24.8 KB
__pycache__/1 file · 12.2 KB
PYC __init__.cpython-311.pycPYC file 12.2 KB
TXT 14seg.txtText file 2.6 KB
TXT 7seg.txtText file 1.1 KB
SRC __init__.pySource file 8.9 KB
pins/19 files · 467.5 KB
__pycache__/8 files · 233.1 KB
PYC data.cpython-311.pycPYC file 59 KB
PYC local.cpython-311.pycPYC file 12 KB
PYC pi.cpython-311.pycPYC file 32 KB
PYC pigpio.cpython-311.pycPYC file 33.2 KB
PYC rpigpio.cpython-311.pycPYC file 12.2 KB
PYC spi.cpython-311.pycPYC file 11.6 KB
PYC style.cpython-311.pycPYC file 4.1 KB
PYC __init__.cpython-311.pycPYC file 68.8 KB
SRC data.pySource file 58.5 KB
SRC lgpio.pySource file 12.4 KB
SRC local.pySource file 6.6 KB
SRC mock.pySource file 18.5 KB
SRC native.pySource file 20.7 KB
SRC pi.pySource file 27.8 KB
SRC pigpio.pySource file 21.1 KB
SRC rpigpio.pySource file 7.1 KB
SRC spi.pySource file 7.7 KB
SRC style.pySource file 2.7 KB
SRC __init__.pySource file 51.2 KB
__pycache__/12 files · 423.2 KB
PYC boards.cpython-311.pycPYC file 126.9 KB
PYC compat.cpython-311.pycPYC file 2.3 KB
PYC devices.cpython-311.pycPYC file 30.4 KB
PYC exc.cpython-311.pycPYC file 16.7 KB
PYC input_devices.cpython-311.pycPYC file 60.1 KB
PYC internal_devices.cpython-311.pycPYC file 35.9 KB
PYC mixins.cpython-311.pycPYC file 29.7 KB
PYC output_devices.cpython-311.pycPYC file 79.4 KB
PYC spi_devices.cpython-311.pycPYC file 24.4 KB
PYC threads.cpython-311.pycPYC file 2.8 KB
PYC tones.cpython-311.pycPYC file 11.2 KB
PYC __init__.cpython-311.pycPYC file 3.3 KB
SRC boards.pySource file 100.9 KB
SRC compat.pySource file 1.2 KB
SRC devices.pySource file 24.3 KB
SRC exc.pySource file 7.4 KB
SRC input_devices.pySource file 53.6 KB
SRC internal_devices.pySource file 26.1 KB
SRC mixins.pySource file 20.5 KB
SRC output_devices.pySource file 60.5 KB
SRC spi_devices.pySource file 19.6 KB
SRC threads.pySource file 1.6 KB
SRC tones.pySource file 8.4 KB
SRC tools.pySource file 20.9 KB
SRC __init__.pySource file 2.6 KB
gpiozero-2.0.1.post3.dist-info/6 files · 14.6 KB
TXT entry_points.txtText file 539 B
RST LICENSE.rstRST file 1.4 KB
FILE METADATAFile 9.7 KB
FILE RECORDFile 2.8 KB
TXT top_level.txtText file 21 B
FILE WHEELFile 92 B
RPi/2 files · 17.6 KB
PYC GPIO.pycPYC file 17.4 KB
PYC __init__.pycPYC file 257 B
serial/2 files · 14.8 KB
PYC serialutil.pycPYC file 691 B
PYC __init__.pycPYC file 14.1 KB
smbus2/1 file · 12.7 KB
PYC __init__.pycPYC file 12.7 KB
PYC adafruit_dht.pycPYC file 3.6 KB
PYC board.pycPYC file 1.7 KB
PYC smbus.pycPYC file 418 B
PYC spidev.pycPYC file 5 KB
PYC tep_pi.pycPYC file 33.7 KB
PYC tep_pi_boot.pycPYC file 7.2 KB
PYC tep_pi_fs.pycPYC file 13.8 KB
PYC tep_pi_net.pycPYC file 28.5 KB
PYC tep_pi_w1.pycPYC file 8.8 KB
DLL TEPDHT.DLLSimulation model 306.5 KB
DLL TEPDS18B20.DLLSimulation model 305 KB
DLL TEPHCSR04.DLLSimulation model 382.5 KB
DLL TEPLCD.DLLSimulation model 371 KB
DLL TEPNET.DLLSimulation model 2.4 MB
Proteus Simulation/9 files · 3.8 MB
SRC distance_meter.pySource file 1.9 KB
DSN Pi-Model-B-Distance-Meter.pdsprjProteus simulation 44.2 KB
DSN Pi-Model-B-Weather-Web.pdsprjProteus simulation 30.6 KB
DLL TEPDHT.DLLSimulation model 306.5 KB
DLL TEPDS18B20.DLLSimulation model 305 KB
DLL TEPHCSR04.DLLSimulation model 382.5 KB
DLL TEPLCD.DLLSimulation model 371 KB
DLL TEPNET.DLLSimulation model 2.4 MB
SRC weather_web.pySource file 2.4 KB
Python Code/3 files · 4.6 KB
SRC blink.pySource file 291 B
SRC distance_meter.pySource file 1.9 KB
SRC weather_web.pySource file 2.4 KB
TXT README.txtText file 17.2 KB

README

README.txt 216 lines
RASPBERRY PI MODEL B LIBRARY FOR PROTEUS - V1.0 (THE ORIGINAL PI: BCM2835, 512 MB, 26-PIN HEADER, ETHERNET)
YOUR PYTHON PROGRAM RUNS ON THE BOARD: RPi.GPIO, gpiozero, smbus2, spidev, serial, sockets, http.server
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/raspberry-pi-model-b-library-for-proteus.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/raspberry-pi-model-b-proteus-library
The demos use our I2C LCD 16x2, HC-SR04, DS18B20 and DHT22 libraries (all included) - their articles:
  https://www.theengineeringprojects.com/2026/10/i2c-lcd-16x2-library-for-proteus-v1-0.html
  https://www.theengineeringprojects.com/2026/10/ultrasonic-sensor-library-for-proteus-v2-0.html
  https://www.theengineeringprojects.com/2026/10/ds18b20-library-for-proteus-v1-0.html
  https://www.theengineeringprojects.com/2026/10/dht11-dht22-library-for-proteus-v1-0.html
The web demo is opened by our Laptop WiFi Monitor and Mobile WiFi Monitor (both included) - their articles:
  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
Raspberry-Pi-Model-B-TEP-v1.0/
|-- Proteus Library Files/
|   |-- TEPDHT.LIB                                      155.3 KB   DHT11 / DHT22 (demo), to LIBRARY
|   |-- TEPDS18B20.LIB                                   88.0 KB   DS18B20 (demo), to LIBRARY
|   |-- TEPHCSR04.LIB                                   170.1 KB   HC-SR04 (demo), to LIBRARY
|   |-- TEPI2CLCD16X2.LIB                               181.4 KB   I2C LCD 16x2 (demo), to LIBRARY
|   |-- TEPLAPTOP.LIB                                    39.5 KB   the laptop, to LIBRARY
|   |-- TEPMOBILE.LIB                                    13.1 KB   the phone, to LIBRARY
|   |-- TEPRPIB.LIB                                      48.7 KB   the Raspberry Pi Model B, to LIBRARY
|-- Proteus Model Files/
|   |-- TEPDHT.DLL                                      306.5 KB   the DHT22, to MODELS
|   |-- TEPDS18B20.DLL                                  305.0 KB   the DS18B20, to MODELS
|   |-- TEPHCSR04.DLL                                   382.5 KB   the HC-SR04, to MODELS
|   |-- TEPLCD.DLL                                      371.0 KB   the LCD, to MODELS
|   |-- TEPNET.DLL                                       2.36 MB   the Pi + monitors, to MODELS
|   |-- TEPPi/python/                                   17.54 MB   Python 3.11.9 embeddable (33 files)
|   |-- TEPPi/runtime/                                   1.60 MB   TEP Pi runtime, gpiozero (90 files)
|-- Python Code/
|   |-- blink.py                                          0.3 KB   an LED on GPIO17 (the default)
|   |-- distance_meter.py                                 1.9 KB   demo 1
|   |-- weather_web.py                                    2.4 KB   demo 2
|-- Proteus Simulation/
|   |-- distance_meter.py                                 1.9 KB   the program of demo 1
|   |-- Pi-Model-B-Distance-Meter.pdsprj                 44.2 KB   demo 1: HC-SR04 + I2C LCD
|   |-- Pi-Model-B-Weather-Web.pdsprj                    30.6 KB   demo 2: web page
|   |-- TEPDHT.DLL                                      306.5 KB   copy of the model
|   |-- TEPDS18B20.DLL                                  305.0 KB   copy of the model
|   |-- TEPHCSR04.DLL                                   382.5 KB   copy of the model
|   |-- TEPLCD.DLL                                      371.0 KB   copy of the model
|   |-- TEPNET.DLL                                       2.36 MB   copy of the model
|   |-- weather_web.py                                    2.4 KB   the program of demo 2
|-- README.txt                                          ~15.3 KB   this file
Total: 27.31 MB (unzipped). The source code of the models and of the TEP Pi runtime is not included.

WHAT IS IT?
The original Raspberry Pi Model B (revision 2, 2012) as one Proteus part - and a way to run Raspberry Pi programs in
Proteus 8.5. Proteus cannot run Raspberry Pi OS, so this library does not emulate Linux. It does what matters for
electronics: the board runs YOUR PYTHON PROGRAM (a .py file, the PROGRAM property) against the circuit on the sheet,
with the Python libraries a Pi uses for its pins.
  * At Run the board starts Python 3.11 (included: the TEPPi folder) with our TEP Pi runtime, then your program.
    The program and Proteus work in lockstep: while the program runs, Proteus waits; while the program sleeps, waits
    for a pin or for the network, Proteus runs. So time.sleep(0.5) is 0.5 s of simulation, a busy loop still moves
    the clock (about 7 us per GPIO call, as Python on the Model B's 700 MHz ARM11), and every edge is on time.
  * Threads work (gpiozero's blink, hold and sampling threads, your own threading.Thread, Timer, Queue): every wait
    is a wait in simulation time.
  * The Python libraries for the pins (the same names, numbers and messages as on a Pi):
      RPi.GPIO      setmode, setup, output, input, cleanup, add_event_detect / event_detected / wait_for_edge with
                    callbacks and bouncetime, PWM (software PWM made by the board, steady while the program sleeps)
      gpiozero      LED, PWMLED, Button, LEDBoard, Buzzer, Servo, MotionSensor, LineSensor, DistanceSensor,
                    CPUTemperature and the rest (gpiozero 2.0.1, unchanged, on RPi.GPIO)
      smbus2 / smbus  I2C bus 1 on GPIO2 (SDA) / GPIO3 (SCL) at 100 kHz, the Pi's 1.8 k pull-ups; a device that does
                    not answer gives OSError [Errno 121] Remote I/O error
      spidev        SPI0 on GPIO11 (SCLK), GPIO10 (MOSI), GPIO9 (MISO), CE0 = GPIO8, CE1 = GPIO7, modes 0 to 3
      serial        pyserial on /dev/serial0 (= /dev/ttyAMA0): TXD GPIO14, RXD GPIO15, any baud rate
      1-Wire        the DS18B20's files under /sys/bus/w1/devices (w1-gpio on GPIO4), as the kernel makes them
      Adafruit_DHT, adafruit_dht + board   DHT11 / DHT22 on any GPIO
      socket        TCP and UDP on the board's Ethernet, http.server / socketserver, urllib.request, select
  * The Pi's own files: /proc/cpuinfo (Revision 000e, BCM2835), /proc/device-tree/model ("Raspberry Pi Model B Rev
    2"), the CPU temperature in /sys/class/thermal (gpiozero's CPUTemperature), /proc/loadavg, /proc/meminfo.
  * Ethernet: the RJ45 is a cable to our virtual router (the same network as our ESP32 / Arduino Wi-Fi parts and the
    Laptop / Mobile WiFi Monitors). eth0 gets 192.168.1.51 (192.168.1.(50 + the part's number)) 1.2 s after Run,
    the name raspberrypi.local. Click the RJ45 jack to pull the cable or plug it in.
  * The Pi Terminal (our TEP window, no Windows title bar): the shell prompt (pi@raspberrypi:~ $ python3 ...), the
    program's output (OUT) and errors (ERR, as Python prints them on a Pi), a line for input() (IN); its Board tab
    shows the GPIOs (BCM numbers), the LEDs, the supply pins and RESTART PROGRAM. Click the HDMI socket or the
    processor to open it.
  * The status LEDs: PWR, ACT (the SD card: it flickers while the board boots and when the program prints), FDX, LNK
    (it flickers with the network traffic) and 100.
  * The header's supply pins drive their nets: modules wired to the Pi's 5V, 3V3 and GND get their power from it, as
    on the bench.
The board is drawn our way at its real size (85.6 x 56 mm): P1 in the top-left corner with P5's pads under it, the
yellow RCA video and blue audio jacks, the five LEDs, the stacked USB sockets and the RJ45 on the right, HDMI and the
camera connector at the bottom, micro-USB power, the display connector and the SD card on the left, the Samsung RAM on
the BCM2835 and the SMSC LAN9512. P1's 26 pins leave the top edge as one comb 50 thou apart (each pin under its column),
each with a colour-coded tag: 5V red, 3V3 orange, GND black, GPIO green, I2C blue, SPI pink, UART purple.

ONE DEVICE (search "RASPBERRY" in Pick Devices):
  RASPBERRY PI MODEL B  "Raspberry Pi Model B" V1.0 (category Microprocessor ICs > Raspberry Pi), prefix PI, model
                        TEPNET.DLL (with the TEPPi folder)
The same TEPNET.DLL also runs our Ethernet and Wi-Fi shields, modules and boards 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 24 Oct 2026 with the demo projects as shipped (the windows off-screen, posted clicks
and keys). What the Proteus runs showed:
* Pi-Model-B-Distance-Meter: the program starts 0.5 s after Run; gpiozero's DistanceSensor follows the
  HC-SR04's swinging object (14.8 cm to 141.7 cm), the I2C LCD shows "Distance: 14.8cm" and "TOO CLOSE!", the LED on
  GPIO17 lights below 20 cm, the terminal prints a reading every 0.5 s; gpiozero's PWMSoftwareFallback warning
  appears as on a real Pi.
* Pi-Model-B-Weather-Web: eth0 up 1.2 s after Run (192.168.1.51); the DS18B20 reads 24.0 C through /sys/bus/w1
  (crc YES), the DHT22 24.0 C and 50.0 %; the laptop (192.168.1.21) and the phone (192.168.1.41) open the page:
  HTTP 200; http.server logs each request in the Pi Terminal.
* The Board tab: the BCM pins (HIGH / LOW outputs, pull-up / pull-dn inputs), the LEDs, 5V 5.00 V and 3V3 3.30 V.
* Our test projects: gpiozero LED.blink / Button, RPi.GPIO edges with callbacks, software PWM (100 Hz), input() from
  the terminal, an I2C scan (0x27 found), SPI0 looped back in modes 0, 1, 2 and 3 (5 bytes each, all equal), I2C
  with no device (OSError [Errno 121] Remote I/O error), the UART looped back at 9600 and 115200 baud.
* Speed on our test PC: about 50 to 80 % of real time with the Pi Terminal open.

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 - use the folder that already holds
   Proteus's own .LIB files). TEPRPIB.LIB is the Pi; the others are the demos' parts.
3. Copy everything in "Proteus Model Files" - the DLLs AND the TEPPi folder - to the MODELS folder:
     C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\MODELS
   TEPPi holds Python 3.11 and the TEP Pi runtime; the Pi finds it next to TEPNET.DLL, in MODELS or next to your
   project. Replace an older TEPNET.DLL (this one is the first with the Raspberry Pi).
4. Delete TEPRPIB.IDX (and the IDX files of the other LIBs) from the LIBRARY folder if they are there.
5. Start Proteus. In Pick Devices (P) search "RASPBERRY".
Nothing else to install: Python is in TEPPi (no Python on the PC needed, none is changed).

RUN THE DEMOS
Keep the .py files and the DLLs beside the projects in "Proteus Simulation" (the TEPPi folder in MODELS).
  Pi-Model-B-Distance-Meter.pdsprj - PI1 runs distance_meter.py: U1 an HC-SR04 (TRIG GPIO23, ECHO GPIO24; its object
  swings from 60 cm), LCD1 an I2C LCD 16x2 (0x27 on SDA / SCL), the LED D1 on GPIO17 through R1 220R. The modules get
  5V and GND from the Pi's header (net labels 5V, GND). Press Run: after the 0.5 s boot the program starts - the LCD
  shows the distance and a bar, the terminal prints each reading, the LED lights closer than 20 cm.
  Pi-Model-B-Weather-Web.pdsprj - PI1 runs weather_web.py: U1 a DS18B20 on GPIO4 (1-Wire), DHT1 a DHT22 on GPIO17, both
  from the Pi's 3V3 and GND; PC1 the Laptop WiFi Monitor and MOB1 the Mobile WiFi Monitor (home page
  http://192.168.1.51:8000/). Press Run: "waiting for the network ...", then "serving on http://192.168.1.51:8000/"
  when eth0 is up; the readings every 2 s. In the laptop's or the phone's browser press Go: the page with both
  temperatures and the humidity; the terminal logs each request as http.server does on a Pi.

YOUR OWN PROGRAMS
Write the program with any editor, put the .py next to your project and set the Pi's PROGRAM property to its name (or
a full path). Start from Python Code\blink.py (an LED on GPIO17). Python's standard library is there; other
pure-Python packages work when you copy them next to your program. Use BCM numbers (GPIO.setmode(GPIO.BCM),
gpiozero's LED(17)) or GPIO.setmode(GPIO.BOARD) with the header's pin numbers.
A program that never sleeps and never touches a pin for 3 real seconds is left running on its own (the simulation
goes on); input() waits for a line typed in the Pi Terminal.

THE HEADER P1 (26 pins, BCM numbers - the tags on the board)
   1 3V3        2 5V          3 GPIO2 SDA    4 5V          5 GPIO3 SCL    6 GND         7 GPIO4 (1-Wire)
   8 GPIO14 TXD 9 GND        10 GPIO15 RXD  11 GPIO17     12 GPIO18      13 GPIO27     14 GND
  15 GPIO22    16 GPIO23     17 3V3         18 GPIO24     19 GPIO10 MOSI 20 GND        21 GPIO9 MISO
  22 GPIO25    23 GPIO11 SCLK 24 GPIO8 CE0  25 GND        26 GPIO7 CE1
3.3 V logic: GPIO2 / GPIO3 have the Pi's 1.8 k pull-ups to 3.3 V; RPi.GPIO's pull-ups / pull-downs are weak drives.

PROPERTIES (double-click the Pi > Edit Properties)
  PROGRAM    the Python program (default blink.py; a name next to the project or a full path)
  AUTOOPEN   the Pi Terminal at Run: YES (default) or NO
  ETHERNET   the cable to the router at Run: IN (default) or OUT
  PYTHON     a python.exe of your own (empty: TEPPi's)
  RUNTIME    the TEP Pi runtime folder (empty: TEPPi's)

TROUBLESHOOTING
* "TEP Pi: the TEPPi folder ... was not found": copy the TEPPi folder from "Proteus Model Files" into MODELS (or next
  to the project).
* "python3: can't open file": the PROGRAM file is not next to the project - put it there or give a full path.
* ModuleNotFoundError for a package: only the libraries above are built in; copy a pure-Python package's folder next to
  your program. C extensions (numpy, OpenCV, picamera) do not work.
* OSError [Errno 121] Remote I/O error: no I2C device answered its address - check SDA / SCL and the address.
* An LCD stays blank: give its controller time (the HD44780 wants about 5 ms after each init command).
* The page does not open: eth0 comes up 1.2 s after Run (the cable must be in); use the address the program prints.
* A paused simulation shows the SIMULATION LOG: click the Schematic Capture tab.

BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot, the program, the Pi Terminal's text and the simulation log:
  https://www.theengineeringprojects.com/forum/category/raspberry-pi-model-b-proteus-library

SUPPORT US
This library is free. If it saves you time, please support our work:
  https://www.theengineeringprojects.com/donate

WEBSITE
  https://www.theengineeringprojects.com/

LICENCES AND THIRD-PARTY NOTES
* The Raspberry Pi board model, the TEP Pi runtime, the Pi Terminal and the network (TEPNET.DLL, the compiled .pyc files
  in TEPPi\runtime with the stand-ins RPi, smbus2, smbus, spidev, serial, Adafruit_DHT, adafruit_dht, board), the
  symbols and artwork (TEPRPIB.LIB) and the module models of the demos (TEPLCD.DLL, TEPHCSR04.DLL, TEPDS18B20.DLL,
  TEPDHT.DLL and their LIBs) are made by The Engineering Projects. Our stand-ins follow the APIs of RPi.GPIO, smbus2,
  py-spidev, pyserial, Adafruit_DHT and adafruit-circuitpython-dht; none of their code is copied. The source code of
  the models is not included (nor the runtime's: it ships compiled for the included Python 3.11).
* TEPPi\python is the official embeddable Python 3.11.9 for Windows (32-bit) from python.org, unchanged, under the
  Python Software Foundation License (TEPPi\python\LICENSE.txt).
* TEPPi\runtime\gpiozero is gpiozero 2.0.1.post3 and TEPPi\runtime\colorzero is colorzero 2.0, unchanged, under the BSD
  3-Clause licence (their LICENSE files in the dist-info folders).
* Proteus is a product of Labcenter Electronics and is not included. Raspberry Pi is a trademark of Raspberry Pi Ltd.
  This library is not made or endorsed by Raspberry Pi Ltd or Labcenter.

MODEL SCOPE AND LIMITS
Modelled: the 17 GPIOs of P1 (inputs, outputs, RPi.GPIO's pull-ups / pull-downs, edges, software PWM), the I2C, SPI,
UART, 1-Wire and DHT buses as the Pi's drivers drive them, the supply pins, Ethernet with TCP and UDP to every TEP
network part (DHCP 1.2 s after Run, the cable), the five status LEDs, a 0.5 s boot before the program starts, the
Pi's /proc and /sys files above, the Pi Terminal. Not modelled: Raspberry Pi OS (no desktop, no shell commands, no apt,
no os.system), the HDMI, RCA video and audio outputs, the camera and display connectors, USB, the SD card's files,
hardware PWM (GPIO18 is software PWM here), the P5 header, C programs and C extensions, the real CPU's speed (each GPIO
call takes about 7 us; pure Python code takes no simulation time), real-time jitter. The model's own choices: the
board's IP address (192.168.1.51 for PI1), the boot time, the router; the simulation runs below real time.

VERSION
TEP Raspberry Pi Model B library V1.0 (Oct 2026). Device RASPBERRY PI MODEL B (TEPRPIB.LIB / TEPNET.DLL with TEPPi:
Python 3.11.9 and the TEP Pi runtime 0.2). Demo programs distance_meter.py and weather_web.py V1.0, blink.py.

Development1 release

  1. V1.0Raspberry Pi Model B 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.

Installation7 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
  • Pythonto 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 raspberry-pi-model-b-tep-v1-0-c4738cbe83374655b2c233a589d99bf5.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (Raspberry-Pi-Model-B-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move TEPDHT.LIB, TEPDS18B20.LIB and TEPHCSR04.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 TEPDHT.DLL, TEPDS18B20.DLL and TEPHCSR04.DLL and 9 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

    Build the source code

    Open distance_meter.py, weather_web.py and blink.py and 30 more in the compiler named in the tutorial (MikroC, Keil, MPLAB, Code Composer or the Arduino IDE) and build it to get the firmware.

  6. 6

    Open the example simulation

    Open Pi-Model-B-Distance-Meter.pdsprj and Pi-Model-B-Weather-Web.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.

  7. 7

    Follow the tutorial

    Raspberry Pi Model B Library for Proteus: Python GPIO 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

FAQs8 questionsContact TEP

How do I download Raspberry Pi Model B 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.

What is inside the archive?

Raspberry Pi Model B Library for Proteus V1.0 comes as a ZIP archive of 148 files (13.9 MB, 27.3 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, source code and a nested archive. Open the File Structure tab for the full list of 148 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, 01bb020b7c3c96dffcb3b8880b9cbc1216c0e8a39c73c7f378a6b2f1e3903a20. In PowerShell run Get-FileHash "raspberry-pi-model-b-tep-v1-0-c4738cbe83374655b2c233a589d99bf5.zip"; on macOS or Linux run shasum -a 256 "raspberry-pi-model-b-tep-v1-0-c4738cbe83374655b2c233a589d99bf5.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.

preparing · raspberry-pi-model-b-tep-v1-0-c4738cbe83374655b2c233a589d99bf5.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
  • 24 Oct 2026Uploaded at
Last 14 days0 downloads
SHA-256 01bb020b7c3c96dffcb3b8880b9cbc1216c0e8a39c73c7f378a6b2f1e3903a20
DocumentationRaspberry Pi Model B Library for Proteus: Python GPIO Simulation
Need help with this file? Bug report Ask a question Download problemsGet updates

Comments

0

Join the conversation

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