H-BRIDGE Irrigation Valve

I am building a small irrigation controller with a soil sensor and a few 9v latching valves and maybe a flow sensor. I was planning on using a relay but I guess that wont work because the valves require reverse polarity to turn off. I was told I need an “H-BRIDGE circuit that consist of 4x fets”. After a bit of googling my question is there any reason to use one of the H-Bridge boards like https://www.amazon.com/gp/product/B08RMWTDLM/ref=sw_img_1?smid=A3S807LE0L63AP&psc=1 that seem to have added protections.
or is just the circuit like this https://www.amazon.com/gp/product/B085KYNY3H/ref=ox_sc_act_title_2?smid=A2GTSJRNFEVVSP&psc=1ok to run the valves?

Also now that the valve are going to take 2x the GPIO pins will I have enough spare pins to possibly add another valve and or soil sensor and a flow sensor with a esp32

I don’t have a esp32 that works with ESPHome so ill have to get one unless a esp8266 will work, I originally purchased a esp32 c-6 for this project but it seems that wont be supported with ESPHome for awhile so I guess I can get any board if one is recommended over the other.

Also how does anyone mount boards like the H-Bridge board in the top link that doesn’t have any mounting holes without a 3d printer

Any other suggestions/ insights are appreciated.

I think i personally wouldn’t want to use latching valves that need power to make them close. What if you lose power to the controller and the valves never close?

1 Like