15 Free YouTube subscribers for your channel
Get Free YouTube Subscribers, Views and Likes

Using an Arduino with a Tipping Bucket Rain Gauge

Follow
Modest Maker

I create all this content for the greater good with everything licensed under Creative Commons. At the same time your support is genuinely appreciated tips are welcome via this link:
https://www.buymeacoffee.com/mmaker

NOTE: Update posted 1/8/2020:    • Argent Weather Station Arduino Hacks ...   (start at minute 14:31)

UPDATE 2/18/2020:
At minute 7:20, I revisited this code based on correspondence with Argent Data Systems and a review of libraries prepared for their hardware. If I set the debounce constant to 15, and then multiply it by 1000 on line 56 of the code, this eliminates the problematic bounce demonstrated at 7:35. With this edit, the code does execute successfully with the bounce filtered out. In response, I updated the sketch "weatherStationMod3_g" available on http://www.modestmaker.com/arduino/pa... under "Chapter 9" with these edits.

The successful code modification and tests suggests I can use a reed switch in a tipping bucket rain gage coupled with an Arduino without needing to incorporate an RC circuit and a Schmidt trigger, or replacing the reed switch with a Hall Effect Sensor. However, these alternatives are mechanically and electrically sound while simplifying the code.

At minute 8:29, I incorrectly stated: "Interrupts.... generally should not be used with timers that take more than a microsecond to execute". That is incorrect I should have stated "millisecond" rather than "microsecond".

At minute 8:55, I incorrectly state there is a delay in my interrupt function. This is incorrect there is no delay in the interrupt function shared in my code.
In this video, I reverse engineer how tipping bucket rain gages work, and then demonstrate how to integrate an Arduino for counting tips, which can then be translated to rainfall depth. I then demonstrate software and hardware remedies for filtering out bounce noise associated with the reed switch used in these instruments. UPDATE: Please see January 1, 2020 correction posted in comments section.

Schmitt trigger used in this demonstration available here: https://www.digikey.com/productdetai...

Images used for gauge explanation came from these links: https://www.researchgate.net/figure/W...
and
https://www.explainthatstuff.com/howr...

Details on assembly your own gauge available here (wireless component not necessary):
https://www.allaboutcircuits.com/proj...

Code uploaded here:
https://modestmaker.com/arduino/part2...

posted by urezanom13