I thought you were intent on using a weight measurement.Great discussion! Thank you to everyone offering thoughts and suggestions. It's much appreciated!
For a weight solution, I would probably connect a load cell to a raspberry pi using an HX711 chip. That will amplify and convert the load cell voltages into a digital weight and has calibration options. Calibrating for known weights is the easy part. Hard part is dealing with drift over time due to creep and temperature swings from being outdoors.
It is true that when a constant load is placed on the load cell, creep is most significant after the first few minutes (as the load cell deforms from the weight), then tends to level off. While my setup would be constantly under weight (weight of the empty collection container which would be zeroed out in your final output), the amount of weight would also be changing as rain fills the collection container. So even if creep from the weight of the container subsides after a while, will the creep start again when additional weight from rain gets added later?
Maybe one way to avoid creep would be avoiding the constant load by having some type of lift motor that lowers and raises the gauge onto and off of the scales every so many seconds? Say it lowers onto scale for 20 seconds while taking a few weight measures and averaging. Then lifts off the scale for 20 seconds, zeros the scale during that time, then lowers back onto the scale for more measures. Something like a motorized pan/tilt bracket for a security camera. Or maybe there's other ideas that could raise/lower on a time scale?
Then comes the temperature correction. I could always put a temperature sensor on the load cell. If the calibration is linear, then set it based on 2 or 3 different temperatures. If the temperature calibration is non-linear, then I don't know how I could check for every possible temperature to make the curve.
As the load cell calibration may be a time consuming process, I'm also rethinking the possibility of temporarily using the laser rangefinder idea. Biggest drawback there being waves and splashing of water in the collection pipe. Maybe if I have a plastic float on top of the water level, that would help stabilize the water?
View attachment 353717
Or alternatively, use a second, smaller diameter entrance pipe that extends almost to the bottom of the measuring container so that water fills the measuring container from the bottom:
View attachment 353718
Any thoughts on that? or other ideas to stabilize the splashing/water waves?
Even an ultra cheap rangefinder should work providing there's enough vertical distance between significant values..
There could be issues with condensation forming on the rangefinder sensor being that it's inside a mostly-closed container of water. Even the manual gauges sometimes get fog/steam droplets on the sides of the measuring tube; Especially if the water sits for an extended period or if there's big temperature changes. Perhaps there would need to be a very small heating element against the rangefinder to limit this.
Interesting idea. I've never dealt with MAP sensors, so I'm not exactly sure how it works, but I'll definitely look into it as a possibilty. I'd like to get as many low-cost solutions as possible and compare performances between them.A longer drain tube would facilitate a siphon vacuum and drain the vessel quicker. Just be sure the MAP sensor is higher than the overflow tube or the rim of the vessel.
View attachment 353831
A weight solution (if I can affordably make it work) seems most ideal, but working out a solution for dealing with creep and temperature compensation may be time consuming, as it's going to be a learning curve for me. So in the meantime, I'm definitely open to trying other possibilities (laser distance rangefinder, etc.) to see what works and what doesn't. These other solutions may not be as ideal as weight measurement, but may still be an improvement over the tipping buckets (and work as a temporary solution until the weight solution gets perfected. )I thought you were intent on using a weight measurement.
Definitely open to other ideas. I'm not sure how to make the idea work with capacitance, though? I'm familiar with finding the water level inside a pipe by scanning up and down the outside side of the pipe and finding the capacitance change where water changes to air. And how a fixed install of this at a specific level could tell you by capacitance if the water line has reached that level. But I'm unsure of how to make such a setup that would detect the whole volume of the pipe from top to bottom. Is there some way of making the whole pipe a vertical capacitor?If you are open to alternative approaches (other than weight) consider capacitance water level sensing.
A MAP sensor has three pins. Typically one is power, that's at 5V from the car's computer. Naturally anything running on a voltage needs an input and a ground. So there's a second pin which is ground (or negative). The output or Sense pin puts out an analog voltage. As manifold pressure increases the output moves from one voltage to another. It does so in an analog manor, meaning (it probably) starts at 1 volt with no vacuum. As the vacuum increases it goes to 1.1V, 1.2V, 1.3V all the way up to 4.0V. So as water accumulates in the vessel the weight of the water within the system goes up. Since a MAP sensor senses absolute pressure - I THINK it will put out a varying voltage as air pressure increases. But I don't know that for sure. I've messed with MAP's before but I don't recall ever trying one with an air pressure. Will have to research that.Interesting idea. I've never dealt with MAP sensors, so I'm not exactly sure how it works, but I'll definitely look into it as a possibilty.
Well did you look into sensors that compensate for creep?A weight solution (if I can affordably make it work) seems most ideal, but working out a solution for dealing with creep and temperature compensation may be time consuming, as it's going to be a learning curve for me. So in the meantime, I'm definitely open to trying other possibilities (laser distance rangefinder, etc.) to see what works and what doesn't. These other solutions may not be as ideal as weight measurement, but may still be an improvement over the tipping buckets (and work as a temporary solution until the weight solution gets perfected. )
Thanks, this is definitely interesting! The new ones would be out of my target budget, especially if I were risking damaging it through modifications. But if I come across a cheap used one, it would be fun to play around with!Anyway, you'd have to modify a MAP sensor since they only work on vacuum in reference to 1 atmosphere.
None of the cells I've looked at mention anything about it. I'm guessing that feature is only available on the more expensive cells?Well did you look into sensors that compensate for creep?
They would not be as creepy![]()
I imagine the script that's processing the data would probably be able to take 5 measures at 2 second intervals, average the values and export that average every 10 seconds. And really wouldn't have to be quite that frequent. One export every 20-30 seconds would be sufficient enough.Hi,
As to the water sloshing problem with the depth detection, I would think the waves would be random and so the amplitudes could be filtered with a good low pass filter design. The idea is to average the changes. This also has an interesting side effect. It allows (with careful design) to oversample and thus get even better accuracy. You can't do that with a perfectly level water surface you are stuck with the resolution of the sensor.
Capacitance level sensing is a common and robust technology. Analog Devices, TI, and Infineon all have application notes. The technology is simple and relies on the difference in the dielectric constant of air vs. water which is a factor of 80 if I remember correctly. So almost two orders of magnitude difference. Many vendors make ICs specifically for measuring capacitance accurately and robustly.Definitely open to other ideas. I'm not sure how to make the idea work with capacitance, though? I'm familiar with finding the water level inside a pipe by scanning up and down the outside side of the pipe and finding the capacitance change where water changes to air. And how a fixed install of this at a specific level could tell you by capacitance if the water line has reached that level. But I'm unsure of how to make such a setup that would detect the whole volume of the pipe from top to bottom. Is there some way of making the whole pipe a vertical capacitor?
Oh ok, it sounds like you have some severe cost constraints. That will always be a problem when shooting for accuracy and repeatability.Thanks, this is definitely interesting! The new ones would be out of my target budget, especially if I were risking damaging it through modifications. But if I come across a cheap used one, it would be fun to play around with!
None of the cells I've looked at mention anything about it. I'm guessing that feature is only available on the more expensive cells?
I imagine the script that's processing the data would probably be able to take 5 measures at 2 second intervals, average the values and export that average every 10 seconds. And really wouldn't have to be quite that frequent. One export every 20-30 seconds would be sufficient enough.
As long as the value is accurate when rounded to the nearest 0.01", it would work. If I'm doing my math correctly, taking an 8 inch diameter opening and funneling into a 1 inch diameter pipe would be a 64x magnification of the area. Thus, each 0.01" would be 0.64" apart (which is 16mm)...That, along with averaging several measures would probably still keep me accurate to the nearest 0.01"...And may not even need that much magnification. (ie. maybe funnel into a 1.5" pipe)...
Another complicating factor is finding cheap solenoid valves to control the emptying; One being normally closed on the bottom for emptying and one normally open on the top that holds back new rain from entering during emptying. All of the N/O and most of the N/C ones I'm finding on a budget are "inlet" valves requiring a water pressure of at least .02 Mpa (~ 3 PSI)...That won't work for a small, gravity-drain...I have found one budget solenoid that's a drain valve; working pressure 0 - 0.005 Mpa (0 - .725 PSI) which would support at most up to 20 inch water depth in the pipe. Using the 8" to 1" funnel, would require emptying about every quarter inch of rain, so as to not put too much pressure on the solenoid. That's doable, though I would prefer to collect more rain between empties (as each empty adds a source of error)...Bigger issue is I've been unable to find a cheap N/O solenoid that will work at low pressure. That may require finding an alternative solution in order to stay on budget.
Once again, there are two types, BOTH HAVE SPRING LOADED actions. But the water valve on your dishwasher will not open without the water supply pressure present, nor will the valve on your wash machine.They both have an internal diaphram that closes the flow path until the solenoid moves a small internal plunger that allows the water pressure to open the valve. That very small internal port that gets opened is subject to developing leaks from small water-born particles and this not sealing adequately. So disassembly and cleaning can repair many of that type of valve. Been there and done that.A spring loaded Normally Closed Solenoid Valve requires no power except when being opened. When powered - it opens. When power is removed - it closes. It's simple. No moving parts other than inside the valve, no bearings to weather the storm. A tipping bucket can be near the tipping point but not fully there and a gust of wind in the right direction can tip it over. And how do you count the number of times it has been tipped over without charting the measurements? A powered solenoid, the power can also pulse a counter. If over night the storm tips the bucket three times - how do you know? A solenoid, over night, may be forced to open three times and a counter can indicate that. If you want to get really geeky you can also record the times when the solenoid opened along with charting the rainfall minute by minute or by 10th of an hour (every six minutes). Not so with a tipping bucket.
https://www.walmart.com/ip/NSESSHom...ping-Bird-Science-School-Wholesale/8335450329