Project Files of Raspberry Pi 5 Water Meter and Leak Detector - Proteus Simulation
pi-5-water-leak-detector-tep-v1-0-2256cf84dc9045faab86f3d3f8c2e20b.zip

Raspberry Pi 5 Water Meter and Leak Detector - Proteus Simulation V1.0
Raspberry Pi 5 Water Meter and Leak Detector - Proteus Simulation V1.0 comes as a ZIP archive of 153 files (15.3 MB, 30.5 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-Water-Meter-Leak-Detector-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (Raspberry Pi 5, YF-S201 flow sensor, relay module, 12V solenoid valve, 1N4007, I2C LCD 16x2, active buzzer with BC547, the Laptop and Mobile WiFi Monitors), the Python program water_meter.py, every LIB and DLL the simulation needs, the TEPPi runtime and a README.
File Structure
9.7 KB18.6 KB9.9 KB181.4 KB39.5 KB13.1 KB490.4 KB306.9 KB60.5 KB18.4 KB65.9 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 KB286.5 KB292 KB276 KB409 KB2.9 MB330 KB311 KB281 KB292.5 KB41.9 KB286.5 KB292 KB276 KB409 KB2.9 MB330 KB311 KB281 KB292.5 KB11.1 KB11.1 KB12.1 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in Raspberry Pi 5 Water Meter and Leak Detector - Proteus Simulation. Open an image for its full size.












README
===============================================================================================================
Raspberry Pi 5 Smart Water Meter and Leak Detector - 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/raspberry-pi-5-water-meter-leak-detector-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
YF-S201 water flow sensor:
https://www.theengineeringprojects.com/2026/10/yf-s201-water-flow-sensor-library-for-proteus-v1-0.html
Relay module:
https://www.theengineeringprojects.com/2026/10/relay-module-library-for-proteus-v1-0.html
12V solenoid water valve:
https://www.theengineeringprojects.com/2026/11/12v-solenoid-water-valve-library-for-proteus-v1-0.html
1N4007 diode:
https://www.theengineeringprojects.com/2026/11/1n4007-diode-library-for-proteus.html
I2C LCD 16x2:
https://www.theengineeringprojects.com/2026/10/i2c-lcd-16x2-library-for-proteus-v1-0.html
Active buzzer:
https://www.theengineeringprojects.com/2026/11/active-buzzer-library-for-proteus.html
BC547 transistor (Small Transistors):
https://www.theengineeringprojects.com/2026/11/small-transistors-library-for-proteus.html
Resistor:
https://www.theengineeringprojects.com/2026/11/resistor-library-for-proteus.html
Laptop WiFi Monitor:
https://www.theengineeringprojects.com/2026/10/laptop-wifi-monitor-library-for-proteus.html
Mobile WiFi Monitor:
https://www.theengineeringprojects.com/2026/10/mobile-wifi-monitor-library-for-proteus.html
Support our free work: https://www.theengineeringprojects.com/donate
FILE STRUCTURE
Pi-5-Water-Leak-Detector-TEP-v1.0/
|-- Proteus Library Files/
| |-- TEP1N4007.LIB 9.7 KB a part of the project -> LIBRARY folder
| |-- TEPBJT.LIB 18.6 KB a part of the project -> LIBRARY folder
| |-- TEPBUZZER.LIB 9.9 KB a part of the project -> LIBRARY folder
| |-- TEPI2CLCD16X2.LIB 181.4 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
| |-- TEPRELAY.LIB 490.4 KB a part of the project -> LIBRARY folder
| |-- TEPRESISTOR.LIB 306.9 KB a part of the project -> LIBRARY folder
| |-- TEPRPI5.LIB 60.5 KB a part of the project -> LIBRARY folder
| |-- TEPVALVE.LIB 18.4 KB a part of the project -> LIBRARY folder
| |-- TEPYFS201.LIB 65.9 KB a part of the project -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEP1N4007.DLL 286.5 KB a model -> MODELS folder
| |-- TEPBJT.DLL 292.0 KB a model -> MODELS folder
| |-- TEPBUZZER.DLL 276.0 KB a model -> MODELS folder
| |-- TEPLCD.DLL 409.0 KB a model -> MODELS folder
| |-- TEPNET.DLL 2.89 MB a model -> MODELS folder
| |-- TEPRELAY.DLL 330.0 KB a model -> MODELS folder
| |-- TEPRESISTOR.DLL 311.0 KB a model -> MODELS folder
| |-- TEPVALVE.DLL 281.0 KB a model -> MODELS folder
| |-- TEPYFS201.DLL 292.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/
| |-- Pi-5-Water-Leak-Detector.pdsprj 41.9 KB the project simulation
| |-- TEP1N4007.DLL 286.5 KB copy of the model
| |-- TEPBJT.DLL 292.0 KB copy of the model
| |-- TEPBUZZER.DLL 276.0 KB copy of the model
| |-- TEPLCD.DLL 409.0 KB copy of the model
| |-- TEPNET.DLL 2.89 MB copy of the model
| |-- TEPRELAY.DLL 330.0 KB copy of the model
| |-- TEPRESISTOR.DLL 311.0 KB copy of the model
| |-- TEPVALVE.DLL 281.0 KB copy of the model
| |-- TEPYFS201.DLL 292.5 KB copy of the model
| |-- water_meter.py 11.1 KB the program PI1 runs
|-- Python Code/
| |-- water_meter.py 11.1 KB the program (the same file)
|-- README.txt ~11.0 KB this file
Total: 30.54 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
A water meter that watches the pipe into a house, which you can run in Proteus: a Raspberry Pi 5 counts the pulses
of a flow sensor, logs every use of water, keeps today's litres, and shuts a solenoid valve when the water behaves
like a leak or a burst pipe. An LCD, a buzzer and a web page show what it sees.
* YF-S201 water flow sensor (YFS201ADVTEP, U1): 5 V, OUT on GPIO17 with the Pi's pull-up; 450 pulses per litre,
F = 7.5 x Q (Hz, L/min).
* 1-channel relay module (RELAY1ADVTEP, RLY1): VCC on the 5 V rail, IN on GPIO27 (active LOW); COM on +12V, NO to
the valve.
* 12 V solenoid water valve, normally closed (WATERVALVETEP, SV1): powered = open; a 1N4007 (DIODE1N4007TEP, D1)
across its coil takes the spike when the relay lets go.
* I2C LCD 16x2 (I2CLCD16X2BLUEADVTEP, LCD1, PCF8574 at 0x27) on SDA GPIO2 / SCL GPIO3, 5 V.
* Active buzzer (BUZZERACTIVETEP, BZ1) on the 5 V rail, switched by Q1 BC547 (BC547BTEP; base through R2 1k from
GPIO23); R1 1k across the buzzer.
* RASPBERRY PI 5 (PI1) runs water_meter.py on Ethernet at 192.168.1.51; the dashboard is on port 8000.
* Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.51:8000/.
The rules (at the top of water_meter.py):
* once a second the Pi turns the pulses of that second into L/min (pulses / 7.5) and litres (pulses / 450);
* a use runs from the first pulse to 2 s without water and is logged with its litres;
* LEAK: water for 20 s without a break (a demo value - in a real house 30 to 60 minutes);
* BURST: more than 20 L/min for 3 s;
* AWAY LEAK: in AWAY mode, any water for 5 s;
* an alarm shuts the valve and beeps until it is silenced; water 3 s after a shut-off means the valve leaks.
Its pages:
/ the dashboard: the flow, today's litres, the valve, the alarm, the last uses, the events
/open clear the alarm and open the valve
/close close the valve
/away AWAY mode on / off
/silence the buzzer off for the present alarm
/data everything as JSON
TEST STATUS
Tested in Proteus 8 Professional on Windows 11, the run that made the tutorial's screenshots (the program's times):
* Start: "valve OPEN (start-up)" at 0.0 s; the relay on, the valve open (0.45 A at 12 V).
* TAP (6 L/min) for about 7 s, then OFF: "a use: 0.69 L in 6.9 s at 6.0 L/min" at 19.3 s.
* LEAK (a running cistern, 1.5 L/min): "LEAK - water has run for 20 s without a break" at 42.8 s, the valve
CLOSED, the buzzer; after VALVE on the sensor's pop-up: "a use: 0.54 L in 21.7 s at 1.5 L/min".
* SILENCE from the phone at 48.4 s; LEAK fixed, VALVE open, OPEN from the laptop: the valve open at 52.5 s.
* FULL (30 L/min): "BURST - 30.0 L/min for 3 s" at 57.9 s, the valve CLOSED; "a use: 2.17 L in 4.3 s".
* OPEN from the phone at 65.1 s; AWAY from the laptop at 66.9 s; TAP: "AWAY LEAK" at 74.1 s, the valve CLOSED.
* Today 4.03 L; the sensor counted 1,812 pulses = 4.03 L of water that really passed.
An earlier run counted a use's duration in whole seconds and logged a 6 L/min tap as "0.56 L in 5 s (6.6 L/min
on average)"; the program now takes the flow from the full seconds and the duration from the litres.
85 s of simulation took about 7 minutes on our PC with all the captures.
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). TEPPi holds the Python 3.11 that the Raspberry Pi board runs and our TEP Pi runtime.
4. Start Proteus. Press P in the schematic and search for RASPBERRY PI 5, YFS201ADVTEP or WATERVALVETEP to check
that the parts are there.
RUN THE SIMULATION
1. Open "Proteus Simulation\Pi-5-Water-Leak-Detector.pdsprj". Keep water_meter.py and the DLL files beside it.
2. Press Play. The program opens the valve (the relay clicks on); the LCD shows the flow and today's litres.
3. Open the Laptop WiFi Monitor (PC1) or the Mobile WiFi Monitor (MOB1) and press Go. Press Refresh to update it.
4. In the YF-S201's pop-up (U1) pick TAP, then OFF: one use is logged. Press LEAK (a running cistern): after 20 s
the valve shuts and the buzzer beeps. FULL (30 L/min) is a burst pipe.
5. The sensor's model does not know about the valve: after a shut-off press VALVE on its pop-up to stop the
water, as the shut valve would. Press VALVE again (and fix the LEAK) before OPEN on the page.
Your own program: edit water_meter.py beside the project (the limits at the top) and press Play.
PROPERTIES USED IN THIS PROJECT
PI1 RASPBERRY PI 5 PROGRAM=water_meter.py, ETHERNET=IN (192.168.1.51)
U1 YFS201ADVTEP (no changes: K 7.5, the tap OFF)
LCD1 I2CLCD16X2BLUEADVTEP (no changes: address 0x27)
R1, R2 RESISTOR4BANDTEP 1k
PC1, MOB1 HOMEPAGE=http://192.168.1.51:8000/
TROUBLESHOOTING
* The flow stays at 0.0 L/min: OUT is not on GPIO17, or the sensor has no 5 V.
* The litres are wrong by a few per cent: your sensor's K is not 7.5 - measure a bucket and change K.
* The valve never opens: the relay's COM has no +12V, or the valve is on NC instead of NO.
* LEAK while a bath fills: CONT_S is too short for your house - raise it.
* The terminal cannot start Python: the TEPPi folder is not in MODELS (step 3 of INSTALLATION), or an older one.
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. A hobby leak detector does not replace a plumber or the
safety devices your water supplier or local rules ask for.
VERSION
V1.0 - the first release of the project.
===============================================================================================================Development1 release
-
V1.0Raspberry Pi 5 Water Meter and Leak Detector - 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 pi-5-water-leak-detector-tep-v1-0-2256cf84dc9045faab86f3d3f8c2e20b.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-Water-Leak-Detector-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move TEP1N4007.LIB, TEPBJT.LIB and TEPBUZZER.LIB and 8 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 TEP1N4007.DLL, TEPBJT.DLL and TEPBUZZER.DLL and 13 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 water_meter.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-Water-Leak-Detector.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 Water Meter and Leak Detector - 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 Water Meter and Leak Detector - 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 Water Meter and Leak Detector - Proteus Simulation V1.0 comes as a ZIP archive of 153 files (15.3 MB, 30.5 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 153 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, 493b78bb7e56c63f133d2525ddfc31b2b50be003b6cf96bd1ad9b7ff67fa5c80. In PowerShell run Get-FileHash "pi-5-water-leak-detector-tep-v1-0-2256cf84dc9045faab86f3d3f8c2e20b.zip"; on macOS or Linux run shasum -a 256 "pi-5-water-leak-detector-tep-v1-0-2256cf84dc9045faab86f3d3f8c2e20b.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.
- 0Total downloads
- 4%Popularity
- ProteusCategory
- 0Comments
- ssyedzainnasirUploaded by
- 14 Nov 2026Uploaded at
493b78bb7e56c63f133d2525ddfc31b2b50be003b6cf96bd1ad9b7ff67fa5c80






















Comments
0