Project Files of Raspberry Pi 5 Home Automation with Relays - Proteus Simulation
cea7f96e6f5c4482875aa2412fb7f933.zip

Raspberry Pi 5 Home Automation with Relays - Proteus Simulation V1.0
Raspberry Pi 5 Home Automation with Relays - Proteus Simulation V1.0 comes as a ZIP archive of 144 files (14.4 MB, 28.6 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-5-Home-Automation-Relays-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (a Raspberry Pi 5, a 4-channel relay module, three 12 V bulbs, a 12 V fan, four rocker switches, a resistor network, the Laptop and Mobile WiFi Monitors), the Python program home.py, every LIB and DLL, the TEP Pi runtime and a README.
File Structure
17.7 KB39.5 KB13.1 KB24.8 KB490.4 KB296 KB13.1 KB60.5 KB3.3 MB34.3 KB620.8 KB36 KB169.8 KB628.1 KB99.3 KB65.3 KB4.8 MB4.1 MB80 B97.8 KB26.8 KB1.2 MB1.1 MB88.9 KB27.3 KB55.8 KB79.8 KB105.8 KB193.8 KB113.8 KB48.8 KB145.8 KB36.8 KB29.3 KB42.3 KB28.8 KB67.3 KB89.3 KB153.8 KB22.8 KB38.8 KB2.1 KB9.9 KB4.1 KB1.3 KB4.7 KB431 B2.5 KB17.5 KB283 B6.5 KB37.9 KB11.1 KB5.5 KB885 B13.6 KB9 KB878 B1.5 KB4 KB1004 B10 B110 B2.6 KB1.1 KB8.9 KB58.5 KB12.4 KB6.6 KB18.5 KB20.7 KB27.8 KB21.1 KB7.1 KB7.7 KB2.7 KB51.2 KB100.9 KB1.2 KB24.3 KB7.4 KB53.6 KB26.1 KB20.5 KB60.5 KB19.6 KB1.6 KB8.4 KB20.9 KB2.6 KB539 B1.4 KB9.7 KB2.8 KB21 B92 B7.9 KB264 B3.4 KB3.8 KB17.5 KB55.2 KB3.3 KB10.8 KB1.5 KB4.2 KB7.3 KB2.5 KB32.6 KB14.5 KB283 B17.4 KB257 B691 B14.5 KB12.8 KB3.6 KB1.7 KB37 KB418 B6.2 KB7 KB37.3 KB10.6 KB23.7 KB28.7 KB8.8 KB16.9 KB291 KB3.0 MB303.5 KB330 KB307 KB276.5 KB8.7 KB39.4 KB291 KB3.0 MB303.5 KB330 KB307 KB276.5 KB8.7 KB11.2 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in Raspberry Pi 5 Home Automation with Relays - Proteus Simulation. Open an image for its full size.












README
===============================================================================================================
Raspberry Pi 5 Home Automation with Relays - 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/12/raspberry-pi-5-home-automation-relays-proteus-simulation.html
The libraries this project is built from (each post has its own full download and tutorial):
Raspberry Pi 5 board:
https://www.theengineeringprojects.com/2026/10/raspberry-pi-5-library-for-proteus.html
Relay modules:
https://www.theengineeringprojects.com/2026/10/relay-module-library-for-proteus-v1-0.html
Filament bulbs:
https://www.theengineeringprojects.com/2026/11/filament-bulb-library-for-proteus.html
4-pin PC fan:
https://www.theengineeringprojects.com/2026/11/4-pin-pc-fan-library-for-proteus-v1-0.html
Rocker switch:
https://www.theengineeringprojects.com/2026/11/rocker-switch-library-for-proteus.html
Resistor network:
https://www.theengineeringprojects.com/2026/11/resistor-network-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
Pi-5-Home-Automation-TEP-v1.0/
|-- Proteus Library Files/
| |-- TEPBULB.LIB 17.7 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
| |-- TEPPCFAN.LIB 24.8 KB a part of the project -> LIBRARY folder
| |-- TEPRELAY.LIB 490.4 KB a part of the project -> LIBRARY folder
| |-- TEPRESNET.LIB 296.0 KB a part of the project -> LIBRARY folder
| |-- TEPROCKER.LIB 13.1 KB a part of the project -> LIBRARY folder
| |-- TEPRPI5.LIB 60.5 KB a part of the project -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPBULB.DLL 291.0 KB a model -> MODELS folder
| |-- TEPNET.DLL 3.01 MB a model -> MODELS folder
| |-- TEPPCFAN.DLL 303.5 KB a model -> MODELS folder
| |-- TEPRELAY.DLL 330.0 KB a model -> MODELS folder
| |-- TEPRESNET.DLL 307.0 KB a model -> MODELS folder
| |-- TEPROCKER.DLL 276.5 KB a model -> MODELS folder
| |-- TEPPi/python/ 17.54 MB Python 3.11 embeddable -> MODELS\TEPPi (33 files)
| |-- TEPPi/runtime/ 1.11 MB TEP Pi runtime, gpiozero -> MODELS\TEPPi (87 files)
|-- Proteus Simulation/
| |-- home.py 8.7 KB the program PI1 runs
| |-- Pi-5-Home-Automation.pdsprj 39.4 KB the project simulation
| |-- TEPBULB.DLL 291.0 KB copy of the model
| |-- TEPNET.DLL 3.01 MB copy of the model
| |-- TEPPCFAN.DLL 303.5 KB copy of the model
| |-- TEPRELAY.DLL 330.0 KB copy of the model
| |-- TEPRESNET.DLL 307.0 KB copy of the model
| |-- TEPROCKER.DLL 276.5 KB copy of the model
|-- Python Code/
| |-- home.py 8.7 KB the program (the same file)
|-- README.txt ~10.9 KB this file
Total: 28.62 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
Home automation the way most people want it: the lights and the fan switched from a phone or a laptop - and still
from the ordinary switches on the wall. A Raspberry Pi 5 drives a 4-channel relay module for the living room light,
the bedroom light, the ceiling fan and the porch light, reads four wall switches, runs a sleep timer for the fan and
a schedule for the porch light, and keeps count of how long each load ran and the energy it used.
* PI1 RASPBERRY PI 5 runs home.py on Ethernet at 192.168.1.51 (port 8000); 5V (pin 2) on the VCC rail, 3V3 (pin 1).
* RLY1 a 4-channel 5 V relay module (RELAY4ADVTEP): IN1 - IN4 on GPIO5, GPIO6, GPIO13, GPIO19 (pins 29, 31, 33, 35),
active LOW; VCC and JD-VCC on 5 V; COM1 - COM4 on +12V; NO1 to L1 (a P21W 12 V 21 W bulb: the living room), NO2
to L2 (W5W 5 W: the bedroom), NO3 to FAN1 (a 4-pin 12 V PC fan: the ceiling fan, PWM / TACH open = full speed),
NO4 to L3 (W5W: the porch). 12 V lamps and a 12 V fan stand in for the house's mains loads.
* SW1 - SW4 rocker wall switches (SWITCHROCKERTEP): pin 1 to GPIO17, GPIO27, GPIO22, GPIO23 (pins 11, 13, 15, 16),
pin 2 to GND; their pop-ups' Flip button tips them.
* RN1 a 10 k SIP-5 resistor network (RESNETSIP5TEP): pin 1 (the common) on 3V3, pins 2 - 5 the pull-ups of the four
switch lines.
* Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.51:8000/.
What the program does:
the relays a GPIO LOW pulls a relay in (the module's inputs are active LOW); every output starts HIGH: all off
the switches an lgpio callback on both edges of each switch line: every flip, up or down, toggles its load - so the
wall switch always works, whatever the web did before (a "two-way" switch)
the timer FAN TIMER runs the fan for 20 s, then switches it off
the schedule the porch light on at 18:00 and off at 18:04 on the home clock; the home clock starts at 17:58 and
runs 12 times faster than real time so that the evening fits into a short simulation
the energy each load's on-time x its rated power (21, 5, 3.6, 5 W) - an estimate, there is no meter on the loads
Its pages:
/ the dashboard: Refresh, ALL ON, ALL OFF / LIVING, BEDROOM, FAN / PORCH, FAN TIMER; every load, who
switched it, its on-time and energy
/data JSON: the home clock, the loads, the fan timer, the events
Python libraries: lgpio (in the TEPPi runtime; on Raspberry Pi OS: python3-lgpio); threading, http.server.
TEST STATUS
Tested in Proteus 8 Professional on Windows 11, the run that made the tutorial's screenshots (the program's clock
with the home clock in brackets; the relay module's pop-up gives every coil and contact, the bulbs' their current):
- 0.00 s (17:58) READY: 4 loads on the relay module, 4 wall switches - all four relays released, the inputs HIGH.
- 10.00 s (18:00) PORCH ON (schedule 18:00): L3 at 11.98 V, 416 mA, 4.99 W.
- 12.02 s LIVING ON (web): L1 at 11.91 V, 1.74 A, 20.8 W, 2841 K. Its cold filament took 23.5 A at the switch-on
(13.5 x the running current, settled in about 230 ms) - the relay's pop-up flags it as above the 10 A rating of
the SRD-05VDC contacts: an incandescent lamp's inrush, the reason relays are rated lower for lamp loads.
- 14.75 s BEDROOM ON (wall switch): SW2 flipped. 16.80 s LIVING OFF (wall switch): SW1 flipped - the living room
light had been switched on from the web, the wall switch still turned it off (two-way).
- 20.87 s FAN ON (web: timer 20 s) from the phone: the fan speeding up, 1386 RPM on its way to 1499, 0.141 A.
- 30.00 s (18:04) PORCH OFF (schedule 18:04); 40.90 s FAN OFF (timer ran out) - the fan coasting down.
- 44.57 s ALL OFF from the laptop (the bedroom light). Energy so far: 0.117 Wh (living 5 s, bedroom 30 s, fan
20 s, porch 20 s, from the rated powers). 47.9 s of simulation in 478 s.
- Our first run: the phone on the sheet covered the site link at the bottom; it sits higher now.
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 everything in "Proteus Model Files" - the DLL files and the TEPPi folder - into the MODELS folder (next
to LIBRARY).
4. Start Proteus. Press P in the schematic and search for RASPBERRY PI 5 or RELAY to check that the parts are
there.
RUN THE SIMULATION
1. Open "Proteus Simulation\Pi-5-Home-Automation.pdsprj". Keep home.py and the DLL files beside it.
2. Press Play. Open the Laptop or the Mobile WiFi Monitor (Go): LIVING, BEDROOM, FAN, PORCH, FAN TIMER, ALL ON / OFF.
3. Click a wall switch (SW1 - SW4) for its pop-up and press Flip: its load changes. At 18:00 on the home clock (10
s) the porch light comes on by itself.
PROPERTIES USED IN THIS PROJECT
PI1 RASPBERRY PI 5 PROGRAM=home.py, ETHERNET=IN (192.168.1.51)
RLY1 RELAY4ADVTEP (no changes; the JD-VCC jumper fitted)
L1 BULBP21WTEP, L2 / L3 BULBW5WTEP, FAN1 PCFAN4PINTEP, SW1 - SW4 SWITCHROCKERTEP (no properties)
RN1 RESNETSIP5TEP 10k
PC1, MOB1 HOMEPAGE=http://192.168.1.51:8000/
TROUBLESHOOTING
* A relay is on when it should be off: the module's inputs are active LOW - write 1 for off.
* A wall switch does nothing: its line needs its pull-up (RN1) and the switch's other side on GND.
* A switch flip counts twice: a mechanical switch bounces - the program sets 50 ms of debounce.
* The porch light never comes on: the schedule follows the home clock (17:58 + 12 x the run time).
* Real hardware: mains wiring is dangerous - relays rated for the load, an enclosure, fuses, and an electrician for
the house wiring; wall switches to the Pi with low-voltage wires only (the Pi must never see the mains); a relay
module with optocouplers and a separate JD-VCC supply keeps the coils' noise off the Pi.
LICENCES
* The project, the program, 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.
* TEPPi\python is the Python 3.11 Windows embeddable package (Python Software Foundation License); TEPPi\runtime
holds our TEP Pi runtime with gpiozero and colorzero (BSD licences) - their licence files are inside the folders.
* Proteus is a product of Labcenter Electronics and is not included. Raspberry Pi is a trademark of Raspberry Pi
Ltd. This project is not made or endorsed by them.
VERSION
V1.0 - the first release of the project.
===============================================================================================================Development1 release
-
V1.0Raspberry Pi 5 Home Automation with Relays - 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.
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
Extract the archive
Right-click cea7f96e6f5c4482875aa2412fb7f933.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (Pi-5-Home-Automation-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move TEPBULB.LIB, TEPLAPTOP.LIB and TEPMOBILE.LIB and 5 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 TEPBULB.DLL, TEPNET.DLL and TEPPCFAN.DLL and 10 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
Build the source code
Open home.py, attr.py and color.py and 28 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
Open the example simulation
Open Pi-5-Home-Automation.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.
- 7
Follow the tutorial
Raspberry Pi 5 Home Automation with Relays - Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.
FAQs8 questionsContact TEP
How do I download Raspberry Pi 5 Home Automation with Relays - 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?
Raspberry Pi 5 Home Automation with Relays - Proteus Simulation V1.0 comes as a ZIP archive of 144 files (14.4 MB, 28.6 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 144 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, 268a51d6a1ff4cc34670bc45535f75d0ee14fc322b8dd205d70867270aed4dde. In PowerShell run Get-FileHash "cea7f96e6f5c4482875aa2412fb7f933.zip"; on macOS or Linux run shasum -a 256 "cea7f96e6f5c4482875aa2412fb7f933.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.
Members skip the wait. Log in or join TEP.
- 6Total downloads
- 4%Popularity
- Raspberry PiCategory
- 0Comments
- ssyedzainnasirUploaded by
- 5 Dec 2026Uploaded at
268a51d6a1ff4cc34670bc45535f75d0ee14fc322b8dd205d70867270aed4dde






















Comments
0