# How To Control A Solenoid With A Raspberry Pi Using a Relay

**URL:** <https://forum.core-electronics.com.au/t/how-to-control-a-solenoid-with-a-raspberry-pi-using-a-relay/10461>\
**Category:** Guides\
**Created:** [17 June 2021 00:52 UTC](https://forum.core-electronics.com.au/t/how-to-control-a-solenoid-with-a-raspberry-pi-using-a-relay/10461 "2021-06-17T00:52:13Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![Michael](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/michael/32/3545_2.png) [@Michael](https://forum.core-electronics.com.au/u/Michael)\
**Post date:** [27 December 2023 04:56 UTC](https://forum.core-electronics.com.au/t/how-to-control-a-solenoid-with-a-raspberry-pi-using-a-relay/10461/21 "2023-12-27T04:56:54Z")

</div>

Hi @Chester262331 - no guarantees. 9V _may_ be enough to get a relay to close.

i don’t expect you will get much life out of your 9V battery in any case though 😕 they are pretty low capacity.

You won’t damage anything, but it also may not work, or not work for long.

---

<div class="post-metadata">

**Author:** ![Chester262331](https://avatars.discourse-cdn.com/v4/letter/c/bc8723/32.png) [@Chester262331](https://forum.core-electronics.com.au/u/Chester262331)\
**Post date:** [27 December 2023 08:10 UTC](https://forum.core-electronics.com.au/t/how-to-control-a-solenoid-with-a-raspberry-pi-using-a-relay/10461/22 "2023-12-27T08:10:38Z")

</div>

Ohw guess I’ll have to buy 12v then, thank you sir ! 🫡

[Previous page](https://forum.core-electronics.com.au/t/how-to-control-a-solenoid-with-a-raspberry-pi-using-a-relay/10461.md?page=1)
