Water level sensor needed. [ Discourse ended ]

The tank is a square tote pvc (or plastic) has been cleaned out.
The water can be sourced from rain gutters, creek water by a ram pump, or water company if needed.
Not food grade, but used in organic garden/greenhouse.

How about two stainless steel wires in close proximity, a few feet long? As the water rose, would the conductivity increase at a usable rate?

In theory this would work but in practice I think that the change in resistance would be too small as percentage of the overall value to be measured well.

1 Like

If I understand this, you mean the higher up the wires the water gets, the resistance change will diminish, but for the first couple inches, it may be easily measured?

What if we had the wires further apart at the low area, and the wires move closer together at the higher levels? Do you think that would help?

In my experience, this method does not work in water, particularly when you don’t know the ion concentration, but feel free to experiment for yourself.

1 Like

Lots of great info guys/gals, thanks. We are about ready to abandon this thread. I still don’t know which way to go tho.
After all the great input, if you want to vote on your choice go ahead. Then we will abandon this thread.
Great discourse.

You could also try a capacitively based sensor. An example would be this Water Level Sensor. It seems to be fairly accurate and is able to operate in many types of liquids. The only downfall that I can see is the fact that it is a little pricey. If you are going for a cheaper solution, you might want to consider a simple float based system. As an example, just check out the back of your toilet. You could hook it up to a pump and have it stop pumping water at the maximum point (in your case 6 feet of water).

1 Like

Anyone knows where i can find the library for the MPX4250GP sensor?

Just thought I’s throw in my two cents here about using an ultrasonic sensor. I tried using an HC-SR04 in my 2600 gallon above ground water tank, and while it worked fine for a day to two days, it then failed due to condensation on the sensor; I got readings that jumped from ~25 cm to over 100 cm when the actual level was constant at around 25 cm. If I removed the sensor, shook it out, and dried it off, it would work again for a day or so. So, this sensor is not really suitable for this purpose.

1 Like

Just a random though, but wouldn’t it be possible to spray it with one of those “hydrophobic nano sprays”? They’re ought to repel water, and might help?

That’s an interesting idea. I’ll have to check that out. Do you have a particular spray in mind?

You could also heat the sensor so it is always above the dew point.

Haven’t had the pleasure of trying any yet, but these guys have screaming military folks on their website, so it must be good :stuck_out_tongue:
Or, well, use @bko’ suggestion first :wink:

1 Like

I don’t know how I could physically do that. I drilled two 1/2" holes i the top of my tank, and inserted the two transducer elements through those holes (with silicone caulk to seal them), so I don’t have access to the front end of the sensor. Also, in the summer, the air in the tank is already quite hot and humid, I don’t know how hot I would have to heat it above that temperature to make it non-condensing, and whether that would be compatible with the electronics.

1 Like

The traditional approach is an enclosure of some kind that would be open on the bottom in this case so the sensor can see the water level but closed on all other sides. Then a low-wattage heating element or incandescent light bulb is used to heat the smaller enclosure and the sensor. Obviously you would have to keep the whole thing at a reasonable operating temperature (<85C I would think).

The keywords to google are “anti condensation heater”.

I watched the hydrophobic spray video and that looks cool!

1 Like

I wonder what wattage it would take to do that, and whether I could use constant power, or I would have to have a temperature sensor and some kind of control circuitry to adjust the power depending on the outside temperature. Right now I only have cat-5 wire running to the top of the tank (through a buried conduit), so I’d probably have to find a way to get power to the enclosure.

I wonder if wouldn’t be easier to go with a wet pressure transducer instead, or use multiple SS or gold pins to measure conductivity as you mentioned above; that was the way I was originally considering.

Why not have a look at this thread?

That only works if you’re getting mostly good readings. After a couple of days, I’m getting nothing but bad ones.

O… That’s bad news @Ric !
I did not read the whole thread and didn’t realize it was you who had this problem. :smirk:
Mine is still waiting to be mounted in place…

This works great but is kind-of expensive since you want everything that can get wet to be either stainless, PVC or teflon (PTFE). PTFE coated stainless stranded wire and stainless lug terminals are not off-the-shelf items at the local big box home improvement places, but can be found.

If your tank holds drinking water, you should think about what components would be drinking water safe. Also rain water and normal drinking water can be measured using resistance quite easily, but de-ionized or distilled water cannot.

My tank is for drinking (as well as irrigation) water, and it’s quite high in minerals, especially iron, so it’s plenty conductive enough; I’ve tested it with a simple voltage divider on one of my Photons. I was originally thinking of using gold wire wrap pins, since I thought I had a bunch of those around from the “old days”; but alas, I can’t find them. Another approach I was considering was to use a donut shaped float containing a magnet that would ride up and down on a pvc pipe containing a bunch of hall effect devices; this would only expose the water to the plastic parts, and the electronic components would all be in the dry space. Either of these approaches will require the use of multiplexing since I’ll probably want to have 1" spacing (1" = ~30 gallons) for the top 2 or 3 feet, with wider spacing below that (I do have several CD4067 16 channel multiplexers lying around).

I’m still considering the heating to control condensation on my HC-SR04’s. Wondering if I could paint the sensors black, and use several IR LED’s to provide the energy for heating? I looked at a some more expensive ultrasonic sensors that are supposed to be self-cleaning; self-cleaning it turns out is a heated sensor – those used ~70 ma continuous to heat the sensors. One other problem I’m worried about is whether I will get mineral deposits on the sensor which could compromise its long time reliability. My tank has an ozone bubbler in it (for sanitation and oxidizing iron) which does cause some aerosolization in the head space of the tank. A lot of variables to think about for what would seem to be a fairly simple project.