Electronic – Water Sensor to detect backed up drain pipe

sensorunderwater

Trying to detect when a drain pipe, filled with water from a washing machine pump, starts to get backed up.

Since the water is being pumped through, a simple water detector is not enough. And since the water is being pumped and draining, but slowly (Too much water volume for the pipe in a small amount of time), I don't know if a float sensor will work (downward movement from pump, upward movement from backing up).

Also, the pipe is about 2.5" in diameter. The sensor should interface to a 3.3v or 5v level, or simply open drain, but I can figure it out from there if I need to level shift. It should be water tight to prevent shorts or anything (Though I don't know the proper safety method for this).

Is there any standard way of doing this? The microcontroller (a msp430) will not be submerged or anything, just the sensor.

Edit: Picture/Diagram as requested.
enter image description here
Setup is essentially exactly the same. Pumped water goes down "standpipe", as does the backflow up. My main access is only at the section marked "Indirect Connection, a 2~3" diameter pipe. The Waste Stack is probably 4~5" diameter.
There is a sink that is in parallel with the washer machine, and water sometimes backflows out of there instead of the "indirect connection", as it is a few inches lower.

Ideally, the sensor could fit and work right above the trap in the diagram, without clogging the pipe itself. I might be able to add a t-pipe between the trap and waste pipe, but I want to avoid that if I can.

Best Answer

I once had the exact same problem. My drain pipe was only just a little bit slower than the drain pump in the washer, so the water rose relatively slowly, but fell quickly when the machine was shut off for 5 seconds. My switch would activate several times on every drain cycle, and effectively managed the problem. (And yes, before building my gadget, I did try to unclog the drain itself, but as it ran some 20 feet across the basement, embedded in the floor slab, I didn't have much luck with that. I suspect that it simply hadn't been installed with enough slope, and fixing that would have required jackhammering it out and installing a new one.)

I used a float switch that came (IIRC) from an old dishwasher. The wires were kind of short, so I simply extended them by soldering and then heat-shrinking the joints. The switch has a square base with four mounting holes, so I fashioned a simple L-bracket to hold it upside down inside the top of the drain pipe, with the L-bracket simply taped/zip-tied to the outside of the pipe. This meant that the switch became normally-closed, and it opened if the water rose too high.

The control box plugged into the wall, and then the washing machine plugged into the box. It contains a 25-amp SSR and a small isolated 12VDC power brick, so the control circuit is completely isolated from the line power. The float switch triggers a 555 timer that cuts off power to the washing machine for 5 seconds each time it opens, which in my case was about right to allow the pipe to drain sufficiently. Obviously, this was an older machine with an electromechanical timer, which was unfazed by such treatment. I don't know if this would work with a modern microprocessor-based washing machine.

We used it for quite a while, until we moved out of that house. That was 20 years ago, but I still have the switch and the control box. If you're having trouble visualizing any of this, I can take a picture or two.

Related Topic