# Using Brass Liquid Solenoid Valve from a Photon

**URL:** <https://community.particle.io/t/using-brass-liquid-solenoid-valve-from-a-photon/32707>\
**Category:** Hardware\
**Created:** [May 13, 2017, 12:21pm UTC](https://community.particle.io/t/using-brass-liquid-solenoid-valve-from-a-photon/32707 "2017-05-13T12:21:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrclj](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mrclj](https://community.particle.io/u/mrclj)\
**Post date:** [May 13, 2017, 12:21pm UTC](https://community.particle.io/t/using-brass-liquid-solenoid-valve-from-a-photon/32707/1 "2017-05-13T12:21:11Z")

</div>

Folks,

I have the below item and would like to hook it up to my Particle board and a PIR sensor. I have a Fox problem and would like to turn a sprinkler on to scare them away .

> **[Brass Liquid Solenoid Valve - 12V - 1/2 NPS](https://www.adafruit.com/product/996)**
>
> Control the flow of fluid using the flow of electrons! This liquid valve would make a great addition to your robotic gardening, aquarium, or pool project. There are two 1/2" (Nominal ...

However, I am new to hardware and trying to find a nice example of it’s use I know I need to convert voltage and will need a relay. Any help would be much appreciated

---

<div class="post-metadata">

**Author:** ![BulldogLowell](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bulldoglowell/32/4305_2.png) [@BulldogLowell](https://community.particle.io/u/BulldogLowell)\
**Post date:** [May 13, 2017, 12:36pm UTC](https://community.particle.io/t/using-brass-liquid-solenoid-valve-from-a-photon/32707/2 "2017-05-13T12:36:33Z")

</div>

With current that low, you could get away with transistor switching using a [MOSFET](https://www.sparkfun.com/products/10213).

you could then also get a [voltage regulator](https://www.adafruit.com/product/2164?gclid=CjwKEAjw3drIBRCOwfC-_qqyjQ8SJADvoWQpqvOP2NaeTmjvPqk_GOjh_TA0zOUBFmTzqKOFpL3SMhoCO2jw_wcB) to bring your 12V power source down run the photon and motion sensors…

---

<div class="post-metadata">

**Author:** ![mrclj](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mrclj](https://community.particle.io/u/mrclj)\
**Post date:** [May 14, 2017, 11:05am UTC](https://community.particle.io/t/using-brass-liquid-solenoid-valve-from-a-photon/32707/3 "2017-05-14T11:05:19Z")

</div>

Thanks,

I have purchased a full relay. as it was not that much more expensive. Now for my next “School Boy” question. to power the Solenoid Value i need to use 12v. I am thinking of buying this A23 battery and holder like below?

> **[Energizer Alkaline Batteries A23 MN21 LRV08 GP23A 12V: Amazon.co.uk: Camera & Photo](https://www.amazon.co.uk/Energizer-Alkaline-Batteries-LRV08-GP23A/dp/B002YOWPHG/ref=pd_bxgy_107_img_y)**
>
> Energizer high voltage remote control battery, uniquely built to offer excellent performance and longer operational life over a wide range of operating temperatures.

Will that work?

---

<div class="post-metadata">

**Author:** ![Viscacha](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@Viscacha](https://community.particle.io/u/Viscacha)\
**Post date:** [May 14, 2017, 11:29am UTC](https://community.particle.io/t/using-brass-liquid-solenoid-valve-from-a-photon/32707/4 "2017-05-14T11:29:39Z")

</div>

These batteries, like coin cells are designed for very low power applications, like remotes and doorbells. Its unlikely they would be able to manage a solenoid, even a puny little one like this. A holder with several AA/AAA might be more suitable. somewhere between 4 and 8 of them according to the specs.

---

<div class="post-metadata">

**Author:** ![mrclj](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mrclj](https://community.particle.io/u/mrclj)\
**Post date:** [May 14, 2017, 11:59am UTC](https://community.particle.io/t/using-brass-liquid-solenoid-valve-from-a-photon/32707/5 "2017-05-14T11:59:27Z")

</div>

THank you… I have ordered an 8 AA battery Holder.
