Will this solenoid valve work straight off of a Raspberry pi 4?

Ian0

Joined Aug 7, 2020
13,109
At a guess, it won’t Work.
First you need to know how much current it needs to operate (which I don’t see in the data)
If it is more than 4mA it is too much for the Raspberry pi.
secondly, you need some circuit which can reverse the direction of the current in order to shut the valve, such as an H-bridge.
 

Thread Starter

ltengineer

Joined Apr 27, 2023
5
At a guess, it won’t Work.
First you need to know how much current it needs to operate (which I don’t see in the data)
If it is more than 4mA it is too much for the Raspberry pi.
secondly, you need some circuit which can reverse the direction of the current in order to shut the valve, such as an H-bridge.
So in the FAQs for the valve it says 1A
No. It takes about 1A to drive the coil @5vdc. You need an external driver of some sort.
https://www.amazon.com/SunFounder-Channel-Optocoupler-Expansion-Raspberry/dp/B00E0NTPP4
gotcha, would it be easier to just get a 12 v solenoid (since those seem more common) and connect it to a 12 volt battery and relay? I only need to open the valve once. The valve will be in the container that is gettting flooded. We don't care if it gets fried by the water.
 

nsaspook

Joined Aug 27, 2009
16,263
That relay board connected (using 5V supplied from the RPI for relay board electronics) to the RPi can handle any load in the relay contacts specifications. A 12VDC solenoid shouldn't be a problem with dry contact switching.
 

Thread Starter

ltengineer

Joined Apr 27, 2023
5
That relay board connected (using 5V supplied from the RPI for relay board electronics) to the RPi can handle any load in the relay contacts specifications. A 12VDC solenoid shouldn't be a problem with dry contact switching.
What kind of power supply would you use if you just needed to open the valve once? Just get a single 12V battery?
 

nsaspook

Joined Aug 27, 2009
16,263
What kind of power supply would you use if you just needed to open the valve once? Just get a single 12V battery?
Sure, a 12V 7Ah gel-cell battery should would work but remember, due to Murphy's Law, that battery/circuit will be dead if you really need it unless you monitor it.
1682613167734.png
 

nsaspook

Joined Aug 27, 2009
16,263
Top