Project Files of Micro Hydro ELC with Dump Load on Raspberry Pi 5 - Proteus Simulation
1dcf091f578244f7a0ebaaeaa33d337e.zip

Micro Hydro ELC with Dump Load on Raspberry Pi 5 - Proteus Simulation V1.0
Micro Hydro ELC with Dump Load on Raspberry Pi 5 - Proteus Simulation V1.0 comes as a ZIP archive of 150 files (15.1 MB, 30.1 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
Micro-Hydro-ELC-Dump-Load-Raspberry-Pi-5-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (a Raspberry Pi 5, an F50 micro hydro generator, an ADS1115, IRLZ44N MOSFETs, power resistors, W5W bulbs, an I2C LCD, the Laptop and Mobile WiFi Monitors), the Python program hydro_elc.py, every LIB and DLL, the TEP Pi runtime and a README.
File Structure
66.3 KB17.7 KB21.1 KB181.4 KB39.5 KB13.1 KB17.9 KB157.2 KB306.9 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 KB326 KB291 KB333.5 KB409 KB3.0 MB295 KB304.5 KB311 KB12.9 KB46.9 KB326 KB291 KB333.5 KB409 KB3.0 MB295 KB304.5 KB311 KB12.9 KB11.6 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in Micro Hydro ELC with Dump Load on Raspberry Pi 5 - Proteus Simulation. Open an image for its full size.












README
===============================================================================================================
Micro Hydro ELC with Dump Load 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/micro-hydro-elc-dump-load-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
Micro hydro generator (F50):
https://www.theengineeringprojects.com/2026/11/micro-hydro-generator-library-for-proteus.html
ADS1115 ADC:
https://www.theengineeringprojects.com/2026/10/ads1115-adc-library-for-proteus-v1-0.html
N-MOSFET (IRLZ44N):
https://www.theengineeringprojects.com/2026/11/n-mosfet-library-for-proteus.html
Power resistor:
https://www.theengineeringprojects.com/2026/11/power-resistor-library-for-proteus.html
Filament bulb (W5W):
https://www.theengineeringprojects.com/2026/11/filament-bulb-library-for-proteus.html
I2C LCD 16x2:
https://www.theengineeringprojects.com/2026/10/i2c-lcd-16x2-library-for-proteus-v1-0.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-Hydro-ELC-TEP-v1.0/
|-- Proteus Library Files/
| |-- TEPADS1115.LIB 66.3 KB a part of the project -> LIBRARY folder
| |-- TEPBULB.LIB 17.7 KB a part of the project -> LIBRARY folder
| |-- TEPHYDRO.LIB 21.1 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
| |-- TEPNMOS.LIB 17.9 KB a part of the project -> LIBRARY folder
| |-- TEPPOWERRES.LIB 157.2 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
|-- Proteus Model Files/
| |-- TEPADS1115.DLL 326.0 KB a model -> MODELS folder
| |-- TEPBULB.DLL 291.0 KB a model -> MODELS folder
| |-- TEPHYDRO.DLL 333.5 KB a model -> MODELS folder
| |-- TEPLCD.DLL 409.0 KB a model -> MODELS folder
| |-- TEPNET.DLL 3.01 MB a model -> MODELS folder
| |-- TEPNMOS.DLL 295.0 KB a model -> MODELS folder
| |-- TEPPOWERRES.DLL 304.5 KB a model -> MODELS folder
| |-- TEPRESISTOR.DLL 311.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/
| |-- hydro_elc.py 12.9 KB the program PI1 runs
| |-- Pi-5-Hydro-ELC.pdsprj 46.9 KB the project simulation
| |-- TEPADS1115.DLL 326.0 KB copy of the model
| |-- TEPBULB.DLL 291.0 KB copy of the model
| |-- TEPHYDRO.DLL 333.5 KB copy of the model
| |-- TEPLCD.DLL 409.0 KB copy of the model
| |-- TEPNET.DLL 3.01 MB copy of the model
| |-- TEPNMOS.DLL 295.0 KB copy of the model
| |-- TEPPOWERRES.DLL 304.5 KB copy of the model
| |-- TEPRESISTOR.DLL 311.0 KB copy of the model
|-- Python Code/
| |-- hydro_elc.py 12.9 KB the program (the same file)
|-- README.txt ~10.7 KB this file
Total: 30.06 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
A small water turbine has no governor: when the lamps go off it speeds up and its voltage climbs, when too much is
switched on it slows down and the voltage sags. An electronic load controller (ELC) keeps the turbine's TOTAL load
constant - whatever the consumers do not use goes into a dump load - so the voltage stays steady. This Raspberry
Pi 5 is the ELC of an F50 micro hydro generator on a 12 V bus, with load shedding when the water runs short.
* PI1 RASPBERRY PI 5 runs hydro_elc.py on Ethernet at 192.168.1.51 (port 8000).
* G1 the F50-80V micro hydro generator (HYDROF50TEP, TYPE 80V - no regulator, PRESSURE 0.5 MPa; the pop-up's chips
change the water pressure): + on the BUS, - on GND.
* U1 an ADS1115 16-bit ADC (ADS1115TEP, 0x48, ADDR to GND) on I2C1: SDA GPIO2 (pin 3), SCL GPIO3 (pin 5), VDD 3.3 V
(pin 1). A0 = the bus through R1 220k / R2 10k (/ 23); A1 = the top of RS, a 0R1 5 W shunt to GND that every
load returns through (the load current).
* The dump load: five power resistors from the BUS (RESISTORPOWER5WTEP 288R, 144R, 72R, 36R and RESISTORPOWER10WTEP
18R = 0.5, 1, 2, 4, 8 W at 12 V), each switched by an IRLZ44N (IRLZ44NTEP) from GPIO5, 6, 13, 19, 26 (pins 29, 31,
33, 35, 37); the sources on the shunt.
* The consumers: L1 and L2, W5W 12 V 5 W bulbs (BULBW5WTEP) from the BUS, on IRLZ44Ns from GPIO20 (pin 38, LAMP 1,
the house - kept longest) and GPIO21 (pin 40, LAMP 2, the yard).
* LCD1 an I2C LCD 16x2 (0x27) on the 5 V pin.
* Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.51:8000/.
What the program does (5 times a second):
the bus the ADS1115 reads A0 (x 23 = the bus volts) and A1 (/ 0.1 ohm = the load current), single-shot at 128
samples a second
the dump outside a dead band of +-0.6 V around 12 V the dump code (0 - 31 = 0 - 15.5 W in 0.5 W steps)
moves one step per 1.5 V of error, at least one - a 0.5 W step moves this turbine's bus by 0.4 -
1.1 V, so the loop gain stays under 1 at every pressure; when a lamp comes on the dump gives up
5 W at the same moment (feed-forward), when a lamp is switched off the dump takes its 5 W back
shedding no dump left and the bus under 11 V for 1.5 s (under 9 V for 0.4 s): the lowest-priority lamp that is
on is SHED (LAMP 2 first); a wanted lamp comes on (or back) when the dump has taken 5.5 W for 4 s
the LCD the bus volts, the dump watts, the lamps (ON / SHED / off)
Its pages:
/ the dashboard with the links Refresh, LAMP 1 and LAMP 2 /data JSON
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 times):
- 0.5 MPa, the lamps off: the bus pulled down from the turbine's 50 V and held at 11.75 V with dump code 13 (8 + 4 +
1 = 6.24 W); 0.528 A through the shunt; the turbine's pop-up: 11.76 V at 528 mA, 6.22 W, 2210 RPM.
- 12.7 s LAMP 1 asked; 17.0 s ON (6.2 W were going to the dump; feed-forward to code 3): 11.63 V, the dump 1.41 W.
- 22.0 s LAMP 2 asked: waiting for water (the dump only 1.41 W spare).
- 0.8 MPa: the bus jumped to 14.6 V, the dump rose to code 11 (5.96 W); 32.7 s LAMP 2 ON: 11.87 V, both lamps on,
the dump 0.98 W; the turbine 10.78 W at 908 mA, 2699 RPM.
- 0.3 MPa: the bus fell to 2.1 V with no dump left - 41.8 s LAMP 2 SHED, 42.5 s LAMP 1 SHED (6.71 V); then 12.31 V
with the dump at 3.16 W (the turbine's 3.15 W).
- 0.5 MPa again: 12.50 V, the dump 6.51 W; 61.4 s LAMP 1 BACK ON: 11.63 V; LAMP 2 stays shed.
- 72.2 s of simulation in 308 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 or HYDROF50TEP to check that the parts are
there.
RUN THE SIMULATION
1. Open "Proteus Simulation\Pi-5-Hydro-ELC.pdsprj". Keep hydro_elc.py and the DLL files beside it.
2. Press Play. The turbine starts at 0.5 MPa; the Pi holds the bus at 12 V with the dump load.
3. Open the Laptop or the Mobile WiFi Monitor (Go): LAMP 1 and LAMP 2 ask for the lamps. Click G1 for the turbine's
pop-up and change the water pressure (0.3, 0.5, 0.8 MPa ...).
PROPERTIES USED IN THIS PROJECT
PI1 RASPBERRY PI 5 PROGRAM=hydro_elc.py, ETHERNET=IN (192.168.1.51)
G1 HYDROF50TEP TYPE=80V, PRESSURE=0.5
U1 ADS1115TEP; R1 220k, R2 10k; RS 0R1 5 W; the dump 288R, 144R, 72R, 36R (5 W), 18R (10 W); Q1 - Q7 IRLZ44NTEP;
L1, L2 BULBW5WTEP; LCD1 I2C 16x2; PC1, MOB1 HOMEPAGE=http://192.168.1.51:8000/
TROUBLESHOOTING
* The bus reads 0 V: the ADS1115 at 0x48 (ADDR to GND), VDD on 3.3 V, A0 on the middle of R1 / R2.
* The bus swings up and down: the dead band or the step is too small for the turbine (a 0.5 W step moves the bus
0.4 - 1.1 V here); widen BAND or raise STEP_V.
* A lamp never comes on: there is not enough water - the dump must show 5.5 W spare first (raise the pressure).
* The LCD stays blank: SDA / SCL on pins 3 / 5, VCC on 5 V.
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; ADS1115 is a product of Texas Instruments, IRLZ44N of Infineon. This project is not made or endorsed by them.
VERSION
V1.0 - the first release of the project.
===============================================================================================================Development1 release
-
V1.0Micro Hydro ELC with Dump Load 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 1dcf091f578244f7a0ebaaeaa33d337e.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-Hydro-ELC-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move TEPADS1115.LIB, TEPBULB.LIB and TEPHYDRO.LIB and 7 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, TEPBULB.DLL and TEPHYDRO.DLL and 12 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 hydro_elc.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-Hydro-ELC.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
Micro Hydro ELC with Dump Load 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 Micro Hydro ELC with Dump Load 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?
Micro Hydro ELC with Dump Load on Raspberry Pi 5 - Proteus Simulation V1.0 comes as a ZIP archive of 150 files (15.1 MB, 30.1 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 150 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, 949588432759dde361232d7bcb515b2ef3f9cb53dd9cef2c3ee00350bac5cdd2. In PowerShell run Get-FileHash "1dcf091f578244f7a0ebaaeaa33d337e.zip"; on macOS or Linux run shasum -a 256 "1dcf091f578244f7a0ebaaeaa33d337e.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
- 29 Nov 2026Uploaded at
949588432759dde361232d7bcb515b2ef3f9cb53dd9cef2c3ee00350bac5cdd2






















Comments
0