Bope
Posts: 71
Joined: Sat Jul 06, 2019 2:57 am

1st project leak sensor

Wed Jul 31, 2019 12:05 am

This is going to be my first project more than just flashing some LEDs on and off. I am wanting to set up a couple water sensors to detect any leaks. If a leak is detected I am going to use a motorized ball valve to shut off the water. Below is a list of the hardware I plan on using. I was thinking of using a Pi Zero with WiFi since this isn't needing any tough computing power but I want it to send me a text when the leak is detected.

I didn't want to get into making a 5V relay board work with a RPi so I was planning on using a HAT. Using a HAT I shouldn't have to do all the wiring to drive the relay with 5V correct? I am assuming the HAT has this all taken care of.

I am also concerned about the HAT from Amazon. It doesn't say relays are isolated to prevent high voltage interference. Would I be safer with the one from Ebay?

My plan is to use one relay to activate the 12V power supply since it should not be needed unless a leak is detected. The other three relays would power the ball valves.

The leak sensors would then be connected to GPIO pins to detect the leak. Should I use a female pin connector to attach the sensor wires to the GPIO pins?

Does this hardware list look good? Yes I am also getting a power supply for the RPi.

Pi Zero
https://www.amazon.com/gp/product/B07B8 ... EBBE&psc=1

Leak Sensor
https://www.amazon.com/gp/product/B079Y ... 3D58&psc=1

Ball Valve
https://www.amazon.com/gp/product/B06Y1 ... CK8G&psc=1

Power supply to drive the ball valve
https://www.amazon.com/gp/product/B078R ... D50F&psc=1

4-relay HAT
https://www.amazon.com/gp/product/B07Q2 ... UPHT&psc=1

Alternative relay HAT
https://www.ebay.com/itm/4-6-Channel-RP ... GRhh4E2EPQ

Return to “Automation, sensing and robotics”