TEP DOWNLOAD CENTER

Project Files of Rain Gauge Library for Proteus Simulation

Libraries Code Projects Simulation
tep://download-terminal 17e8d0e336a6481f94ecf7451237ce7a.zip ZIP archiveV1.0Verified0 downloadsFree
Rain Gauge Library for Proteus Simulation: an Arduino UNO V4.0, a tipping-bucket rain gauge, an OLED and two LEDs
Proteus library · File 1 of 1

Rain Gauge Library for Proteus V1.0

Rain Gauge Library for Proteus V1.0 comes as a ZIP archive of 19 files (2.2 MB, 4.9 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

Rain-Gauge-Library-for-Proteus-v1.0.zip with the tipping-bucket rain gauge for Proteus simulation (TEPRAINGAUGE.LIB and TEPRAINGAUGE.DLL), our OLED, 5 mm LED and resistor libraries, our Arduino UNO V4.0, the A4 demo with its sketch and a README.

Read Rain Gauge Library for Proteus Simulation

File Structure

17e8d0e336a6481f94ecf7451237ce7a.zip19 files · 5 folders · 4.9 MB unpacked
Rain-Gauge-TEP-v1.0/19 files · 4.9 MB
Arduino Code/1 file · 8.3 KB
RainGauge_Demo/1 file · 8.3 KB
INO RainGauge_Demo.inoArduino sketch 8.3 KB
Proteus Library Files/5 files · 658.5 KB
LIB ArduinoV4TEP.LIBProteus library 201.9 KB
LIB TEPLED5MM.LIBProteus library 21.8 KB
LIB TEPOLED12864.LIBProteus library 112.4 KB
LIB TEPRAINGAUGE.LIBProteus library 15.4 KB
LIB TEPRESISTOR.LIBProteus library 306.9 KB
Proteus Model Files/5 files · 2.1 MB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPLED5MM.DLLSimulation model 289.5 KB
DLL TEPOLED.DLLSimulation model 342.5 KB
DLL TEPRAINGAUGE.DLLSimulation model 307 KB
DLL TEPRESISTOR.DLLSimulation model 311 KB
Proteus Simulation/7 files · 2.1 MB
DSN RainGauge-Weather-ArduinoUnoV4.pdsprjProteus simulation 25.5 KB
HEX RainGauge_Demo.hexCompiled HEX file 27.5 KB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPLED5MM.DLLSimulation model 289.5 KB
DLL TEPOLED.DLLSimulation model 342.5 KB
DLL TEPRAINGAUGE.DLLSimulation model 307 KB
DLL TEPRESISTOR.DLLSimulation model 311 KB
TXT README.txtText file 14.1 KB

README

README.txt 236 lines
RAIN GAUGE LIBRARY FOR PROTEUS SIMULATION - V1.0 (a tipping-bucket rain gauge, 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/11/rain-gauge-library-for-proteus.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/rain-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 rain and its chart are drawn on our SSD1306 OLED (in this zip; its article):
  https://www.theengineeringprojects.com/2026/10/oled-ssd1306-library-for-proteus-v1-0.html
Support us (the libraries are free):
  https://www.theengineeringprojects.com/donate

FILE STRUCTURE
Rain-Gauge-TEP-v1.0/
|-- Proteus Library Files/
|   |-- ArduinoV4TEP.LIB                              201.9 KB   TEP Arduino boards V4.0 (UNO) -> LIBRARY
|   |-- TEPLED5MM.LIB                                  21.8 KB   a part the demo uses -> LIBRARY folder
|   |-- TEPOLED12864.LIB                              112.4 KB   a part the demo uses -> LIBRARY folder
|   |-- TEPRAINGAUGE.LIB                               15.4 KB   the library -> LIBRARY folder
|   |-- TEPRESISTOR.LIB                               306.9 KB   a part the demo uses -> LIBRARY folder
|-- Proteus Model Files/
|   |-- TEPARDUINO.DLL                                883.5 KB   the Arduino board model -> MODELS folder
|   |-- TEPLED5MM.DLL                                 289.5 KB   its model -> MODELS folder
|   |-- TEPOLED.DLL                                   342.5 KB   its model -> MODELS folder
|   |-- TEPRAINGAUGE.DLL                              307.0 KB   the model -> MODELS folder
|   |-- TEPRESISTOR.DLL                               311.0 KB   its model -> MODELS folder
|-- Proteus Simulation/
|   |-- RainGauge_Demo.hex                             27.5 KB   the demo firmware
|   |-- RainGauge-Weather-ArduinoUnoV4.pdsprj          25.5 KB   the demo project
|   |-- TEPARDUINO.DLL                                883.5 KB   copy of the board model
|   |-- TEPLED5MM.DLL                                 289.5 KB   copy of its model
|   |-- TEPOLED.DLL                                   342.5 KB   copy of its model
|   |-- TEPRAINGAUGE.DLL                              307.0 KB   copy of the model
|   |-- TEPRESISTOR.DLL                               311.0 KB   copy of its model
|-- Arduino Code/
|   |-- RainGauge_Demo/RainGauge_Demo.ino               8.3 KB   the demo sketch (source of the .hex)
|-- README.txt                                        ~14.7 KB   this file
Total: 4.88 MB (unzipped). The C++ source code of the models is not included.

WHAT IS IT?
A weather station's tipping-bucket rain gauge, drawn from the front and compact: the white body with
the funnel's rim on top, a
window into the gauge (the see-saw bucket on its pivot, the funnel's spout, the reed switch), the
base and its two-wire cable into the
pins S1 and S2. The gauge is our own drawing (no maker's mark); it works the way these gauges work:
  * The funnel fills one side of the see-saw bucket; at 0.2794 mm of rain (0.011 in - TIP) it tips,
    empties and brings the other side
    under the funnel. A magnet on the bucket passes the reed switch: S1 - S2 close for a moment -
    one pulse per tip.
  * The reed switch is a dry contact: 0.1 ohm closed, 100 Mohm open, closed for 60 ms a tip with one
    bounce (2 ms closed, 2 ms open,
    then closed) - so the count needs a pull-up and a debounce.
  * Rainfall = tips x TIP; the rain rate = the tips in a time x TIP / the time.
  * A fast clock (SPEED 60: a minute of rain each simulated second) so that a storm fits a demo; the
    switch's 60 ms do not speed up.
  * The rain in a scene (PROFILE DEMO: a 20-minute storm - dry, light rain 6 mm/h from minute 2,
    heavy 40 mm/h from 6, a downpour 80
    mm/h from 12, easing 10 mm/h from 16, dry from 20).
  * On the sheet the gauge comes alive at Run: in its window the bucket rocks, the water rises in
    the cup under the funnel, drops fall
    from the spout and the reed lights when it closes. Click it at Run for the pop-up: the gauge in
    section, the rate, the rainfall and
    each minute's rain over the storm, the tips and the rain chips; graphs, an event log and a check
    page.
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 "RAIN" or "gauge" in Pick Devices):
  RAINGAUGETEP  "Rain Gauge V1.0" in TEPRAINGAUGE.LIB (Sensors > Weather), prefix U, model
  TEPRAINGAUGE.DLL (analog). Two pins along the bottom:
            S1 and S2, the reed switch (a dry contact - either way round).

THE POP-UP
Click the part at Run. Tabs:
    Rain Gauge  chips: Dry, Drizzle 2, Rain 10, Heavy 40, Storm 100 (mm/h); Demo (the storm again
    from now).
                The gauge in section (the funnel, the drops, the bucket and its water, the magnet,
                the reed); the rate, the rainfall
                and each minute's rain over the storm; eight tiles: the rate, the rainfall, the tips
                and bounces, the time between
                tips, the switch, the bucket, the clock, the scene.
    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 20 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 25.5 simulated seconds (a 25-minute storm on
    the x 60 clock) in about 3.5
    minutes on our PC with the pop-up open and the pictures being taken.
  * The storm: dry, light rain 6 mm/h from minute 2 (the first tip at minute 4.8), heavy 40 mm/h
    from minute 6, a downpour 80 mm/h
    from minute 12, easing 10 mm/h from minute 16, dry from minute 20.
  * 37 tips = 10.34 mm: 8 tips (2.24 mm) by minute 9, 30 (8.38 mm) by minute 15, 35 (9.78 mm) by
    minute 17.5, 37 (10.34 mm) at the end.
  * Every tip closed the reed switch for 60 ms with one bounce: the sketch counted 37 tips and
    rejected 37 bounces (the 20 ms debounce).
  * The sketch's rate (the last 5 s, / SPEED): 20.1 mm/h at minute 8, 43.6 at minute 12, 57.0 at
    minute 14 - DOWNPOUR, both LEDs on;
    70.4 at minute 16, back to LIGHT RAIN at 6.7 and DRY after the storm.
  * The pop-up (Rain Gauge, Graphs, Event log, Check) followed the run.

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" (TEPRAINGAUGE.LIB, TEPOLED12864.LIB, TEPLED5MM.LIB,
TEPRESISTOR.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 TEPRAINGAUGE.DLL, TEPOLED.DLL, TEPLED5MM.DLL, TEPRESISTOR.DLL and TEPARDUINO.DLL from
"Proteus Model Files" to the MODELS folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPRAINGAUGE.IDX from the LIBRARY folder if it is there (Proteus makes a new index).
5. Start Proteus. In Pick Devices (P) search "RAIN".

RUN THE DEMO
"Proteus Simulation\RainGauge-Weather-ArduinoUnoV4.pdsprj" (an A4 sheet) - keep the .hex file and
the DLLs beside the project.
  A weather station's rainfall:
  ARD1:   Arduino UNO V4.0 running RainGauge_Demo.hex, its serial monitor built in (window "TEP
  Arduino UNO - ARD1").
  U1:     the rain gauge: PROFILE DEMO (the 20-minute storm), TIP 0.2794, SPEED 60; S2 on D2, S1 on
  GND.
  R1:     10 k from D2 to VCC (the pull-up).
  OLED1:  our SSD1306 OLED, 128 x 64, yellow and blue (0x3C, I2C on A4 / A5): DRY / LIGHT RAIN /
  HEAVY RAIN / DOWNPOUR, the rainfall,
          the rate and a bar chart of the tips in each of the last 24 seconds, the tips and the
          bounces.
  D1, D2: RAIN (green, D5) while it rains; HEAVY (red, D6) at 30 mm/h or more. Each through 220 ohm.
          An interrupt counts the falling edges on D2 and ignores an edge within 20 ms of the last
          counted tip (a bounce); each second
          the sketch takes the rate from the tips in the last 5 seconds and divides it by SPEED.
Closed the monitor? Click the UNO's USB port.

WIRING (the same in Proteus and on a real board)
  One wire of the gauge to an input with a pull-up (INPUT_PULLUP, or 10 k to 5 V), the other to GND.
  On weather-station gauges with an RJ11
  plug the switch is on the middle two pins.
REAL HARDWARE:
 * Set SPEED to 1 in the sketch for a real gauge, and TIP to your gauge's amount (0.2794 mm, 0.2 mm,
   0.254 mm or 0.3 mm).
 * Mount it level, above splashes and away from walls and trees; clean the funnel's filter now and
   then.
 * Count with an interrupt and debounce it; a long cable may need a small capacitor across the input
   as well.
 * Tipping buckets under-count a little in very heavy rain - the water keeps coming while the bucket
   moves.

THE DEMO SKETCH ON THE SERIAL MONITOR (RainGauge_Demo V1.0, 9600 baud)
The sketch prints its set-up, each change of class and a line every two seconds. EXPECTED MONITOR
OUTPUT
  Rain gauge - The Engineering Projects
  0.2794 mm a tip, the clock x 60
  Now: LIGHT RAIN
  minute .  rain .... mm  rate ... mm/h  tips .. (bounces ..)

PROPERTIES (double-click the part > Edit Properties)
  The rain (PROFILE)                    DEMO (the storm) or STEADY (RATE; the chips change it)
  (DEMO)
  The rain for STEADY (RATE)            mm per hour (10)
  The rain a tip (TIP)                  mm (0.2794)
  The clock (SPEED)                     1 = real time, 60 = a minute each simulated second (60)
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 TEPRAINGAUGE.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 count is twice too high: no debounce - ignore edges for 20 ms after a counted tip.
* Nothing is counted: no pull-up on the input, or the gauge's wire not to GND.
* The rate is 60 times too high: the demo's clock - divide by SPEED (or set the gauge's SPEED to 1).
* The rate jumps in steps: few tips in the window - a longer window gives a smoother rate.
* The part is not simulated: TEPRAINGAUGE.DLL is missing from MODELS and from the project folder.
* The part is not simulated: TEPRAINGAUGE.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/rain-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 model (TEPRAINGAUGE.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\RainGauge_Demo\RainGauge_Demo.ino, select Arduino Uno and use Sketch > Export Compiled
Binary. Replace the simulation's .hex with the exported HEX. The sketch needs 10,022 bytes of flash
and 572 bytes of RAM.

MODEL SCOPE AND LIMITS
Modelled: the bucket filling and tipping, the reed switch closing at each tip with its bounce, the
amount per tip; the scene, the
chips and the fast clock. Our choices: the switch's 0.1 ohm / 100 Mohm and 60 ms, the one bounce,
the storm, the drawing. Not modelled: the
under-count in very heavy rain, evaporation, wind, the funnel's delay and snow.

VERSION
TEP Rain Gauge library V1.0 (Nov 2026). Device RAINGAUGETEP (TEPRAINGAUGE.LIB / TEPRAINGAUGE.DLL).
Demo sketch RainGauge_Demo V1.0 (an interrupt and Wire - no library). The demo also uses our SSD1306
OLED library (TEPOLED12864: OLED12864YELLOWBLUEADVTEP, TEPOLED.DLL), our 5 mm LED library
(TEPLED5MM) and our resistor library (TEPRESISTOR), shipped in this package. Demo board: ARDUINO UNO
V4.0 (TEP Arduino Library V4.0) with its built-in serial monitor.
Advertisement

Development1 release

  1. V1.0Rain Gauge 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. 1

    Extract the archive

    Right-click 17e8d0e336a6481f94ecf7451237ce7a.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-Gauge-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move ArduinoV4TEP.LIB, TEPLED5MM.LIB and TEPOLED12864.LIB and 2 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. 3

    Add the simulation model

    Copy TEPARDUINO.DLL, TEPLED5MM.DLL and TEPOLED.DLL and 2 more into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.

  4. 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. 5

    Open the sketch in the Arduino IDE

    Open RainGauge_Demo.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.

  6. 6

    Load the HEX file

    In Proteus double-click the microcontroller, set Program File to RainGauge_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open RainGauge-Weather-ArduinoUnoV4.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.

  8. 8

    Follow the tutorial

    Rain Gauge Library for Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.

How to add a library in Proteus 8

FAQs9 questionsContact TEP

How do I download Rain Gauge 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?

Rain Gauge Library for Proteus V1.0 comes as a ZIP archive of 19 files (2.2 MB, 4.9 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 19 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, a240128ff3d01c0e731d98b724c6f47dd740d2a763a919cb205c817e01a8ff0f. In PowerShell run Get-FileHash "17e8d0e336a6481f94ecf7451237ce7a.zip"; on macOS or Linux run shasum -a 256 "17e8d0e336a6481f94ecf7451237ce7a.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.

preparing · 17e8d0e336a6481f94ecf7451237ce7a.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 0Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 27 Nov 2026Uploaded at
Last 14 days0 downloads
SHA-256 a240128ff3d01c0e731d98b724c6f47dd740d2a763a919cb205c817e01a8ff0f
DocumentationRain Gauge Library for Proteus Simulation
Need help with this file? Bug report Ask a question Download problemsGet updates
Advertisement

Comments

0

Join the conversation

Start the conversationAsk a question or share how you used this download.