Maker.io main logo

Water Alarm: Priceless Protection, Crazy Simple

2018-12-11 | By Brian.German

License: Public Domain

Want Cheap Water Insurance?

water alarm

Ever come across water in your home where you didn't want it?  Basement drain stopped up?  Toilet overflow?  Sink drain pipe fail?  Spring a leak under your dishwasher?  I've had all of these happened and I wish I had an immediate warning.

5 parts. Really.

My quest to make a water alarm came from finding the main drain had failed (tree roots) and had 3 inches of water throughout our basement.  Not fun.  While I know that life happens (pipes crack, and trees get thirsty), I sure would have liked to learn about the disobedient drain, the moment the water was above its normal height.

---

Behold, the MOSFET

A MOSFET (metal-oxide-semiconductor field-effect transistor aka FET) is our switch and the brains of our water sensor alarm.  As of this writing, modern processors can employ more than 23 billion transistors, we’ll only need one; the common 2N7000 (or 2N7002) as they are cheap as dirt cost effective.

Since this FET only requires a voltage difference of 3V or more between the Gate and Source…

N-Channel MOSFET Symbol

…we can use the conductivity in water to easily fight the wimpy 10M pull-down resistor, turning the FET on, allowing current through to connect our ground to the negative wire on the buzzer. 

Like this…

Simple Schematic

A 9V, 12V, or 15V power supply will work fine (if your buzzer is rated for it).  They can handle a voltage range (i.e. the 458-1259-ND buzzer from Mallory Sonalert will work from 3 ~ 28V) and are louder with more voltage **.  The supply need only be able to offer enough current to drive the buzzer as this circuit uses almost nothing in stand-by.  (It draws so little, I couldn’t read it on our 6-digit bench meter or Dave Jones’ uCurrent).  This makes it work well with batteries in remote locations where wall power is not handy or reliable.  (Lithium’s have some of the best self-discharge-rate, like 10+ years.  Pricey yes, but not compared to water damage.)

** - If you use a voltage beyond what the FET’s Gate can handle, you’ll kill it.  Our 2N7000 will fail shorted if more than 20V is applied.

Because FET’s can’t handle much voltage on the Gate, that brings us to our need to add another component…

Full Schematic

By adding a small value capacitor (but not too small) across our Gate and Source, it protects the Gate from short static hits by absorbing them.  I learned this the hard way (FET’s tend to fail on (Source and Drain shorted).  You could use a standard TVS (Transient Voltage Supressor) like a Zener, MOV, etc. but after adding the cap, I have yet to have an issue. 

---

Having only 4 nets…

 

 

 …you don’t really need a PCB, but a small piece of perf-board would work well (instead of dead-bug style). 

For those who don’t own a soldering iron, you could use a simple 4-position Euro-style screw barrier block, like the ED2997-ND.

Step 1)  Bend the Leads of the MOSFET

FET Bent Leg.png

Step 2)  Trim the Middle Lead

FET Clipped Leg

Step 3)  Space the Leads of the Capacitor and Resistor

the 2 apart

Step 4)  Do the Twist

the 2 together

Step 5)  Twist in the FET (! Careful- Be Sure the Flat Side is Up!)

the 3 together

Step 6)  Screw onto the Block (Positions #1, #2, and #3)

the 3 on block

Step 7)  Screw Down the Negative Power Wire (Black Wire on Position #1)

Step 8)  And Twist the Red Wires Together

with Battery Connector and Buzzer

Step 9)  Screw Down the Remaining Wires (#3 and #4)

with Battery Connector and Buzzer on Block

Step 10)  Connect Your Sense Wires (#2 and #4)

Complete

 * Note, Again, you can use a wall power supply in place of a battery if you have access to power.  Just cut the connector off, strip the wires, check the polarity and connect.

Time to Test it

Stick the wires into some water and it should scream.  If unfamiliar with buzzers, you can hold your finger over the sound hole to dampen the volume while testing.  A pulsing buzzer may be more expensive, but it will catch your ear far better than a continuous tone (hence the repeating beep with smoke alarms and large equipment when in reverse.)

Feel free to stick it into a plastic box to finish it up proper (or, if you feel like going full red neck, you can simply run a nail through one of the holes like this…

hole on block

…if it’s going to be under a sink, or next to a drain in your dingy unfinished basement, etc.)

Of course, if you have a small piece of perfboard, you can wire it as God intended...

top

bottom

I hope these save you loads of money and stress like they have for me.

---

Oh yeah, we cut down that darn tree.

制造商零件编号 2N7000
MOSFET TO92 N 60V 0.2A 5OHM 150C
onsemi
¥3.66
Details
制造商零件编号 PL-27N26WQ
BUZZER PIEZO 12V 30MM FLANGE
Mallory Sonalert Products Inc.
¥37.75
Details
制造商零件编号 CFR-12JB-52-10M
RES 10M OHM 5% 1/6W AXIAL
YAGEO
¥0.81
Details
制造商零件编号 K102K15X7RF53L2
CAP CER 1000PF 50V X7R RADIAL
Vishay Beyschlag/Draloric/BC Components
¥1.87
Details
制造商零件编号 84-4
BATT CONNECTOR SNAP 9V 4" LEADS
Keystone Electronics
¥5.78
Details
制造商零件编号 L6R06H-150
AC/DC WALL MOUNT ADAPTER 15V 6W
Tri-Mag, LLC
¥43.22
Details
制造商零件编号 LND150N3-G
MOSFET N-CH 500V 30MA TO92-3
Microchip Technology
¥4.88
Details
Add all DigiKey Parts to Cart
TechForum

Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.

Visit TechForum