Project Files of Float Switch Library for Proteus Simulation
58db40ed4b844b81b392e5c6e7120ebb.zip

Float Switch Library for Proteus V1.0
Float Switch Library for Proteus V1.0 comes as a ZIP archive of 16 files (1.9 MB, 4.3 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware.
- LIBProteus library
- DLLProteus model
- DSNProteus simulation
- INOArduino sketch
- HEXHEX firmware
Description
Float-Switch-Library-for-Proteus-v1.0.zip with the float switch for Proteus simulation (TEPFLOAT.LIB and TEPFLOAT.DLL), our relay module and submersible pump, our Arduino UNO V4.0, the A4 demo, its sketch and a README.
File Structure
2.3 KB201.9 KB11.7 KB490.4 KB16.1 KB883.5 KB302.5 KB330 KB296.5 KB22.3 KB10.4 KB883.5 KB302.5 KB330 KB296.5 KB13.6 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in Float Switch Library for Proteus Simulation. Open an image for its full size.












README
FLOAT SWITCH LIBRARY FOR PROTEUS SIMULATION - V1.0 (a water level switch with its tank, a pop-up)
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/12/float-switch-library-for-proteus.html
Report a bug or suggest a feature (our forum):
https://www.theengineeringprojects.com/forum/category/micro-limit-switch-proteus-library
The demo runs on our Arduino UNO V4.0 (included) - working LEDs, RESET and a
built-in serial monitor, no Virtual Terminal to wire - its own article:
https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
Support us (the libraries are free):
https://www.theengineeringprojects.com/donate
FILE STRUCTURE
Float-Switch-TEP-v1.0/
|-- Proteus Library Files/
| |-- ArduinoV4TEP.LIB 201.9 KB TEP Arduino boards V4.0 (UNO) -> LIBRARY
| |-- TEPFLOAT.LIB 11.7 KB the library -> LIBRARY folder
| |-- TEPRELAY.LIB 490.4 KB a part the demo uses -> LIBRARY folder
| |-- TEPSUBPUMP.LIB 16.1 KB a part the demo uses -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPARDUINO.DLL 883.5 KB the Arduino board model -> MODELS folder
| |-- TEPFLOAT.DLL 302.5 KB the model -> MODELS folder
| |-- TEPRELAY.DLL 330.0 KB its model -> MODELS folder
| |-- TEPSUBPUMP.DLL 296.5 KB its model -> MODELS folder
|-- Proteus Simulation/
| |-- FloatSwitch_Demo.hex 10.4 KB the demo firmware
| |-- Float-Switch-Sump-Pump-ArduinoUnoV4.pdsprj 22.3 KB the demo project
| |-- TEPARDUINO.DLL 883.5 KB copy of the board model
| |-- TEPFLOAT.DLL 302.5 KB copy of the model
| |-- TEPRELAY.DLL 330.0 KB copy of its model
| |-- TEPSUBPUMP.DLL 296.5 KB copy of its model
|-- Arduino Code/
| |-- FloatSwitch_Demo/FloatSwitch_Demo.ino 2.3 KB the demo sketch (source of the .hex)
|-- README.txt ~14.4 KB this file
Total: 4.29 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
The common vertical PP float switch (a 52 mm stem and a 22 mm float), drawn from the side at its
real size, mounted through a tank lid:
the M10 thread and its nut above the lid, the inner nut, the stem with its stop collar and clip, the
red and black wires up to pins 1 and 2,
and a section of the tank behind it. The drawing is our own. At Run the water and the float move on
the sheet:
* A reed contact in the stem between pins 1 and 2: 0.5 ohm closed, open otherwise. NO (as shipped)
closes when the water lifts the
float; turned over (CONTACT NC) it opens when the float rises. The float's travel past the reed
gives about 1.6 mm of hysteresis.
* The water: PROFILE DEMO is a tank that fills at 60 mm/s and empties at 90 mm/s between 45 and
240 mm - the same curve for every
float switch on the sheet, so several switches in one tank agree; PROFILE STEADY holds LEVEL
(the pop-up's chips move it).
* HEIGHT is where the switch sits in the tank: its switching level in mm above the bottom.
* Click the switch for the pop-up: the tank with the water, the switch and the float, the last 8
seconds of the level and the contact,
graphs, an event log and a check page (it warns above the reed's 0.5 A).
The body is drawn as on the real part and to true scale against our Arduino.
The TEP signature and the pop-up are TEP additions.
ONE DEVICE (search "FLOAT" or "level" in Pick Devices):
FLOATSWITCHTEP "Float Switch V1.0" in TEPFLOAT.LIB (Switches and Relays > Switches), prefix S,
model TEPFLOAT.DLL (analog).
Pins: 1 (red wire) and 2 (black wire), at the top.
The demo also uses our relay module (TEPRELAY, RELAY1ADVTEP) and our mini submersible pump
(TEPSUBPUMP, SUBPUMPTEP).
THE POP-UP
Click the part at Run. Tabs:
Float Switch The tank (the water, the switch level, the float - green while it is up), the
water and the contact over the last 8 s;
tiles: the water level, the switch height, the float, the contact, the changes, NO
/ NC, the voltage and current, the
last change. Chips: Demo tank, Water +20 mm, Water -20 mm.
Graphs the live values over the last 2, 6 or 15 s. Live / Freeze.
Event log every change and warning; filters All / Changes / Warnings, Pause, Clear
Check what the part is doing and what to look at, each with a verdict (green = fine, amber
= check, red = wrong)
Settings theme, text size, open at Run, window size
Help report a bug, suggest a feature, article, updates, donate, forum; Copy diagnostics
for a bug report
TEST STATUS
V1.0: verified in Proteus 8.5 on 21 Nov 2026 (the demo project as shipped: an A4 sheet, an Arduino UNO V4.0).
What the runs showed (the model's own numbers and the sketch's monitor):
* The project loads and starts cleanly; the demo ran 5.6 simulated seconds in about 2 minutes 15
seconds on our PC with both pop-ups
open and the pictures being taken.
* The DEMO tank: 80 mm at the start, filling at 60 mm/s to 240 mm, emptying at 90 mm/s to 45 mm,
filling again.
* S1 (LOW, 60 mm) closed at the start (the water at 80 mm, the float 16 mm up against its collar),
0.05 mA through it - the Arduino's
pull-up.
* S2 (HIGH, 220 mm) closed at 2.37 s with the water at 222 mm: the monitor "2308 ms HIGH float up"
(the sketch's millis() runs about
65 ms behind the simulation), the pump ON - the relay on D7 pulled in, the pump ran. S2 opened
at 2.88 s (221 mm); the pump kept
running (the band).
* S1 opened at 4.66 s with the water at 61 mm: "4592 ms LOW float down", the pump OFF after 2284
ms. S1 closed again at 5.12 s (62 mm);
the pump stayed off until the HIGH float.
* Over the run: S1 3 changes, S2 2 changes; at most 0.05 mA through a reed (rating 500 mA), no
warning.
* The pop-ups (Float Switch, Graphs, Event log, Check) followed the run; the Check page showed all
three lines green.
INSTALLATION (about 2 minutes)
1. Close Proteus. Extract the WHOLE ZIP to a normal folder (e.g. Desktop).
2. Copy everything in "Proteus Library Files" (TEPFLOAT.LIB, TEPRELAY.LIB, TEPSUBPUMP.LIB and our
Arduino library V4.0, ArduinoV4TEP.LIB, with the ARDUINO UNO V4.0 used by the demo) to the LIBRARY
folder of Proteus, for example:
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
(use the folder that already holds Proteus's own .LIB files).
3. Copy TEPFLOAT.DLL, TEPRELAY.DLL, TEPSUBPUMP.DLL and TEPARDUINO.DLL from "Proteus Model Files" to
the MODELS folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPFLOAT.IDX from the LIBRARY folder if it is there (Proteus makes a new index).
5. Start Proteus. In Pick Devices (P) search "FLOAT".
RUN THE DEMO
"Proteus Simulation\Float-Switch-Sump-Pump-ArduinoUnoV4.pdsprj" (an A4 sheet) - keep the .hex file
and the DLLs beside the project.
ARD1: Arduino UNO V4.0 running FloatSwitch_Demo.hex (window "TEP Arduino UNO - ARD1"): D2 =
LOW float, D3 = HIGH float,
D7 = the pump relay.
S1: the LOW float switch at 60 mm (NO): pin 1 to D2, pin 2 to GND.
S2: the HIGH float switch at 220 mm (NO): pin 1 to D3, pin 2 to GND. Both on the DEMO tank.
RLY1: our relay module: VCC and NO on the VCC rail, IN on D7, GND; COM to the pump.
M1: our mini submersible pump from COM to GND.
The sketch reads both floats with INPUT_PULLUP (LOW = the water above the float), starts the pump
when the HIGH float rises and stops
it only when the LOW float drops - a level band, so the pump never hunts around one level.
Closed the monitor? Click the UNO's USB port.
WIRING (the same in Proteus and on a real board)
Like a push button: pin 2 to GND, pin 1 to an input with INPUT_PULLUP (or a 10 kohm pull-up). NO
reads LOW when the water lifts the
float. The reed carries 0.5 A at most: switch a pump through a relay or a MOSFET, never through
the float switch itself.
REAL HARDWARE:
* Mounted float-down the switch is NO ("closed when full"); pull the clip, turn the float over and
it is NC ("closed when empty").
* Two switches make a band: one alone at one level makes a pump hunt (start, stop, start) as waves
pass the float.
* The reed's rating is small (typically 0.5 A, 100 V, 10 W) - the coil of a relay module is fine, a
pump is not.
* Mount it vertical; a float switch on a tilted stem sticks.
THE DEMO SKETCH ON THE SERIAL MONITOR (FloatSwitch_Demo V1.0, 9600 baud)
FloatSwitch_Demo prints each float change and the pump. EXPECTED MONITOR OUTPUT (shortened)
Sump pump: LOW float 60 mm (D2), HIGH float 220 mm (D3), pump relay on D7
LOW wet HIGH dry pump OFF
2308 ms HIGH float up (water above 220 mm)
-> pump ON (emptying)
2813 ms HIGH float down
4592 ms LOW float down (water under 60 mm)
-> pump OFF after 2284 ms
5057 ms LOW float up (water above 60 mm)
PROPERTIES (double-click the part > Edit Properties)
PROFILE DEMO (the tank fills and empties) or STEADY (the water at LEVEL). Default DEMO.
LEVEL The water for STEADY, mm above the tank bottom. Default 150.
HEIGHT Where the switch sits: its switching level, mm above the tank bottom. Default 150.
CONTACT NO (closes when the float rises) or NC (the float turned over). Default NO.
TANK The tank depth for the pop-up, mm. Default 300.
Every run starts again from the properties.
LINKS.INI (OPTIONAL)
The Help page cards of the pop-up open web pages. To point them somewhere else without a new DLL,
put a text file named links.ini next to TEPFLOAT.DLL with lines KEY=URL, for example:
ARTICLE=https://www.theengineeringprojects.com/...
Keys: WEBSITE, FORUM, BUG_REPORT, FEATURE_REQUEST, ARTICLE, USER_GUIDE,
UPDATE_CHECK, DONATE. Only http:// and https:// links are used; lines starting
with # are comments.
TROUBLESHOOTING
* The input never changes: pin 1 has no pull-up - use INPUT_PULLUP or a resistor to VCC.
* The logic is upside down: NO reads LOW when wet; if you want HIGH when wet, set CONTACT NC or
invert in the sketch.
* The pump starts and stops all the time: one switch at one level - use two (a band) or a delay.
* The pop-up warns about the current: the pump is wired through the float switch - use a relay or a
MOSFET.
* The part is not simulated: TEPFLOAT.DLL is missing from MODELS and from the project folder.
* The part is not simulated: TEPFLOAT.DLL is missing from MODELS and from the project folder. No UNO
/ no monitor window: TEPARDUINO.DLL is missing, or click the UNO's USB port.
BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot, the Serial Monitor text, the
simulation log and the pop-up's Copy diagnostics text:
https://www.theengineeringprojects.com/forum/category/micro-limit-switch-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 model (TEPFLOAT.DLL), the symbols and artwork, the other parts of ours in the demo and the
Arduino Library V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, with its built-in TEP Serial Monitor
Advance) are made by The Engineering Projects. The models use only standard Windows libraries; no
Visual C++ redistributable is needed.
The C++ source code is not included.
* Arduino UNO V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, our Arduino Library V4.0 - its
microcontroller is Proteus's own AVR model): The Engineering Projects,
https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
* The .hex file is built from the demo sketch and the Arduino AVR core 1.8.6, which includes
LGPL-licensed code; its source code is available at
https://github.com/arduino/ArduinoCore-avr/tree/1.8.6
* Proteus is a product of Labcenter Electronics and is not included. Arduino is a trademark of Arduino SA.
This library is not made or endorsed by Arduino or Labcenter.
REBUILDING THE FIRMWARE (OPTIONAL)
The HEX file is supplied; Arduino IDE is not needed to run the demo. To edit the sketch, open
Arduino Code\FloatSwitch_Demo\FloatSwitch_Demo.ino, select Arduino Uno and use Sketch > Export
Compiled Binary. Replace the simulation's .hex with the exported HEX. The sketch needs 3,774 bytes
of flash and 210 bytes of RAM.
MODEL SCOPE AND LIMITS
Modelled: the reed contact (0.5 ohm closed), NO / NC, the float riding on the water between its clip
and collar with the hysteresis of its
travel, the DEMO tank and STEADY levels, the contact current against the reed's rating.
Our figures: the DEMO tank's rates (60 mm/s in, 90 mm/s out, 45 - 240 mm) are fast on purpose, so a
whole cycle fits in a few seconds.
Not modelled: waves and turbulence, the contact bounce, the water being moved by the pump (the DEMO
tank has its own curve).
VERSION
TEP Float Switch library V1.0 (Nov 2026). Device FLOATSWITCHTEP (TEPFLOAT.LIB / TEPFLOAT.DLL). Demo
sketch FloatSwitch_Demo V1.0. Demo board: ARDUINO UNO V4.0 (TEP Arduino Library V4.0) with its
built-in serial monitor; our relay module and mini submersible pump libraries.Development1 release
-
V1.0Float Switch 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.
Installation8 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
- Arduino IDE1.8 or 2.x, with the board of the tutorial chosen under Tools → Board
- Any archive toolWindows, macOS and Linux extract ZIP files on their own
Steps
- 1
Extract the archive
Right-click 58db40ed4b844b81b392e5c6e7120ebb.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (Float-Switch-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move ArduinoV4TEP.LIB, TEPFLOAT.LIB and TEPRELAY.LIB and 1 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 TEPARDUINO.DLL, TEPFLOAT.DLL and TEPRELAY.DLL and 1 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
Open the sketch in the Arduino IDE
Open FloatSwitch_Demo.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.
- 6
Load the HEX file
In Proteus double-click the microcontroller, set Program File to FloatSwitch_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open Float-Switch-Sump-Pump-ArduinoUnoV4.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.
- 8
Follow the tutorial
Float Switch Library for Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.
FAQs9 questionsContact TEP
How do I download Float Switch 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. 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?
Float Switch Library for Proteus V1.0 comes as a ZIP archive of 16 files (1.9 MB, 4.3 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware. Open the File Structure tab for the full list of 16 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, 9bc7d5d41ea5793d60a7a08d839f6b722873a9af30eeff5db9a53f0e79b78af1. In PowerShell run Get-FileHash "58db40ed4b844b81b392e5c6e7120ebb.zip"; on macOS or Linux run shasum -a 256 "58db40ed4b844b81b392e5c6e7120ebb.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.
How do I get the HEX file into the simulation?
Compile the sketch in the Arduino IDE (Sketch → Export Compiled Binary gives you the HEX next to the sketch), then in Proteus double-click the board, set Program File to that HEX and run.
Members skip the wait. Log in or join TEP.
- 0Total downloads
- 4%Popularity
- ProteusCategory
- 0Comments
- ssyedzainnasirUploaded by
- 1 Dec 2026Uploaded at
9bc7d5d41ea5793d60a7a08d839f6b722873a9af30eeff5db9a53f0e79b78af1
















Comments
0