Author Topic: Arduino rainmeter  (Read 6130 times)

0 Members and 1 Guest are viewing this topic.

CitadelCore

  • Guest
Arduino rainmeter
« on: September 26, 2015, 09:03:37 am »
Hey!

I'm thinking about building an electronic rainmeter from an Arduino and a project box. My idea is to have three elements in the system. The first is the controller, housed in a waterproof outside project box. The second element is a large funnel positioned in my garden, collecting rain when it falls. The third is a hose going into a container with a water monitor, and a solenoid controlling the water flow out of the container, which will go into our rainwater tank. I'm hoping that it can be connected wirelessly or wired to our home network, and be able to log the rainfall average over days, weeks, months, and years.

Only a few problems. How would I monitor the amount of rainwater that's currently in the tank? And are there any solenoids compatible with the Arduino? I'll be using a Freetronics EtherTen or a Freetronics Eleven.  :-/O

Thanks,
CitadelCore
 

Offline Kostas

  • Regular Contributor
  • *
  • Posts: 71
  • Country: gr
Re: Arduino rainmeter
« Reply #1 on: September 26, 2015, 11:39:35 am »
Google tilting bucket rain meter to get an idea of how it works. It should be fairly easy to make one yourself. You will need a reed switch that will give a pulse every time the bucket tilts, which means it has gathered a specific amount of water. The pulse can be fed to a 74XX series counter, which can keep count of the rain, not necessarily to an Arduino.
 

Offline ljwinkler

  • Supporter
  • ****
  • Posts: 48
  • Country: ie
    • LJ Winkler's blog
Re: Arduino rainmeter
« Reply #2 on: March 10, 2016, 08:14:42 pm »
Any solenoids are compatible with Arduino.
Just use a transistor and a diode.

Something like this will do:  http://jason-webb.info/wp-content/uploads/2011/09/Solenoid-Schematic.png

Cheers,
LJ

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Arduino rainmeter
« Reply #3 on: March 10, 2016, 11:04:33 pm »
"How would I monitor the amount of rainwater that's currently in the tank? "

Depending on the sensor you use.

I capacitive sensor would be my choice here.
================================
https://dannyelectronics.wordpress.com/
 

Offline Sal Ammoniac

  • Super Contributor
  • ***
  • Posts: 1734
  • Country: us
Re: Arduino rainmeter
« Reply #4 on: March 11, 2016, 12:25:21 am »
How big is your tank? I don't collect rainwater, but I have two 5000 gallon tanks that I pump well water into. I use an ultrasonic sensor mounted at the top of the tanks to range the distance to the top surface of the water and use that info to calculate the amount of water in the tanks. These tanks are about six feet in diameter and about ten feet tall.

The sensor I use is this one: http://www.maxbotix.com/Ultrasonic_Sensors/MB7589.htm, which is designed for use in harsh environments like a water tank (which can reach 150F and 100% humidity in the summer).
« Last Edit: March 11, 2016, 05:12:25 am by Sal Ammoniac »
"That's not even wrong" -- Wolfgang Pauli
 

Offline retrolefty

  • Super Contributor
  • ***
  • Posts: 1648
  • Country: us
  • measurement changes behavior
Re: Arduino rainmeter
« Reply #5 on: March 11, 2016, 02:21:58 am »
We used just about every possible level instrument at a refinery. The one demanding the most accuracy and repeatably was a large vat that was used to batch process in three different liquids of different specific gravity. For that application they used a small PLC type system utilizing strain gauges that measured the weight of the whole vessel. Worked great but was not cheap.

 

Offline AndreasF

  • Frequent Contributor
  • **
  • Posts: 251
  • Country: gb
    • mind-dump.net
Re: Arduino rainmeter
« Reply #6 on: March 11, 2016, 08:40:08 am »
Since you have to dump the collected water regularly, you might be able to measure the time it takes to drain the tank through a small pipe or tube. The flowing water could be used to make an electric connection between two contacts.  This likely wont be a linear relationship, but probably still fairly predictable.
my random ramblings mind-dump.net
 

Offline xtoffer

  • Contributor
  • Posts: 33
  • Country: se
  • A CS turned electronic hobbyist.
Re: Arduino rainmeter
« Reply #7 on: March 11, 2016, 10:25:41 am »
"How would I monitor the amount of rainwater that's currently in the tank? "

Depending on the sensor you use.

I capacitive sensor would be my choice here.

I have experimented a bit with capacitive moisture sensing. It's fortunately very easy to build one yourself for rough values and it has the advantage that you can adjust it to the size you need.

You'd need two coplanar plates (placed close to each other) running the length you want to sense and someway to isolate them from the water (I have experimented with copper tape). The capacitance will change depending on the amount of surrounding water.

Then you only need somehow to measure the change in capacitance. It will probably be rather small in the pF region. There are different ways but I found timing a charge-up of the capacitor through a rather big resistance works well and requires very few parts. Since the time it takes to charge it to some value (some kind of time constant) is proportional to the capacitance (t=RC) this can be used as a sensed value. Unless you charge it to the right value it won't be the official time constant but it doesn't really matter as long as you get a value that is dynamic enough.

Issues: It is sensitive to other stuff than water that happens to come close as well. So if a bird happens to cozy-up to it, it might read wrongly (in most cases as in more water).
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Arduino rainmeter
« Reply #8 on: March 11, 2016, 12:02:48 pm »
I use copper tapes too: I paint them with polyurethane paint, and then paint the painted tape onto the inside of two plastic plates (with spacers). So rust is never a problem.
================================
https://dannyelectronics.wordpress.com/
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Arduino rainmeter
« Reply #9 on: March 11, 2016, 12:04:10 pm »
The reading can be done through various ways of reading capacitance. Easier on the PIC but an outboard rc oscillator is simple to build and measuring its output frequency is simple.
================================
https://dannyelectronics.wordpress.com/
 

Online macboy

  • Super Contributor
  • ***
  • Posts: 2270
  • Country: ca
Re: Arduino rainmeter
« Reply #10 on: March 11, 2016, 03:38:51 pm »
Google tilting bucket rain meter to get an idea of how it works. It should be fairly easy to make one yourself. You will need a reed switch that will give a pulse every time the bucket tilts, which means it has gathered a specific amount of water. The pulse can be fed to a 74XX series counter, which can keep count of the rain, not necessarily to an Arduino.
+1
Tilting bucket is the way to go. It is elegant, small, and relatively maintenance free. And there is no bucket of stale water to turn into a disgusting stew of bugs and bacteria after you don't empty it.
 

Offline TheDirty

  • Frequent Contributor
  • **
  • Posts: 440
  • Country: ca
Re: Arduino rainmeter
« Reply #11 on: March 11, 2016, 04:54:24 pm »
This thread discussed water level measurement.  Someone posted a link to an article showing how to implement the capacitive method.  I'll be trying this out soon when the parts arrive for it.

https://www.eevblog.com/forum/projects/absolute-pressure-sensor/
Mark Higgins
 

Offline xtoffer

  • Contributor
  • Posts: 33
  • Country: se
  • A CS turned electronic hobbyist.
Re: Arduino rainmeter
« Reply #12 on: March 12, 2016, 02:43:12 am »
This thread discussed water level measurement.  Someone posted a link to an article showing how to implement the capacitive method.  I'll be trying this out soon when the parts arrive for it.

https://www.eevblog.com/forum/projects/absolute-pressure-sensor/

If you are referring to the linked pdf it is -one- way of doing it. Interesting with the extra tube on the side though, curious if that improves stability somehow to just have it on the side of the bucket. The reading implementation can also be done in a number of ways, frequency through a lowpass with capacitor, charge timing of capacitor, capacitor dependent oscillator..

In that thread, pressure sensing is also heavily discussed, to me it feels like somewhat of an overkill (and not very cheap) for a small bucket measurement but that must be up to the OP to judge ;) I still think that the cheapest/simplest would be the isolated plates with the charging measurement type.... but then again, what fun is taking the cheapest alternative :p

Oh and the tilting thing looks very interesting and, assuming you can balance it, also rather simple and cheap.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf