Filling level of rain barrel in the garden

(skidepp) #1


does anyone have a sensor or idea how to measure the water filling level of a rain barrel in the garden?

Most of my sensors are from vendor “Homematic” and I’m also aware of sensor HM-Sen-Wa-Od. I saw that the minimum height of the barrel needs to be at least 1.1 meter for this sensor to work. Mine is only 80 centimeter in height. So this sensor seems to be not the right one for my use case.

Are there any other solutions or ideas how to implement a wireless solution? Any hardware tip? Maybe via ultrasonic sound or some other technology? It should work with batteries if possible and send the data wireless to my raspberry / openhab.

Thanks for all your creative suggestions!

(Russell Salerno) #2

This fellow used an arduino to build a sensor for an oil tank. My suggestion would be to use a JSN-SR04T module which is waterproof and has a minimum distance of about 20cm. The HC-SR04 module will die after a few weeks from humidity.

(Chris Jackson) #3

I found problems with a number of different ultrasonic sensors and they all died. In the end I used a pressure sensor and this has been sitting in my water butt for 6 years without any problem. I have the pressure sensor at the top of the tank, and this is connected to a tube which is open ended and goes down to the bottom of the tank (I put the plastic tube into a aluminium tube to provide it some rigidity.

Works very well :slight_smile: .

(André Rück) #4

Hey there,

there is a german company that brings out such a sensor :

Best regards

(Kees Van Gelder) #5

I have used 3 different systems (a pond and two reservoirs)

1-Ultrasonic, with an HC-SR04. As Russel said, that died.Not after a few weeks, took months but it died. Replaced it with I think indeed the JSN-SR04T and that works perfectly.

2-In a system where I just want to know “almost empty” , “half full” or “full”, I installed a pvc pipe going from bottom to top with 3 reed switches in it. I have a wooden ring with a magnet floating on the surface, around the pipe. It stores the last state in case the magnet is in between reed switches.

3-capacitive: I have two insulated plates in a reservoir that form the capacitor of an HC14 RC oscillator. I measure the pulsewidth/frequency which is an indication for the amount of water in the barrel. The plates are just aluminiumcovered with resin.

Mine are not battery operated, but i guess nr 3 would be the most suitable for battery operation.

If you want battery operation… the ESP8266 might not be the best choice, consider an attiny85 in deep sleep with a 433MHz Rf module. The esp8266 spends relatively much time and energy on connecting to network. If you insist on an ESP8266, dont get a wemos or lolin board, get a bare ESP8266-12 module: no led or ftdi chip to feed

I have an rf transmitter plus attiny sending me data 4 times a day, just with a supercap (3F) and a small solarpanel

(Peter Loeffler) #6

Maybe a bit late, but:

I use (several) SR04 sensors connected to arduino with souliss and NewPing to meassure the distance to the water-surface.
The value is written to a T_51 typical. in openHAB I have two items to set the min and max “distance” and calculate the filling-level in %

caveats: the NewPing-lib returns cm-values without decimals. so %-steps are rather big when you have just a small difference between min and max

(Ritesh Talreja) #7

Sorry for bumping up an old question but I’m in the same boat of requirement.

And to my surprise there are quite a few new sensors in town:

This one has 2 transducers instead of 1 therefore has less minimum detection distance as compared to JSN SR04T. It is also completely sealed and waterproof.

Before finalizing on this I had bought another one which was a waterproof modified version of HC-SR04 from here

The 1st one is much more rugged and waterproof as compared to the latter one.