Project Files of Turbidity Sensor Library for Proteus V1.0: Water Quality with Arduino
turbidity-tep-v1-0-7cc93782c51a4bbb9d2d734489d1058e.zip

Turbidity Sensor Library for Proteus V1.0
Turbidity Sensor Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.2 MB, 2.7 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
Turbidity Sensor Library for Proteus V1.0 is the download package that goes with our tutorial Turbidity Sensor Library for Proteus V1.0: Water Quality with Arduino. On this page you can download the ZIP file (1.2 MB) and see what is inside before you save it: 10 files in 5 folders, the Proteus library files (LIB and IDX), the simulation model (DLL), a ready Proteus simulation, an Arduino sketch and the compiled HEX firmware. The tutorial explains the design; this page gets the files onto your computer and into use.
What this library is
Turbidity-Sensor-Library-for-Proteus-v1.0.zip with the optical turbidity sensor and its A / D switch (0 - 4.5 V on OUT, the published curve NTU = -1120.4 V^2 + 5742.3 V - 4352.9, or a digital level against the threshold), Simple and Advance (TEPTURBIDITY.LIB and TEPTURBIDITY.DLL), our Arduino UNO V4.0 library with its built-in serial monitor (ArduinoV4TEP.LIB and TEPARDUINO.DLL), the two-UNO simulation with its HEX file, the demo sketch and a README.
This is version 1.0; older or newer releases, when they exist, are listed in the Development tab.
What is inside the ZIP file
- ArduinoV4TEP.LIB – Proteus library, 201.9 KB
- TEPTURBIDITY.LIB – Proteus library, 68.2 KB
- TEPARDUINO.DLL – Simulation model, 883.5 KB
- TEPTURBIDITY.DLL – Simulation model, 322 KB
- Turbidity-Sensor-ArduinoUnoV4.pdsprj – Proteus simulation, 24.4 KB
- Turbidity_Water_Demo.ino – Arduino sketch, 4.6 KB
- and 4 more, all listed in the File Structure tab
The archive unpacks to 2.7 MB and carries its own README (README.txt), shown in the README tab above.
How to download
Use the download panel at the top of this page: after the counter (30 seconds for guests, 10 for members) the black button unlocks and the ZIP file comes straight from our content network. If the browser opens it instead of saving, use Save as; extract the whole archive before using anything inside it.
How to install
- Step 1: Extract the ZIP file with Windows (Extract All), 7-Zip or WinRAR, keeping its folders.
- Step 2: Close Proteus and copy ArduinoV4TEP.LIB and TEPTURBIDITY.LIB into its LIBRARY folder (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY).
- Step 3: Copy TEPARDUINO.DLL and TEPTURBIDITY.DLL into the MODELS folder next to it, so the part simulates.
- Step 4: Start Proteus, press P and search for "ArduinoV4TEP"; place and wire it as in the tutorial.
- Step 5: Open Turbidity_Water_Demo.ino in the Arduino IDE, pick board and port and Verify (Export Compiled Binary gives the HEX).
- Step 6: In Proteus set the controller's Program File to Turbidity_Water_Demo.hex; on hardware, flash the same file.
- Step 7: Open Turbidity-Sensor-ArduinoUnoV4.pdsprj in Proteus and press Play.
Read the detailed guide
This page is for the files. The full tutorial, Turbidity Sensor Library for Proteus V1.0: Water Quality with Arduino, explains the circuit and the code step by step and shows the working results and the simulation; read it before you build. Questions about the download or the installation go in the comments below; more Proteus downloads are listed further down this page.
File Structure
4.6 KB201.9 KB68.2 KB883.5 KB322 KB883.5 KB322 KB24.4 KB22.5 KB22.3 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in Turbidity Sensor Library for Proteus V1.0: Water Quality with Arduino. Open an image for its full size.












README
TURBIDITY SENSOR LIBRARY FOR PROTEUS - V1.0 (WATER QUALITY: NTU, ANALOG AND DIGITAL OUTPUT)
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/10/turbidity-sensor-library-for-proteus-v1-0.html
Report a bug or suggest a feature (our forum):
https://www.theengineeringprojects.com/forum/category/turbidity-sensor-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
The built-in monitor is our TEP Serial Monitor Advance - its own article:
https://www.theengineeringprojects.com/2026/10/serial-monitor-advance-proteus-library.html
Support us (the libraries are free):
https://www.theengineeringprojects.com/donate
FILE STRUCTURE
TURBIDITY-TEP-v1.0/
|-- Proteus Library Files/
| |-- ArduinoV4TEP.LIB 201.9 KB TEP Arduino boards V4.0 (UNO), to LIBRARY
| |-- TEPTURBIDITY.LIB 68.2 KB the turbidity sensor, to LIBRARY
|-- Proteus Model Files/
| |-- TEPARDUINO.DLL 883.5 KB the Arduino board model, to MODELS
| |-- TEPTURBIDITY.DLL 322.0 KB the turbidity sensor model, to MODELS
|-- Proteus Simulation/
| |-- TEPARDUINO.DLL 883.5 KB copy of the board model
| |-- TEPTURBIDITY.DLL 322.0 KB copy of the model
| |-- Turbidity_Water_Demo.hex 22.5 KB both UNOs (demo sketch V1.0)
| |-- Turbidity-Sensor-ArduinoUnoV4.pdsprj 24.4 KB demo: 2 UNOs, 2 sensors on A0
|-- Arduino Code/
| |-- Turbidity_Water_Demo/Turbidity_Water_Demo.ino 4.6 KB the demo sketch (source of the .hex)
|-- README.txt ~23.3 KB this file
Total: 2.69 MB (unzipped). The C++ source code of the model is not included.
WHAT IS IT?
A simulation model of the common analog / digital turbidity sensor: the white
optical probe with its U-shaped tip and the small adapter board with an A / D
switch and a threshold potentiometer. Turbidity is how cloudy the water is -
how much fine mud, algae or other particles float in it - in NTU
(nephelometric turbidity units). The probe has an infrared LED on one side of
its gap and a phototransistor on the other: the more particles, the more of
the light they scatter, the lower the signal. Our own model, written from
the maker's published data - not a part that shows a number:
* The analog output: 0 - 4.5 V from a 5 V supply (up to 40 mA, a response
under 500 ms). The model gives the voltage that the maker's published
curve (at 5 V) turns back into the water's turbidity:
NTU = -1120.4 V^2 + 5742.3 V - 4352.9 (2.5 - 4.2 V)
Clear water gives 4.2 V, about 3000 NTU gives 2.6 V. Below 2.56 V the
formula turns down again: a sketch can only say "3000 NTU or more".
* Beyond the curve (more than about 3000 NTU) the output keeps falling,
0.2 V per 1000 NTU (the model's choice).
* The probe out of the water (in air): the light passes freely - about
4.30 V, a sketch reads it as clear water.
* Every probe differs a little: the ZERO property is this probe's voltage
in clear water at 5 V (4.20 = the curve). The curve is steepest near
clear water - 0.1 V is about 370 NTU there - so a probe that gives
4.05 V reads clear water as about 530 NTU until you calibrate it (CAL
in clear water).
* An optical sensor: the output moves with the supply (in proportion to
VCC) - a board on 4.8 V USB power reads clear water as about 590 NTU. A
warning below 4.9 V or above 5.1 V.
* The A / D switch: on A, OUT is the analog signal; on D, OUT is a digital
level from the board's comparator: HIGH while the water is clearer than
the threshold, LOW while it is more turbid (the model's polarity), with a
50 mV hysteresis. The potentiometer sets the threshold (THRESHOLD, in
NTU).
* The output follows the water with a short lag (about 0.15 s) and has a
few mV of noise - one ADC step near clear water is about 18 NTU, so a
sketch takes the median of many readings.
* The water at the probe: its turbidity (property NTU); the panel's - / +
(50 NTU a click), six presets (CLEAR 0, TAP 1, POND 60, RIVER 250, FLOOD
1500, MUD 4000 NTU) and four actions: STIR (the sediment rises - about
+800 NTU that settles again over a minute), BUBBLES (12 s of air bubbles
crossing the light: short dips of the output), DILUTE (as much clear
water again: half) and PROBE OUT (the probe in air, and back).
The board is drawn at about twice its real size: the 3-pin header on the
left (+, -, OUT), the A / D slide switch, the blue threshold potentiometer,
the comparator and the white 3-pin probe socket, and the cable to the white
probe. TEP additions: the SIMPLE / ADVANCE badge, the PWR and D LEDs (D lit
while the comparator says clearer than the threshold) and the panel button
on the board, and the beaker next to it - the water's colour follows the
turbidity, the infrared light across the probe's gap fades as the water
clouds, bubbles show while BUBBLES runs, and the water's level drops below
the probe with PROBE OUT. The beaker, the LEDs, the badge, the button and the
panels are TEP additions; the real board has none of them.
TWO DEVICES IN ONE LIBRARY (search "TURBIDITY" in Pick Devices):
Simple TURBIDITYTEP "Turbidity Sensor V1.0 - Simple"
Advance TURBIDITYADVTEP (the same, "- Advance")
(pins VCC, GND and OUT on the left; category Sensors > Water
Quality)
Both The A / D switch and the potentiometer on the board are live:
click the switch to move it; click the left half of the
potentiometer to turn the threshold down 100 NTU, the right half
to turn it up.
Simple On-Sheet Panel: the STATUS panel under the board - the banner
(the reading and the output; amber with a probe off the curve, a
supply off 5 V, bubbles, the probe in air; red beyond the curve
or without power; blue with the switch on D; grey while the
output settles), THE WATER: - / + for the turbidity and the
threshold, a ruler 0 - 4000 NTU (the curve, the threshold, the
water and the reading), six presets, four actions, ten readouts
(STATE, OUTPUT, THE WATER, SWITCH, THRESHOLD, CURVE READS, WITH
ZERO, ANALOGREAD, PROBE ZERO, DIGITAL) and the last four events.
The red X closes the panel; the PANEL button on the board opens
it again.
Advance Pop-Up Panel: only the board on the schematic; at Run a TEP
pop-up window opens - the look of the TEP Serial Monitor. Tabs
Sensor, Event log and Tests; gear and ? icons for Settings and
Help; the palette icon switches the theme:
Sensor the presets on the toolbar; THE WATER AT THE PROBE
(NTU -500 / -50 / +50 / +500, the switch A / D, the
threshold -100 / +100, the actions, the ruler);
WHAT THE BOARD GIVES (OUT, what the curve reads,
the reading with this probe's zero, the digital
level); THE CURVE with this moment's point; the
last 150 s of the water and the reading
Event log power, the readings, the water, notes and warnings
(filters, pause, clear)
Tests Output & curve, Calibration & supply, Digital &
wiring (THE TEST TOOLS)
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
The OPEN PANEL button on the board opens the window again.
Both devices use one model, TEPTURBIDITY.DLL.
TEST STATUS
V1.0: verified in Proteus 8.5 on 18 Oct 2026 (the demo project as shipped:
two Arduino UNO V4.0 boards with their built-in monitors; node 1 with the
Simple sensor in tap water, 1 NTU, a probe on the curve; node 2 with the
Advance sensor in clear water, a probe that gives 4.05 V; both switches on
A).
What the run showed:
* ARD1 from the second report: "#2 t=2 s ADC 860 4.199 V NTU 4
clear" (one ADC step near clear water is about 18 NTU).
* ARD2: clear water read as 517 - 533 NTU "turbid" (ADC 829 / 830); the
Calibration & supply tool - the probe gives 4.05 V, clear water reads
526 NTU; CAL - "offset = +0.147 V (clear water read 4.053 V; the curve
wants 4.20 V)", then "NTU 0 clear".
* POND (60 NTU) - 54 - 90 NTU "cloudy"; RIVER (250 NTU) - 264 NTU; the
Output & curve tool on the river: 3.975 V, the curve 768 NTU, with the
probe's zero 4.125 V and 250 NTU, one ADC step 15 NTU.
* BUBBLES with FILTER 0 - single readings of 246 - 298 NTU for 250 NTU;
FILTER 1 - 264 NTU every second, the bubbles hidden.
* STIR - the sediment rises to about 1000 NTU and settles: 935 NTU, 643
NTU ten seconds later, 399 NTU half a minute after the stir.
* FLOOD (1500 NTU) - 1500 / 1513 NTU; MUD (4000 NTU) - 2.280 V, "NTU 3000
muddy - beyond the curve", the pop-up's banner red.
* CLEAR and PROBE OUT - 4.150 V, "NTU 0 clear - probe in air?".
* The switch on D in U2's pop-up: RIVER - "D HIGH: the switch is on D -
clearer than the threshold" (ADC 1004); FLOOD - "D LOW ..." (ADC 0);
the threshold up to 1600 NTU - D HIGH again for the same water.
* Node 1 with the guarded real mouse (every click read back from the
model): RIVER - 249 NTU; STIR; the board's A / D switch - D HIGH; FLOOD
- D LOW; the switch back to A - 1502 NTU; TAP; PROBE OUT - 4.302 V,
"probe in air?", the D LED and the water level follow; the red X closed
the panel, PANEL opened it again.
* 175.1 s of simulation took 1,304 s, about 0.13 x real time with the
pop-up and both monitors open on a busy PC (an earlier run on a quiet
PC: 0.34 x real time).
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" (TEPTURBIDITY.LIB with the two
parts, 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
(on some PCs: C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\
LIBRARY - use the folder that already holds Proteus's own .LIB files).
3. Copy TEPTURBIDITY.DLL and TEPARDUINO.DLL from "Proteus Model Files" to the
MODELS folder (...\Proteus 8 Professional\MODELS).
ArduinoV4TEP.LIB and TEPARDUINO.DLL are the files of our Arduino Library
V4.0 - if you have it, they are the same.
4. Delete TEPTURBIDITY.IDX from the LIBRARY folder if it is there (Proteus
makes a new index).
5. Start Proteus. In Pick Devices (P) search "TURBIDITY".
RUN THE DEMO
"Proteus Simulation\Turbidity-Sensor-ArduinoUnoV4.pdsprj" - keep the .hex
file and the two DLLs beside the project.
ARD1: Arduino UNO V4.0 + U1 = a turbidity sensor (Simple): tap water,
1 NTU, a probe on the curve (ZERO 4.20 V), the switch on A.
ARD2: Arduino UNO V4.0 + U2 = a turbidity sensor (Advance): clear water, a
probe that gives 4.05 V in clear water (ZERO 4.05), the switch on A.
Both UNOs run Turbidity_Water_Demo.hex and each has its serial monitor
built in ("TEP Arduino UNO - ARD1" / "- ARD2"). OUT goes to A0 on both.
1. Press Run. Both UNOs' monitor windows open (9600 baud) and so does the
pop-up of U2 (move it aside - it opens over the schematic).
2. The sketch reads A0 every 40 ms, takes the median of the last 30
readings each second and prints the ADC value, the voltage and the NTU
with a word (clear, cloudy, turbid, muddy). ARD1 shows a few NTU.
3. ARD2 reads clear water as hundreds of NTU: its probe gives 4.05 V, the
curve wants 4.20 V. Type CAL - the probe is in clear water: the sketch
works out the offset (+0.15 V) and reads about 0 NTU.
4. Change the water on U1's STATUS panel or in U2's pop-up (- / +, the
presets, STIR, BUBBLES, DILUTE, PROBE OUT).
5. Type FILTER 0 in a monitor to see single readings (BUBBLES shows the
difference), FILTER 1 for the median again.
6. Click the A / D switch on a board (or A / D in the pop-up): the sketch
now sees a digital level - D HIGH or D LOW against the threshold.
Closed a monitor window? Click the UNO's USB port.
WIRING
Turbidity board pin Arduino UNO
+ (VCC) 5V (in Proteus a VCC terminal)
- (GND) GND
OUT A0 (any analog input; with the switch on D also a
digital pin)
The board's OUT reaches its UNO through a net label - TURB_1 (node 1) and
TURB_2 (node 2): the same name = connected. VCC and GND are Proteus power
terminals. The serial monitor needs no wires: it is built into the Arduino
UNO V4.0.
float v = analogRead(A0) * 5.0 / 1024.0 + offset;
float ntu = -1120.4 * v * v + 5742.3 * v - 4352.9; // 2.56 - 4.2 V
REAL HARDWARE:
* 5 V: the output follows the supply. Calibrate on the supply you use (USB
often gives 4.8 V).
* The output reaches 4.5 V: a 3.3 V board needs a divider (for example
10 k / 20 k) on OUT.
* Calibrate each probe in clear (filtered or bottled) water: the curve is
steep near clear water.
* The probe's tip is waterproof, its top and the board are not. Keep the
windows of the tip clean: a film or a fingerprint scatters the light like
turbid water. Bubbles on the windows read as turbidity - mount the probe
where no bubbles collect.
* The probe is optical: strong sunlight on the gap disturbs it.
THE TEST TOOLS (Advance, Tests tab) - what they really measure
Every tool reads the model during the running simulation; each shows one
"Good for:" line and, where it judges, a verdict per row (green = fine, amber
= check, red = wrong, grey = only an explanation).
Output & curve
Good for: a reading that is far off, a reading that jumps,
choosing the filter, understanding the formula. The analog
signal and its analogRead value, the curve step by step,
this probe's zero, the size of one ADC step here, the range.
Calibration & supply
Good for: clear water that reads hundreds of NTU, two probes
that disagree, a board on 4.8 V USB power. This probe's
clear-water voltage, what clear water reads, the supply,
what CAL does.
Digital & wiring
Good for: a sketch that reads only 0 or 1023, setting the
potentiometer, a reading that never changes. The power, the
switch, the threshold, the digital level, the probe, the
cable.
THE DEMO SKETCH ON THE SERIAL MONITOR (Turbidity_Water_Demo V1.0)
CAL the probe is in clear water: offset = 4.20 V - the
reading (0 at the start)
OFFSET x set the offset by hand (V)
FILTER 0 / 1 one reading instead of the median of 30, and back
HELP the command list
Commands are not case-sensitive; type them in the UNO's built-in monitor and
press Enter. The report line: "#N t=.. s ADC n v V NTU x word" with the
word clear (under 5 NTU), cloudy (under 100), turbid (under 1000) or muddy,
and " - probe in air?" above 4.25 V or " - beyond the curve" at 2.56 V and
below. With the switch on D the line ends "D HIGH: the switch is on D -
clearer than the threshold" (ADC above 960) or "D LOW: ..." (ADC below 20).
EXPECTED MONITOR OUTPUT (the start)
ARD1 (tap water, 1 NTU, a probe on the curve):
TEP turbidity sensor - demo V1.0
OUT on A0 (switch on A): a reading every 40 ms, the median of 30 each second
Commands: CAL (in clear water), OFFSET x, FILTER 0 / 1, HELP
#1 t=1 s ADC 845 4.126 V NTU 266 turbid
#2 t=2 s ADC 860 4.199 V NTU 4 clear
#3 t=3 s ADC 860 4.199 V NTU 4 clear
(the first report is high: the median still holds readings from power-on)
ARD2 (clear water, a probe that gives 4.05 V), then CAL:
#8 t=8 s ADC 830 4.053 V NTU 517 turbid
CAL
offset = +0.147 V (clear water read 4.053 V; the curve wants 4.20 V)
#9 t=9 s ADC 830 4.053 V NTU 0 clear
PROPERTIES (double-click the part > Edit Properties)
NTU the water's turbidity at the start in NTU (default 1)
ZERO this probe's voltage in clear water at 5 V (default 4.20 = the
curve; 4.05 reads clear water as about 530 NTU)
THRESHOLD the potentiometer: the turbidity where D switches, in NTU
(default 1000)
MODE the A / D switch at the start, A or D (default A)
PANEL Simple only: the STATUS panel at the start, OPEN or CLOSED
Every run starts again from the properties.
The demo's UNOs (ARDUINO UNO V4.0): PROGRAM Turbidity_Water_Demo.hex, MONITOR
YES (the built-in monitor), BAUD 9600, AUTOOPEN YES, BOOTLOADER YES.
LINKS.INI (OPTIONAL)
The Help page cards of the Advance device open web pages. To point them
somewhere else without a new DLL, put a text file named links.ini next to
TEPTURBIDITY.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
* Clear water reads hundreds of NTU: the probe's ZERO is below 4.20 V or the
supply is below 5 V - CAL in clear water.
* Always 0 NTU: the probe is in air (PROBE OUT) - a dry probe reads as clear
water - or the water is clear.
* "3000 NTU muddy - beyond the curve": the water is more turbid than the
curve can tell.
* Only 0 or about 1003 on analogRead: the board's switch is on D.
* Readings that jump by 18 NTU or more: the noise near clear water - keep the
median filter on (FILTER 1); bubbles make single readings dip.
* The parts are not simulated: TEPTURBIDITY.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.
* Advance: the pop-up does not appear - click OPEN PANEL on the board, or
turn "Open the panel at Run" on its Settings page back on.
BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot, the Serial Monitor text, the
simulation log and (Advance) the Copy diagnostics text:
https://www.theengineeringprojects.com/forum/category/turbidity-sensor-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 turbidity sensor model (TEPTURBIDITY.DLL), the symbols and artwork 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 model is an independent implementation written from the maker's
published data (the pins, the supply, the output range, the A / D switch,
the curve). The model uses 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 demo sketch uses no library - none is needed (our own code: the
median filter, the published curve).
* 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
The demo sketch's source is in "Arduino Code", so the .hex can be rebuilt
with other versions of the core (REBUILDING THE FIRMWARE).
* 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 the
sensor's maker or by 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\Turbidity_Water_Demo\Turbidity_Water_Demo.ino in
the Arduino IDE, select Arduino Uno and use Sketch > Export Compiled Binary.
Replace the simulation's .hex with the exported HEX.
The sketch needs 8,198 bytes of flash and 348 bytes of RAM.
MODEL SCOPE AND LIMITS
Modelled: the analog output for the water (the published curve), the curve's
end at about 3000 NTU and the output beyond it, the probe in air, the probe's
clear-water voltage (ZERO), the output in proportion to the supply, the A / D
switch and the comparator with its threshold and hysteresis, the output's
lag and noise, bubbles, power on / off (up to 40 mA), the water (turbidity,
the presets and actions).
How the part works with the circuit: VCC and GND power the board (on or
off, its current); OUT is a voltage source behind 1 kohm (the analog signal,
or about 0.98 x VCC / 0 V on D).
Not modelled: the water's colour (dissolved dye absorbs light too), the
water's temperature, stray light, a dirty probe, the particle size, the
probe's ageing, a 3.3 V supply's exact behaviour. The model's own choices:
ZERO, the output beyond the curve, 4.30 V in air, the proportion to VCC, the
lag (0.15 s), the noise (5 mV, a new value every 20 ms), the digital
polarity and hysteresis, STIR (+800 NTU, settling with tau 20 s), BUBBLES
(12 s of 60 - 200 ms dips of 0.3 - 1.2 V), DILUTE's mixing (1.5 s), the
presets' values.
VERSION
TEP Turbidity Sensor library V1.0 (Oct 2026). Devices TURBIDITYTEP /
TURBIDITYADVTEP (TEPTURBIDITY.LIB / TEPTURBIDITY.DLL). Demo sketch
Turbidity_Water_Demo V1.0 (A0, the median of 30 readings, no library). Demo
board: ARDUINO UNO V4.0 (TEP Arduino Library V4.0) with its built-in serial
monitor.Development1 release
-
V1.0Turbidity Sensor 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 turbidity-tep-v1-0-7cc93782c51a4bbb9d2d734489d1058e.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (TURBIDITY-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move ArduinoV4TEP.LIB and TEPTURBIDITY.LIB 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 and TEPTURBIDITY.DLL 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 Turbidity_Water_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 Turbidity_Water_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open Turbidity-Sensor-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
Turbidity Sensor Library for Proteus V1.0: Water Quality with Arduino explains every connection and setting in order; keep it open beside the files while you build.
FAQs9 questionsContact TEP
How do I download Turbidity Sensor 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?
Turbidity Sensor Library for Proteus V1.0 comes as a ZIP archive of 10 files (1.2 MB, 2.7 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 10 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, 5d63cf8df7b71d9f5201307dc3412e0f8367d70183b3f9641291f7fb97691aa7. In PowerShell run Get-FileHash "turbidity-tep-v1-0-7cc93782c51a4bbb9d2d734489d1058e.zip"; on macOS or Linux run shasum -a 256 "turbidity-tep-v1-0-7cc93782c51a4bbb9d2d734489d1058e.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.
- 19Total downloads
- 4%Popularity
- ProteusCategory
- 0Comments
- ssyedzainnasirUploaded by
- 17 Oct 2026Uploaded at
5d63cf8df7b71d9f5201307dc3412e0f8367d70183b3f9641291f7fb97691aa7
















Comments
0