I am using the solenoid valve found here: https://www.adafruit.com/products/997
I am powering it with a 12V power supply along with a N-Channel MOSFET to control it with a pin from my photon. I have a kickback diode between the power and ground of the solenoid as recommended. My problem is that when the photon pin is thrown HIGH the valve opens up but stays open even if the pin is thrown LOW or just disconnected completely. The valve will only close once I disconnect the power supply. What do I do to get the valve to close when the pin is thrown LOW.
Thanks in advance for any help.
Also the image shown below is pretty much how I have my system wired up.
I am powering it with a 12V power supply along with a N-Channel MOSFET to control it with a pin from my photon. I have a kickback diode between the power and ground of the solenoid as recommended. My problem is that when the photon pin is thrown HIGH the valve opens up but stays open even if the pin is thrown LOW or just disconnected completely. The valve will only close once I disconnect the power supply. What do I do to get the valve to close when the pin is thrown LOW.
Thanks in advance for any help.
Also the image shown below is pretty much how I have my system wired up.
