Project Files of Coupled Tank Water Level Control on Raspberry Pi 5: Proteus Simulation
6e2541d4c62440efab47cf24ce283f90.zip

Coupled Tank Water Level Control on Raspberry Pi 5: Proteus Simulation V1.0
Coupled Tank Water Level Control on Raspberry Pi 5: Proteus Simulation V1.0 comes as a ZIP archive of 147 files (14.7 MB, 29.2 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
Coupled-Tank-Level-Control-Raspberry-Pi-5-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (Raspberry Pi 5, the coupled tanks level control lab, an ADS1115 16-bit ADC, a 10k potentiometer, an SSD1306 OLED, an LED, resistors, the Laptop and Mobile WiFi Monitors), the Python program tank_control.py, every LIB and DLL, the TEPPi runtime and a README.
File Structure
66.3 KB39.5 KB21.8 KB13.1 KB112.4 KB208.6 KB306.9 KB60.5 KB15.8 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 KB326 KB289.5 KB3.0 MB342.5 KB310 KB311 KB312 KB42 KB22 KB326 KB289.5 KB3.0 MB342.5 KB310 KB311 KB312 KB22 KB11.3 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in Coupled Tank Water Level Control on Raspberry Pi 5: Proteus Simulation. Open an image for its full size.












README
===============================================================================================================
Coupled Tank Water Level Control on Raspberry Pi 5: 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/coupled-tank-level-control-raspberry-pi-5-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
Coupled tanks level control lab:
https://www.theengineeringprojects.com/2026/11/coupled-tanks-level-control-lab-library-for-proteus.html
ADS1115 16-bit ADC:
https://www.theengineeringprojects.com/2026/10/ads1115-adc-library-for-proteus-v1-0.html
Potentiometer:
https://www.theengineeringprojects.com/2026/11/potentiometer-library-for-proteus.html
OLED SSD1306:
https://www.theengineeringprojects.com/2026/10/oled-ssd1306-library-for-proteus-v1-0.html
5mm LED:
https://www.theengineeringprojects.com/2026/11/5mm-led-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-Coupled-Tanks-TEP-v1.0/
|-- Proteus Library Files/
| |-- TEPADS1115.LIB 66.3 KB a part of the project -> LIBRARY folder
| |-- TEPLAPTOP.LIB 39.5 KB a part of the project -> LIBRARY folder
| |-- TEPLED5MM.LIB 21.8 KB a part of the project -> LIBRARY folder
| |-- TEPMOBILE.LIB 13.1 KB a part of the project -> LIBRARY folder
| |-- TEPOLED12864.LIB 112.4 KB a part of the project -> LIBRARY folder
| |-- TEPPOT.LIB 208.6 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
| |-- TEPTANKS.LIB 15.8 KB a part of the project -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPADS1115.DLL 326.0 KB a model -> MODELS folder
| |-- TEPLED5MM.DLL 289.5 KB a model -> MODELS folder
| |-- TEPNET.DLL 2.99 MB a model -> MODELS folder
| |-- TEPOLED.DLL 342.5 KB a model -> MODELS folder
| |-- TEPPOT.DLL 310.0 KB a model -> MODELS folder
| |-- TEPRESISTOR.DLL 311.0 KB a model -> MODELS folder
| |-- TEPTANKS.DLL 312.0 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-Coupled-Tanks.pdsprj 42.0 KB the project simulation
| |-- tank_control.py 22.0 KB the program PI1 runs
| |-- TEPADS1115.DLL 326.0 KB copy of the model
| |-- TEPLED5MM.DLL 289.5 KB copy of the model
| |-- TEPNET.DLL 2.99 MB copy of the model
| |-- TEPOLED.DLL 342.5 KB copy of the model
| |-- TEPPOT.DLL 310.0 KB copy of the model
| |-- TEPRESISTOR.DLL 311.0 KB copy of the model
| |-- TEPTANKS.DLL 312.0 KB copy of the model
|-- Python Code/
| |-- tank_control.py 22.0 KB the program (the same file)
|-- README.txt ~10.7 KB this file
Total: 29.24 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
A process-control lab on a Raspberry Pi 5: two tanks one above the other, a pump that fills the top one, and a
Pi that holds the water levels where you set them, finds a leak, and shows it all on a dashboard.
* U1 the coupled tanks (COUPLEDTANKSTEP, LEAK 110 s): a 12 V pump fills tank 1; tank 1 drains through a 4 mm
hole into tank 2, tank 2 through another into the reservoir. 12V on +12V, 5V on +5V, PWM (the pump MOSFET's
gate) from GPIO18 (pin 12) at 500 Hz. L1 / L2, the level sensors (0.5 V + 80 mV per mm), through dividers.
* R1 10k / R2 20k and R3 10k / R4 20k: each sensor divided by 1.5 (4.5 V at 50 mm becomes 3.0 V) for U2.
* U2 an ADS1115 16-bit ADC (ADS1115ADVTEP) on I2C1 (SDA GPIO2, SCL GPIO3, 0x48), VDD +3.3V: A0 tank 1,
A1 tank 2, A2 the knob.
* RV1 the knob, a 16 mm 10k potentiometer (POTROTARY16TEP) across +3.3V.
* OLED1 an SSD1306 128x64 OLED (OLED12864WHITEADVTEP, 0x3C) on I2C1, VCC +3.3V: the mode, the setpoint, both
levels, the pump and a drawing of the tanks.
* D1 the red ALARM LED on GPIO23 (pin 16) through R5 220 ohm: a leak, or tank 1 near its overflow.
* RASPBERRY PI 5 (PI1) runs tank_control.py on Ethernet at 192.168.1.51 (port 8000).
* Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.51:8000/.
The modes (the knob means what a controller's knob means in each):
MANUAL the knob sets the pump, 0 - 100 %
TANK 1 a PI with a feed-forward holds tank 1 at the knob's setpoint (0.5 mm a percent, 5 - 45 mm)
CASCADE an outer PI holds tank 2 at the knob's setpoint (5 - 40 mm) by moving tank 1's setpoint
Both PIs are designed from the tanks' physics at the setpoint: tank 1 for 0.6 rad/s and a damping of 0.8, tank 2
for 0.12 rad/s and 1.0; their P terms see 50 % / 70 % of a setpoint step (setpoint weighting: far less overshoot).
Tank 2's mass balance finds a leak: in, minus out, minus what it gains = lost.
Its pages:
/ the dashboard: the mode, the levels, the pump, the model, the gains, the leak, the last step, a trend
/manual /tank1 /cascade the mode /trend.bmp the last 120 s /data JSON
No extra Python library: lgpio (in the TEPPi runtime and on Raspberry Pi OS), threading, http.server.
TEST STATUS
Tested in Proteus 8 Professional on Windows 11, the run that made the tutorial's screenshots (the program's times):
- 0.0 s TANK 1, the knob at 50 % = 25 mm: "tau 11.9 s, gain 11.0 mm/V, held by 6.05 V; Kp 0.946 V/mm,
Ki 0.3888" - the tanks' pop-up shows the same model and PI. At 18 s tank 1 25.1 mm, tank 2 20.1 mm, 6.08 V.
- The knob +10 % (60 %) at 22.9 s: 30 mm (tau 13.0 s, 12.0 mm/V, 6.48 V; Kp 0.954). 35.6 s "tank 1 25.0 to
30.0 mm: rise 2.0 s, overshoot 4.8 %, peak at 4.4 s, settled in 2.7 s"; the pop-up: 2.1 %, 2.8 s.
- CASCADE from the laptop at 39.7 s (tank 2 at 30 mm: outer Kp 2.122, Ki 0.1873); the knob -10 % at 53.0 s:
tank 2 to 25 mm (Kp 1.850, Ki 0.1710); 75.5 s "tank 2 29.3 to 25.0 mm: rise 7.9 s, overshoot 2.3 %,
settled in 12.5 s".
- The leak valve opened at 110 s: 116.7 s "LEAK on tank 2: 0.78 mL/s lost (a hole of about 1.5 mm at 23.0 mm
of water)" - the valve is 1.5 mm; the ALARM LED on; the cascade raised tank 1 to 32.4 mm (6.74 V) and
tank 2 came back from its dip (1.98 mm on the pop-up).
- MANUAL from the laptop at 139.1 s: the knob (50 %) = 6.00 V; without the loop tank 2 sank to 23.5 mm.
- An earlier run with plain PIs (no setpoint weighting): tank 1 overshot 28 %, tank 2 24 % (settled in 42 s).
- 151 s of simulation in 756 s.
INSTALLATION
1. Close Proteus. Extract the WHOLE zip file, for example to your Desktop.
2. Copy the files from "Proteus Library Files" into the LIBRARY folder of Proteus, for example
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
3. Copy 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, COUPLEDTANKSTEP or ADS1115ADVTEP to
check that the parts are there.
RUN THE SIMULATION
1. Open "Proteus Simulation\Pi-5-Coupled-Tanks.pdsprj". Keep tank_control.py and the DLL files beside it.
2. Press Play. The Pi starts in TANK 1 with the knob at 50 % (25 mm): the pump fills tank 1, then holds it.
3. Click the tanks (U1) for their pop-up; on the knob's pop-up (RV1) press +10 % or -10 % for a new setpoint.
4. Open the Laptop WiFi Monitor (PC1) or the Mobile WiFi Monitor (MOB1) and press Go: MANUAL, TANK 1, CASCADE.
5. At 110 s the leak valve on tank 2 opens: watch the ALARM LED, the OLED and the dashboard.
Change LEAK (0 = never), LEVEL1 / LEVEL2 (the start) or NOISE in U1's properties.
PROPERTIES USED IN THIS PROJECT
PI1 RASPBERRY PI 5 PROGRAM=tank_control.py, ETHERNET=IN (192.168.1.51)
U1 COUPLEDTANKSTEP LEVEL1=0, LEVEL2=0, NOISE=2, WN=0.6, LEAK=110
U2 ADS1115ADVTEP; OLED1 OLED12864WHITEADVTEP; RV1 POTROTARY16TEP (B10K, the knob at 50 %)
R1 / R3 10k, R2 / R4 20k, R5 220 (RESISTOR4BANDTEP); D1 LED5MMREDTEP
PC1, MOB1 HOMEPAGE=http://192.168.1.51:8000/
TROUBLESHOOTING
* The levels read 0 mm: the tanks' 5V pin needs 5 V (the sensors switch on above 4.3 V).
* The pump never runs: 12V must be on the +12V supply and PWM on GPIO18.
* The levels are 1.5 times too high or low: the dividers are 10k (to the sensor) over 20k (to ground).
* The OLED stays blank: SDA / SCL on GPIO2 / GPIO3, address 0x3C, VCC 3.3 V.
* The terminal cannot start Python: the TEPPi folder is not in MODELS.
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. It is a teaching model of a process lab.
VERSION
V1.0 - the first release of the project.
===============================================================================================================Development1 release
-
V1.0Coupled Tank Water Level Control on Raspberry Pi 5: 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 6e2541d4c62440efab47cf24ce283f90.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-Coupled-Tanks-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move TEPADS1115.LIB, TEPLAPTOP.LIB and TEPLED5MM.LIB and 6 more and the files into the LIBRARY folder of your Proteus installation: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY for Proteus 8, or the matching Proteus 7 folder. Older versions keep it under ProgramData\Labcenter Electronics. If Proteus is open, close it first.
- 3
Add the simulation model
Copy TEPADS1115.DLL, TEPLED5MM.DLL and TEPNET.DLL and 11 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 tank_control.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-Coupled-Tanks.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
Coupled Tank Water Level Control on Raspberry Pi 5: 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 Coupled Tank Water Level Control on Raspberry Pi 5: 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?
Coupled Tank Water Level Control on Raspberry Pi 5: Proteus Simulation V1.0 comes as a ZIP archive of 147 files (14.7 MB, 29.2 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 147 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, 0884429629d12bd8728ac93a2fed75a6fa5bd0c9986c4b5d5def13a3a0256096. In PowerShell run Get-FileHash "6e2541d4c62440efab47cf24ce283f90.zip"; on macOS or Linux run shasum -a 256 "6e2541d4c62440efab47cf24ce283f90.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
- Raspberry PiCategory
- 0Comments
- ssyedzainnasirUploaded by
- 23 Nov 2026Uploaded at
0884429629d12bd8728ac93a2fed75a6fa5bd0c9986c4b5d5def13a3a0256096






















Comments
0