Electrical – Solenoid Valve will not open

diodesesp8266solenoid-valve

I've been working on a Wifi gardening project that allows me to water plants from anywhere I want. Of course, this means I need to use a water valve and a MOSFET to control it. The MOSFET feeds power from a 9V battery to the solenoid, and a Huzzah ESP8266 (on a separate 9V battery) controls the MOSFET gate.

I found that the ESP8266 would not open or close the valve, so I started testing the valve and I realized that I could not open the valve at all. The valve is a plastic 12V solenoid valve (https://www.adafruit.com/product/997), but the information on that page indicates that it can be run using 9V. As far as the 3 PSI minimum pressure requirement goes, the valve is connected to a resevoir that is 3-4 feet above the valve, so I figure that I have a decent amount of pressure from gravity.

I have almost no idea what could be going wrong – I connected the 9V battery directly to the solenoid through a breadboard and nothing happened. The only thing that seems off to me is the diode I use for reverse current protection – see the picture below. Is that diode set up correctly?

Thank you very much for your help.

https://drive.google.com/file/d/0BwEoZ1ajLf1uWUhrS2JIU2NnZDQ/view?usp=sharing
https://drive.google.com/file/d/0BwEoZ1ajLf1uVlJHUm5YS0VVNlE/view?usp=sharing

Best Answer

Unless the 9V battery is a Lithium cell, Alkaline will not last very long driving a load of 9V @ 240 mA (from datasheet) or about 37.5 Ohms.

The 9V battery internal resistance with 6 tiny 1.5V cells in series is in the 5 to 20 Ohm range which makes a 9V Alkaline a poor choice for this application with only ~500mAh capacity or 0.5Ah= 0.5A*9V = 4.5Wh.

From the solenoid specs of 4.8W at 12V that with each application of about 4 watts for 10 seconds resulting in 40 watt-seconds giving you maybe 400 pulses of life. But battery capacity decreases with rising current due to losses.

If the solenoid was on all the time, it might yield 1 if it is a good industrial Panasonic Alkaline fresh battery and you had sufficient water pressure for flow.

  • If not then it wont work at all.

It is best to use a small DC water pump than a solenoid. given you don't have enough pressure nor enough voltage or current with a suitable sized or use a proper DC supply with suitable waterproof and rodent proof cable insulation.