I am working on an electronic water sensing mechanism.

In an underground water tank I need to sense various levels of water as the water level is consumed and refilled. Later I want to control the sump motor with logic when various conditions are met.

Docusing on just electronic sensing mechanism there are many choices available

  • bias a transistor with the help of water as conductor
  • use Logic gate inputs to become HIGH/LOW when water touches probes. Several choices for gates, any gate can be used in general, even a NOT gate can do.
  • Ultrasonic depth sensing.
  • LDR based
  • various other.

I am working with logic gates at the moment but will transfer it to micro controller later when I am satisfied with 'water sensing'.

The problem with many techniques above are, their reliability changes with many environmental effects. water vapours, hydration, corrosion, electrolysis, temperature and many similar factors change parameters which can affect changes in sensing.

Currently I am working with NAND CD4093. It has built in Schmitt trigger so it can shape inputs.

I prefer to give oscillated inputs to this logic gate, so at least electrolysis can be prevented. probes will be usually dipped in water.

To perform oscillation in sensing probe I can use transistors (AC biased), 555, opamp.

Q.1 Which one would be better option for oscillating in this scenario?

Q.2 How can I simulate the properties of tap water in reservoir e.g. water conductance and other electrical properties in NI multisim? currently I GND the inputs with a switch to give the effect of water touching the probes in NI MultisIM. How I can model the real water properties effecting my probes

Q.3 any other idea to achieve the task?

I want 8 points of level detection, each point is one foot higher than previous one.

From full to empty, the difference is approx is approx 10 feet. This is an underground tank of concrete.

I want it reliable and long lasting, free from errors and safe from enviromental changes. a one time install solution, no corrosion at probes, no electrolysis, no reading errors due to temp changes, hydration, vaporization, ...

Tank bottom is approx 10 feet from top.

Level readings at the moment will only light up LED's but at the next phase they will be the inputs to a micro controller based logic algorithm implementation where two pumps will be in service in parallel but one at a time, next time next up, will take turns. several conditions will be checked to turn the right pump, or to just give warning beeps. and more ... but this all will come in next phase, later.

      • Updated - - -

I understand all three oscillators I mentioned, AC biased transistors, 555 clock generator, OP AMP generating square waves.

I want an oscillator which will oscillate in +ve and -ve polarities, this scheme can avoid electrolysis.

I think OP AMP will do that better.

Now how to make the reading from probe non-oscillating so that it can be fed to a logic gate, otherwise logic gate output will also oscillate.

Should i use de-bouncing before giving input to logic gates

Are there any stray capacitive/inductive or other parameters in tap-water other than the conductance (or resistance) that should be taken care considering digital inputs?

I am trying to avoid any commercial sensors. I prefer building my own.


Too Complicated/Expensive/Unreliable

The approaches you suggest require expensive and power-consuming hardware with complex signal analysis to extract water-level information.

All you need is a few $4 float switches arranged at different depths like this:

array of descending float switches

I had suggested this approach to another similar question.

Now, life is really simple. Each of the switches corresponds to a different water level (you might want eight of them 1ft apart?). As the water level changes, more (or fewer) of the switches will be closed.

This can be read with digital logic or a microcontroller extremely easily.


If you want to spend more money to improve reliability:

  • You could use two (or more) independent arrays in parallel and compare the results to detect sensor failures.

  • Use more expensive (higher quality) float switches

  • Increase the number of float switches

| improve this answer | |
  • \$\begingroup\$ +1. Your upgrades bucket list could do with another option: A graduate intern with a scale, using a dip-stick and toggling the pumps. j/k :-) \$\endgroup\$ – Anindo Ghosh Jun 16 '13 at 4:53
  • \$\begingroup\$ I am using something similar at the moment as temp solution. the dipped object actuates/de actuates mounted micro switches on top cover of tank with rise and fall in water level. this is a mechanical arrangement. I am thinking of something without moving parts. \$\endgroup\$ – sunnyimran Jun 20 '13 at 8:09
  • 1
    \$\begingroup\$ Sure... but why? \$\endgroup\$ – DrFriedParts Jun 20 '13 at 9:18

Just put a pressure sensor at the bottom of the tank, and measure the water pressure with a suitable MCU with an ADC. The water pressure is proportional to the depth, of course.

| improve this answer | |
Q.3 any other idea to achieve the task?

Well, you are trying to avoid commercial sensors, but I am doing something similar using a pressure sensor Freescale MPX5050 and it's output is read via a micro analog port.

As you, I wanted something that was installed permanently and very reliable. My setup is a copper pipe into the tank, this pipe is pressurized with just enough airflow to generate bubbles coming out of the pipe end which is at the bottom of the tank. The air pressure in the pipe is directly proportional to the water height.

The drawback of this system is that you need a small air compressor + pressure regulator to generate air pressure. This cost money, but for me it was worth it.

The advantage is no parts in the tank to corrode and maintain. I have two tanks, one potable water and one grey water.

I want it reliable and long lasting, free from errors and safe from 
enviromental changes. a one time install solution, no corrosion at 
probes, no electrolysis, no reading errors due to temp changes, 
hydration, vaporization, ...................

Let's see: Water + metal + electric potential. Tough call. The only solution I can think about is capacitive sensors where the metal plates are covered in plastic. Cheap? No.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.