Project Files of Rain Sensor Library for Proteus V2.0 (FC-37 / YL-83 + Arduino)
rain-sensor-tep-v2-0-135ecf180ed34723a8dee3cd1e9539da.zip

Rain Sensor Library for Proteus V2.0
Rain Sensor Library for Proteus V2.0 comes as a ZIP archive of 12 files (1.4 MB, 3.0 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware.
- LIBProteus library
- IDXProteus library index
- DLLProteus model
- DSNProteus simulation
- INOArduino sketch
- HEXHEX firmware
Description
This is the download page of Rain Sensor Library for Proteus V2.0, the file package of the tutorial Rain Sensor Library for Proteus V2.0 (FC-37 / YL-83 + Arduino), published on The Engineering Projects in October 2026. Here you get the ZIP file (1.4 MB) with the Proteus library files (LIB and IDX), the simulation model (DLL), a ready Proteus simulation, an Arduino sketch and the compiled HEX firmware, the list of files it contains, the README when there is one, and the installation steps in order.
What this library is
Rain-Sensor-Library-for-Proteus-v2.0.zip with Rain Sensor Simple and Advance (TEPRAIN.LIB and TEPRAIN.DLL), the TEP Serial Monitor and Arduino UNO libraries for Proteus, the two-UNO rain alarm simulation with its HEX file, the demo sketch and a README.
This is version 2.0; older or newer releases, when they exist, are listed in the Development tab.
What is inside the ZIP file
- ArduinoV3TEP.LIB – Proteus library, 95.6 KB
- TEPRAIN.LIB – Proteus library, 157.2 KB
- TEPSERIALMON.LIB – Proteus library, 11.1 KB
- ArduinoV3TEP.IDX – Library index, 830 B
- TEPRAIN.DLL – Simulation model, 380 KB
- TEPSERIALMON.DLL – Simulation model, 978 KB
- and 6 more, all listed in the File Structure tab
The archive unpacks to 3.0 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 ArduinoV3TEP.LIB, TEPRAIN.LIB and TEPSERIALMON.LIB and ArduinoV3TEP.IDX into its LIBRARY folder (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY).
- Step 3: Copy TEPRAIN.DLL and TEPSERIALMON.DLL into the MODELS folder next to it, so the part simulates.
- Step 4: Start Proteus, press P and search for "ArduinoV3TEP"; place and wire it as in the tutorial.
- Step 5: Open Rain_Alarm.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 Rain_Alarm.hex; on hardware, flash the same file.
- Step 7: Open Rain-Sensor-ArduinoUnoV3.pdsprj in Proteus and press Play.
Read the detailed guide
This page is for the files. The full tutorial, Rain Sensor Library for Proteus V2.0 (FC-37 / YL-83 + 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
8.7 KB830 B95.6 KB157.2 KB11.1 KB380 KB978 KB38.6 KB14.8 KB380 KB978 KB32 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in Rain Sensor Library for Proteus V2.0 (FC-37 / YL-83 + Arduino). Open an image for its full size.












README
RAIN SENSOR (FC-37 / YL-83) LIBRARY FOR PROTEUS - V2.0
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/rain-sensor-library-for-proteus-v2-0.html
Report a bug or suggest a feature (our forum):
https://www.theengineeringprojects.com/forum/category/rain-sensor-proteus-library
The demo uses our TEP Serial Monitor Advance (included) instead of Proteus's
Virtual Terminal - 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
RAIN-TEP-v2.0/
|-- Proteus Library Files/
| |-- ArduinoV3TEP.IDX 0.8 KB its index -> LIBRARY folder
| |-- ArduinoV3TEP.LIB 95.6 KB TEP Arduino UNO (demo) -> LIBRARY folder
| |-- TEPRAIN.LIB 157.2 KB Rain Simple + Advance (2 devices) -> LIBRARY folder
| |-- TEPSERIALMON.LIB 11.1 KB TEP Serial Monitor Advance -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPRAIN.DLL 380.0 KB rain sensor model -> MODELS folder
| |-- TEPSERIALMON.DLL 978.0 KB Serial Monitor model -> MODELS folder
|-- Proteus Simulation/
| |-- Rain_Alarm.hex 14.8 KB both UNOs (demo sketch V2.0)
| |-- Rain-Sensor-ArduinoUnoV3.pdsprj 38.6 KB demo: UNO 1 + Rain Simple, UNO 2 + Rain Advance
| |-- TEPRAIN.DLL 380.0 KB copy of the model so the demo runs as is
| |-- TEPSERIALMON.DLL 978.0 KB copy of the monitor model
|-- Arduino Code/
| |-- Rain_Alarm/Rain_Alarm.ino 8.7 KB the demo sketch (source of the .hex)
|-- README.txt ~33.2 KB this file
Total: 3.00 MB (unzipped). The C++ source code of the model is not included.
WHAT IS IT?
A simulation model of the popular raindrop sensor for Proteus 8: the YL-83 /
FC-37 rain plate (two interleaved comb traces) and the blue LM393 comparator
board it plugs into. It is an ANALOG model - the board is real resistors inside
Proteus's SPICE simulator - so A0 is a real voltage your Arduino reads with
analogRead(), and D0 is the comparator's open-collector output with the board's
10 k pull-up:
* A0 = VCC x Rplate / (Rplate + 10 k): a dry plate is an open circuit, so A0 =
VCC and the UNO reads 1023; water bridging the traces pulls A0 down - 8
counts per percent of wetness (25 % = 824, 45 % = 664, 75 % = 423, 92 % =
287, 100 % = 223); it follows the supply (ratiometric) like the real board.
* D0 goes LOW (and the green D0 LED lights) when the plate is wetter than the
threshold set with the blue pot (default 20 % = 4.22 V = ADC 864) - rain;
HIGH (the pull-up) when it is drier.
You set the weather with buttons: CLEAR, DRIZZLE (1 mm/h), RAIN (5 mm/h), HEAVY
RAIN (20 mm/h), STORM (50 mm/h). The rain wets the plate towards its level (25 /
45 / 75 / 92 %) with a time constant (8 / 4 / 2.5 / 1.5 s); when the rain stops
the sun dries it (SLOW or FAST) - and, like a real plate, it stays wet (D0 LOW)
for a while after the rain has stopped. SPLASH puts one drop on the plate (+10 %),
WIPE THE PLATE dries it at once, the pot - / + 5 % moves the threshold. The demo
sketch's (1024 - adc) / 8 prints exactly the wetness the panel shows.
The part looks like the real module: the blue board with the LM393, the blue
trimmer whose rotor turns with the threshold, the red PWR and green D0 LEDs and
the 4-pin header, and above it a RAIN CELL: the blue YL-83 plate on a stand on a
roof, joined to the board by its red and black wires. While the simulation runs
the clouds darken with the weather, the rain falls (drizzle dabs, rain, slanted
heavy rain, a storm with lightning), the drops land and splash, water collects
on the plate (more and bigger drops the wetter it is), the sun shines and the
water evaporates while the plate dries, the cell shows "WETNESS 45 % ADC 664",
and the A0 LEVEL bar on the board shows the A0 voltage against the pot's
reference (a red mark): blue segments = wetter than the threshold, amber =
drier. The A0 LEVEL bar is a TEP addition (not on the real board); the PWR and
D0 LEDs are the real board's two LEDs.
TWO DEVICES IN ONE LIBRARY (search "RAIN" in Pick Devices):
Rain Simple device RAINTEP "Rain Sensor (FC-37 / YL-83) - Simple"
On-Sheet Panel: the RAIN SCENE next to the sensor - the plate
on its roof under the sky (clouds, rain, lightning, the sun, the
water on the plate), a banner (PLATE DRY, RAIN DETECTED, STORM,
RAIN STOPPED - PLATE STILL WET ...), the "A0 vs POT" gauge (the
comparator explained), the readouts WETNESS / RAIN INTENSITY /
A0 / ADC / D0 and the buttons. The red X in the panel's header
closes it, the PANEL: SHOWN / CLOSED button on the board opens
it again.
Rain Advance device RAINADVTEP "Rain Sensor (FC-37 / YL-83) - Advance"
Pop-Up Panel: only the sensor on the schematic; at Run a TEP
pop-up window "TEP Rain Sensor Advance" opens - the same look as
the TEP Serial Monitor (move it by its header, resize it,
minimise it). The tabs Rain and Test sit in the header; the gear
and ? icons open Settings and Help; the palette icon switches
the theme:
Rain the same live scene, SET THE WEATHER (a "Wetness
(base)" slider 0 - 100 % with an amber "now" marker
and a "RAIN now 30.1 %" line while the weather moves
the plate, the five weathers, Splash, Wipe the plate,
the sun Slow / Fast, the pot - / + 5), WHAT THE BOARD
DOES - all measured: the supply, A0 (volts and % of
VCC), the UNO's ADC count, what the demo sketch
prints, D0 (level and volts), the LEDs, the plate's
resistance, the pot's reference, the comparator - a
chart of the last 20 s (A0, the pot's reference, the
wetness, D0 LOW) and the PIN / EVENT LOG (power,
every D0 edge with the A0 voltage, the wetness and
the time since the weather changed, every scene
change, the test tools)
Test four tools measured on the running model: A0 sweep,
D0 threshold, Wet / dry, Intensity (see THE TEST
TOOLS below)
Settings theme (TEP Dark / Light), text size, open at Run,
window size - remembered for your Windows user
Help Help & Support like the TEP Serial Monitor: report a
bug, suggest a feature, article, user guide,
updates, donate, website, forum; Copy diagnostics
for a bug report
The OPEN PANEL button on the board opens the window again after
you close it.
Both devices use the same model (TEPRAIN.DLL).
NEW IN V2.0
* Two devices: Rain Simple (the scene panel on the sheet, close / open) and Rain
Advance (pop-up window with the scene, the controls, a chart, the pin / event
log, four test tools, settings and help) - see above.
* Board: the blue LM393 board drawn clean and bold, portrait like the real
32 x 15 mm board: the LM393, the blue threshold trimmer (its rotor shows the
pot), the PWR and D0 LEDs, the A0 LEVEL bar (TEP addition), a PANEL / OPEN
PANEL button and a SIMPLE / ADVANCE badge; above it the animated rain cell (the
YL-83 plate, the weather, the water on the plate, the sun).
* Model (the analog SPICE model of the first build, unchanged): new test-tool
ramps (the wetness is held, or moves to a target at a set rate and stops
exactly there, with the D0 edge at the exact crossing time); the panels' A0 /
ADC / percentage are MEASURED at the A0 node and converted like Proteus's UNO
(ADC = A0 x 1024 / 5 V, rounded) and the demo sketch ((1024 - adc) / 8) - the
panel and the sketch print the same numbers; the comparator (D0) is decided
at every simulation step, so D0 follows A0 against the pot while the plate
wets or dries, wherever Proteus places its time steps; a pin / event log;
speed: the panels are updated 10 times a second, the sheet sends only the
parts that changed (a whole frame every 20), the pop-up repaints at most
about 5 times a second and spends at most a quarter of the time painting; no
coloured rim around the panel's
buttons, banner or readouts after they change colour (the symbol draws every
button unselected and the model paints a card-coloured pad under every box it
recolours - Proteus draws the symbol's boxes a little bigger than the
model's); the Simulation Log names the device style and the DLL version.
* The demo: ONE project with two UNOs - UNO 1 with Rain Simple, UNO 2 with Rain
Advance - each with the TEP Serial Monitor Advance instead of the Virtual
Terminal (U3 = UNO 1, U4 = UNO 2, quick buttons) and a green rain alarm LED on
D13.
* The demo sketch (V2.0) keeps the reading line of the earlier one ("ADC: 664
Wetness: 45 % Intensity: light rain D0: LOW" twice a second) and its two
verdicts - now on their own line and only when the alarm changes ("Rain
detected - close the window!", "Dry"), so no line is longer than 80 characters.
It computes the wetness as (1024 - adc) / 8, which gives the plate's wetness
whether the ADC rounds (Proteus) or truncates (a real ATmega328P). It adds the
commands HELP, STATUS, READ, EVERY ms, BANDS dry light, ALARM D0, ALARM A0 n
(millis instead of delay, so the commands answer at once). It prints nothing
periodically but the readings.
* Sheet text is plain ASCII (Proteus draws schematic text with the ANSI code
page). The C++ source code is not included.
TEST STATUS
V2.0: verified in Proteus 8.5 on 9 Oct 2026 (the demo of this package: both
devices, the panel, the pop-up and the four tools), plus 2,183 automatic checks
on a PC. In Proteus:
* the demo loads and starts cleanly; U3 shows the start lines, then "ADC: 1023
Wetness: 0 % Intensity: dry D0: HIGH" and "Dry";
* RAIN on a dry plate: D0 goes LOW while the plate gets wet, and the LM393 line
always matches A0 against the pot (4.61 V > 4.22 V: HIGH; 3.49 V < 4.22 V:
LOW); the plate settles at ADC 664 = 45 %, light rain;
* A0 sweep (11 points): slope -8.01, ADC 1023 / 944 / 864 / 784 / 704 / 624 /
544 / 463 / 383 / 303 / 223, sketch error 0 %, D0 LOW from 30 % (pot 20 %);
* D0 threshold at 10 / 20 / 40 / 60 %: D0 switches at exactly 10.0 / 20.0 /
40.0 / 60.0 % (4.609 / 4.218 / 3.436 / 2.654 V), one edge each way, no
hysteresis;
* Wet / dry (Rain, sun Fast, 1 step): time constant 3.99 s, D0 LOW after 2.35 s
(ADC 864), 10 - 90 % 8.79 s, settled 21.0 s, 4,350 readings;
* the sheet: RAIN 38 %, STORM 91 % / ADC 293 (the red banner), CLEAR + FAST
drying ("RAIN STOPPED - PLATE STILL WET"); no coloured rim, no stale parts;
the red X and the PANEL button work; every caption readable;
* speed: about 0.44 x real time in steady rain with U2's pop-up open, U1's
panel animating and both Serial Monitors open (13.4 s simulated in 30.4 s).
The PC checks, 0 failed:
119 on the model at the pin level (the A0 line, the D0 rule for every
threshold x wetness, wetting / drying curves with exact crossing times (SLOW
and FAST), a lighter rain drying towards its level, SPLASH / WIPE, the
threshold-equality rule, the pot, power, restart, status, the test-tool hold
and ramps, the sketch's formula for every whole percent, the four tools on an
ideal circuit, the comparator when a time step lands just short of the
crossing);
428 on the complete Proteus model in a small SPICE solver (the measured A0 /
ADC of every weather: 1023 / 824 / 664 / 423 / 287, D0 at the exact
breakpoint, dcload() a pure function of time, power from a pin (ratiometric
A0), GND high, properties, both devices, the red X / PANEL button, the pop-up
made at Run, the board's and the cell's live parts, every sheet text ASCII in
every state, the four tools: the sweep 1023 - 8 x %, D0 at exactly 10 / 20 /
40 / 60 %, the wet / dry steps with readings in every step, the intensity run
824 / 664 / 423 / 287 and its bands, the scene put back after every tool, the
article / forum links and all 8 Help cards, the "(base) / now" slider, the
sheet redrawn only on a visible change (none while nothing moves, at most 10
per second in a storm) and only the parts that changed (they add up to the
whole frame), D0 within one step of A0 crossing the pot's reference during
every glide and the panel's LM393 line equal to its own A0 / POT numbers with
Proteus-like time steps (no breakpoints, steps landing early), the tools'
numbers the same with those steps, every board / panel label clear of the
buttons - with Proteus drawing boxes 8 thou bigger and text centred or
hanging below its point; no rim: with a non-default button in every row, a 12-thou ring round
every button, the banner, the scene and every readout shows only the card,
also with the first build's symbol);
41 with the REAL demo sketch on TWO UNOs against the complete model (every
output line, the panel's numbers = the sketch's, the alarm LED, every command,
no line over 80 characters);
1,595 on the rendered pop-up pages and boards (every page fits in TEP Dark and
Light, at Large text and 150 % DPI; no table cell cut; every Test page uses
its height; every tool's hint lines fit; every header state fits; every
tool's result tiles show "-" until it has run, never zeros).
(The PC tests also step the model the way Proteus does - the first Proteus run
found D0 waiting for the end of a glide; fixed and re-checked before release.)
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" (TEPRAIN.LIB with both devices,
TEPSERIALMON.LIB and the TEP Arduino UNO V3 library ArduinoV3TEP.LIB / .IDX
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 TEPRAIN.DLL and TEPSERIALMON.DLL from "Proteus Model Files" to the
MODELS folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPRAIN.IDX from the LIBRARY folder if there is one (Proteus makes a
new index). Earlier versions of our rain sensor library use other file names
- you can keep them.
5. Start Proteus. In Pick Devices (P) search "RAIN": you get the Simple and the
Advance device (category Sensors > Rain).
RUN THE DEMO
"Proteus Simulation\Rain-Sensor-ArduinoUnoV3.pdsprj" - keep the .hex file and
the two DLLs beside the project.
UNO 1 (ARD1): Rain Simple (U1) + Serial Monitor U3, alarm LED D1 on D13.
UNO 2 (ARD2): Rain Advance (U2) + Serial Monitor U4, alarm LED D2 on D13.
Both run Rain_Alarm.hex. VCC of each sensor on a +5V terminal.
1. Press Run. Both monitor windows open (9600 baud) and so does U2's pop-up.
U3 and U4 show "Rain Sensor - rain alarm / automatic window - The
Engineering Projects", "Reading A0 and D0 every 0.5 s...", "Rain Sensor
Library for Proteus V2.0 - type HELP for the commands.", then twice a
second "ADC: 1023 Wetness: 0 % Intensity: dry D0: HIGH" (after
the first one: "Dry"). The PWR LEDs are lit, the sky is clear, the cells
show "WETNESS 0 % ADC 1023".
2. U1: click RAIN on the panel: it rains on the plate, the readings fall from
1023 towards 664 ("ADC: 664 Wetness: 45 % Intensity: light rain D0:
LOW"); about 2.4 s after the click D0 goes LOW (20 % passed), the D0 LED
and the alarm LED D1 light and the sketch prints "Rain detected - close the
window!" once. STORM: 287 = 92 %, "heavy rain", lightning. CLEAR: the rain
stops, the sun dries the plate - D0 stays LOW about 27 s after a storm
(SLOW; FAST about 8 s), then "Dry". SPLASH: one drop (+10 %). WIPE THE
PLATE: dry at once. - 5 % / + 5 % move the pot (the red mark on the A0
LEVEL bar and the gauge). Close the panel with its red X and open it with
PANEL on the board.
3. U3 / U4 quick buttons: U3 STATUS, READ, EVERY 2000, EVERY 500; U4 STATUS,
BANDS 923 543, ALARM A0 30, ALARM D0. BANDS 923 543 sets the bands the
Intensity tool measured: drizzle and rain = light rain, heavy rain and storm
= heavy rain. ALARM A0 30: the sketch switches the alarm from 30 % wetness
itself (type ALARM D0 to go back to the pot).
4. U2 (Advance): Rain page - the slider, the weathers, Splash, Wipe, the sun,
the pot; watch WHAT THE BOARD DOES, the chart and the event log. Test page
(each tool puts your scene back when it ends):
A0 sweep: Run test - 0 .. 100 % in 10 % steps: ADC 1023, 944, 864, 784
... 223 (slope -8.01 counts per %), the sketch's percentage exactly
the wetness at every point, D0 LOW from 30 % (the pot at 20 %).
D0 threshold: "10 / 20 / 40 / 60 %" - D0 goes LOW getting wetter and
HIGH drying at exactly each pot setting (ADC 944 / 864 / 704 / 544), no
hysteresis, one edge each way; D0 LOW 0.015 V, HIGH 5.00 V.
Wet / dry: Rain, sun Slow, 3 steps - a flat lead-in, then 1023 -> 664
(time constant 4.00 s, D0 LOW after 2.35 s), the sun back to 1023 (D0
HIGH after 13.9 s, the plate dry after 46 s), rain again.
Intensity: all four - drizzle 824 (25 %, light rain), rain 664 (45 %,
light rain), heavy 423 (75 %, heavy rain), storm 287 (92 %, heavy rain);
the levels that tell them apart: 923 / 744 / 543 / 355 - "BANDS 923
543" for the sketch's three words.
5. Close U2's window and open it again with OPEN PANEL on the board.
Closed a monitor window? Click OPEN MONITOR on the monitor part.
WIRING (the same in Proteus and on a real board)
Sensor VCC -> 5V, GND -> GND, A0 -> A0 (analog), D0 -> D2 (digital).
The rain plate's two wires go to the board's 2-pin header (either way round).
The alarm LED + 220 ohm from D13 to GND on both UNOs (on a real board D13 is the
UNO's own LED; a window motor needs a driver or a relay).
In the sketch: analogRead(A0), digitalRead(2), wetness = (1024 - adc) / 8,
constrain(0, 100); Serial 9600.
Serial Monitor RXD <- Arduino D1 (TX), Serial Monitor TXD -> Arduino D0 (RX),
Serial Monitor GND -> ground. RXD2 is not needed: the sensor sends no serial data.
Pin order in Proteus: VCC GND D0 A0 (as printed on the board's header).
REAL HARDWARE:
* Supply: 3.3 V - 5 V. A0 is ratiometric: from 3.3 V every reading scales by
3.3 / 5 - measure your bands at the voltage you use.
* The ADC: Proteus's UNO rounds A0 to the nearest count, a real ATmega328P
truncates - a real board can read one count lower (663 instead of 664); the
sketch's (1024 - adc) / 8 prints the same wetness either way.
* Your plate is not ours: the 8 counts per percent and the levels of each kind
of rain are this model's scale (tutorials report about 1023 dry, 700 - 500 in
light rain, below 300 in heavy rain). Measure yours and set BANDS.
* Corrosion: the plate's traces corrode (electrolysis) when they are powered
all the time in the wet - power the sensor from a digital pin (e.g. D7: HIGH,
wait 10 ms, read, LOW) only while reading. Keep the comparator board dry -
only the plate goes outside; tilt the plate so water runs off.
* D0 has no hysteresis on the real board: near the threshold a few drops make
D0 chatter - debounce it in the sketch.
THE WEATHER
The buttons, the pop-up's controls and the properties set the weather and the
plate. Each rain pulls the plate towards its level: DRIZZLE 25 % (time constant
8 s), RAIN 45 % (4 s), HEAVY RAIN 75 % (2.5 s), STORM 92 % (1.5 s); a plate
wetter than a lighter rain's level dries down to it. CLEAR stops the rain and
the sun dries the plate towards -5 % (so it does reach 0 %) with a time constant
of 20 s (SLOW) or 6 s (FAST) - much faster than a real plate, so a demo takes
seconds, not minutes; the plate also dries with the power off. SPLASH = one drop
(+10 %), WIPE THE PLATE = 0 % at once. The pop-up's slider sets the plate's
wetness at that moment (the base) and the weather moves it from there (the amber
marker shows the wetness now). While a test tool runs it owns the plate (the
panel's buttons wait).
THE TEST TOOLS (Rain Advance, Test tab) - what they really measure
Every tool runs on the live model. A tool only moves the plate with the same
actions as the panel (set the wetness, hold it or move it at a set rate, change
the weather, dry, turn the pot) and reads the node voltages Proteus's SPICE
solver computes at A0, D0 and VCC at every simulation step - so every number is
measured on the running circuit, with the simulation clock. Each tool shows one
"Good for:" line and one line on how it measures.
A0 sweep Good for: seeing the whole A0 line and checking that your sketch
turns it into the right wetness. Sets 0 .. 100 % (11 or 21
points); at each point it waits for a flat A0 and averages it:
A0 (V), the UNO's ADC, what the sketch prints (the wetness and
its word), D0; the slope (-8.01 counts per %), the ADC at 0 % /
100 %, the largest sketch error, where D0 goes LOW and where the
sketch says light / heavy rain; a chart of ADC against wetness
with the sketch's bands and the pot's reference.
D0 threshold Good for: setting the pot so D0 says rain at the wetness you
want, before your sketch relies on D0. For the pot as set (or
10 / 20 / 40 / 60 %): settles 10 % below, ramps the wetness up
at 4 (or 1) % per second to 10 % above and back down: the
wetness and A0 where D0 went LOW (getting wetter) and HIGH
(drying), the hysteresis, the edges per crossing (chatter), the
D0 LOW / HIGH levels, the pot's reference voltage; a chart of D0
against the wetness.
Wet / dry Good for: seeing how long D0 and A0 lag the weather - the plate
stays wet after the rain stops. Rain Drizzle / Rain / Heavy /
Storm, the sun Slow (20 s) or Fast (6 s), 1 - 3 steps (rain,
the sun back to dry, rain). The plate is wiped and each step
starts from a flat reading (a lead-in of at least 1 s) and lasts
until A0 has settled (it moved less than 0.06 count in 3 s - 6
to 10 time constants); every reading of every step is kept: the
ADC before and after, the time constant (63 %), the 10 - 90 %
time, when D0 changed (and to what), when the plate was dry
again, the settle time (within 1 count), the number of readings;
a chart of A0, the wetness and D0 over the whole run.
Intensity Good for: choosing the ADC bands your sketch uses to report
drizzle, rain and a storm. For all four kinds of rain (or one):
wipes the plate, lets it rain until A0 has settled and records
where it settles (ADC and volts), what the sketch prints, when D0
went LOW, when the sketch said light and heavy rain, the time
constant and the settle time; then the levels that tell the four
…Development1 release
-
V2.0Rain Sensor Library for Proteus V2.0this page
V2.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 rain-sensor-tep-v2-0-135ecf180ed34723a8dee3cd1e9539da.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (RAIN-TEP-v2.0) as it is.
- 2
Copy the library files into Proteus
Move ArduinoV3TEP.LIB, TEPRAIN.LIB and TEPSERIALMON.LIB and ArduinoV3TEP.IDX 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 TEPRAIN.DLL and TEPSERIALMON.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 Rain_Alarm.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 Rain_Alarm.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open Rain-Sensor-ArduinoUnoV3.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
Rain Sensor Library for Proteus V2.0 (FC-37 / YL-83 + Arduino) explains every connection and setting in order; keep it open beside the files while you build.
FAQs9 questionsContact TEP
How do I download Rain Sensor Library for Proteus V2.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?
Rain Sensor Library for Proteus V2.0 comes as a ZIP archive of 12 files (1.4 MB, 3.0 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 12 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, 2e741b7a3f2621f35eca058be5e28b5061a9209fc2471b0dae98eeed87584afd. In PowerShell run Get-FileHash "rain-sensor-tep-v2-0-135ecf180ed34723a8dee3cd1e9539da.zip"; on macOS or Linux run shasum -a 256 "rain-sensor-tep-v2-0-135ecf180ed34723a8dee3cd1e9539da.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.
- 45Total downloads
- 4%Popularity
- ProteusCategory
- 0Comments
- ssyedzainnasirUploaded by
- 9 Oct 2026Uploaded at
2e741b7a3f2621f35eca058be5e28b5061a9209fc2471b0dae98eeed87584afd
















Comments
0