OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Relay board that works with DC solonaid ?
- This topic is empty.
-
AuthorPosts
-
May 18, 2014 at 3:26 pm #22913
ChaoscripTMemberHi,
I want to know if there is any relay board that works with DC solonaid (9V 2 wires) that fit RPi ?Regards.
May 19, 2014 at 1:31 pm #26895
scottshParticipantIf you’re working entirely with DC then a transistor would work just as well and be a lot cheaper. Something like a 2N2222 would work, depending on how much current your solenoid pulls.
I see some 9v solenoids that only need 240mA so an 800mA transistor would work.
Scott
May 19, 2014 at 3:36 pm #26896
ChaoscripTMemberHi Scott,
Thanks for your answer,
I mean if I can buy relay board ready to use instead of “change” one.
The computer works with 2 9V batteries, I don’t know how much mAhRegards.
May 19, 2014 at 10:04 pm #26897
scottshParticipantI’m not suggesting you change an existing board, I’m suggesting you just use a transistor. When working with low voltage DC you can use components directly without the need for fancy boards. It know it might be scary to work with solder but if I can do it – and I’m a CS grad, not EE – then you can too :). There are lots of examples on the web on how to use it to switch DC. And from a cost standpoint, you can’t beat it – I see you can buy one of those 2N2222 for 10 cents ($0.10).
And besides, if you fry something it probably won’t hurt anybody. It’s when you start messing around with AC 120v 15A that things get … challenging. That’s when buying a board is a good idea – somebody else has already worked to make that safe.
You can pull a lot of mA out of a 9V battery; but that’s not the issue – the issue is the load, so you’ll have to look at the solenoid and see what it draws.
What are you trying to do?
May 20, 2014 at 2:26 am #26898
ChaoscripTMemberI just want to connect this valve,
http://www.amazon.com/Galcon-Sprinkler-Latching-Solenoid-Controllers/dp/B00ES8NSMC/ref=pd_sim_sbs_lg_2?ie=UTF8&refRID=1SZKSNBDPKSQZYHCX9BZ
(for example)
instead of AC valve.
You have any video that shows how to do the change with the transistor ?
Also I need to it for all the outputs? or only for what I use?Regards.
May 20, 2014 at 2:53 am #26899
scottshParticipantOh I see – you want OSPi to work with this DC solenoid instead of the standard 24V AC solenoids? That’s Ray’s department, not mine. I’m not sure what it would take to get that to work.
May 20, 2014 at 3:43 pm #26900
ChaoscripTMemberJust to be sure scottsh,
AC valve need to connect to electriciy ? or they come only with 2 wires that connect to OSPi ?
Also another question, the AC valve is water restitent ?Regards.
May 20, 2014 at 4:30 pm #26901
RayKeymaster@ChaoscripT: the valve shown in your link is clearly a latching solenoid (note that the two wires have different colors, meaning there is polarity). Latching solenoids are typically used in battery-powered controllers, and CANNOT work with 24V AC sprinkler controllers (such as OpenSprinkler or OSPi), because the electric spec and the controler mechanism are completely different. OpenSprinkler Bee is designed to work with latching solenoids:
http://rayshobby.net/?p=8527
We have an Arduino Shield version of OpenSprinkler Bee (called OSBee Sheild) that will be released shortly this week.24V AC valves require a 24V AC power adapter and cannot work on batteires. If you must use latching solenoids, then OpenSprinkler or OSPi are not suitable. If the valve type doesn’t matter, I suggest that you get 24V AC valves, they are cheap and widely available online or at home improvement stores.
May 21, 2014 at 3:55 pm #26902
ChaoscripTMemberRay,
Thanks for your comment,
So it’s not possible to use OSPi with DC valve ?
I want the OSPi, becuase the Rasperry, and the wifi, and the smartphone app.Regards.
May 22, 2014 at 11:26 pm #26903
RayKeymasterIt’s possible to use OSPi with DC solenoids, but as I said, the one in the link you showed is DC Latching solenoids, and to interface with those it’ complicated. You can find DC non-latching solenoids, and you can use them with OSPi by replacing the on-board triacs with transistors or MOSFETs.
May 23, 2014 at 7:12 am #26904
ChaoscripTMemberWhat is “Latching” solonaid ?
Regards.
May 24, 2014 at 7:05 pm #26905
RayKeymasterLatching solenoid only draws power when it opens or closes, and does not draw power when it remains in the same state. It’s sometimes called bistable solenoid. Applying a positive voltage opens the solenoid valve, and reversing the polarity closes the valve. The coil on the solenoid typically has very low resistance (a few ohms) so it momentarily draws a high current, often up to a few amps. You are supposed to only apply an impulse voltage instead of continuous voltage, otherwise it can quickly burn the coil or short the power supply.
May 24, 2014 at 7:08 pm #26906
ChaoscripTMemberUnderstand you,
Means Latching works with “pules”.
When the OpenSprinkler Bee will realese? It will work with the smartphone app? Can I connect to it USB WIFI Adapter?Regards.
July 18, 2014 at 9:10 pm #26907
KanyonKrisParticipantThere are many relay boards that will work. I used this 4 relay board from SainSmart. It’s connected to my Raspberry Pi and running my sprinkler system for 2 years. You can buy from SainSmart, I bought one off Amazon for a $6. They also offer relay boards with more or less relays, and also small signal and solid state relays – http://www.sainsmart.com/arduino-compatibles-1/relay.html
July 20, 2014 at 1:59 am #26908
rederikusParticipantI think this topic is probably past its sell by date but here’s my 2 cents worth anyway. Looking at the picture of the valve assembly in the Amazon link the OP posted, it will probably be a lot simpler to just unscrew the DC solenoid and screw in a regular 24V AC device. Even if the OP has to buy a cheap complete valve in Home Depot, they only cost $12.
Another solution would be to run the OSPi on its usual AC and then put a 2 Amp bridge rectifier on the output. I bought 10 of these on ebay for $3.95 here http://www.ebay.com/itm/251555357618?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649. This would allow the OP to use a DC solenoid. Obviously he would need to ensure that the DC voltage was correct since 24VAC will produce in excess of 36VDC.
July 22, 2014 at 5:09 am #26909
RayKeymasterI want to re-state what I said earlier: when working with DC solenoid, be sure to check if the solenoid is latching or non-latching. Some DC valves use latching solenoids, the coil resistence is typically very low (a few ohms). These valves must be ‘pulsed’ open or close, you should never apply constant voltage more than 50 to 200 milliseconds, as that will smoke the coil. Other DC valves that are non-latching, the coil resistance is typically higher (30 to 60 ohms), and you can apply constant voltage on it to open the valve, and release voltage to close the valve.
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Relay board that works with DC solonaid ?