Arduino Forum

Using Arduino => General Electronics => Topic started by: Kiraichi on Jan 23, 2015, 08:15 pm

Title: Q: Connect 12v solenoid valve to relay board.
Post by: Kiraichi on Jan 23, 2015, 08:15 pm
Good day everyone, thanks for your view.

I am still new with relay environment (electrical/electronic stuff),

Currently im working on project that use to control 12v solenoid valve with Arduino UNO.

Item used:
12v Solenoid valve
2 channel relay board
12v power adapter
Female power jack
Arduino UNO (Ignore the Yellow wiring(line))
Moisture sensor (Ignore this/wiring)
Breadboard
Wire

I am trying to control the valve ON/OFF via arduino uno.

I have uploaded my diagram, and the question is, is my diagram correct? If its wrong, i hope somebody can correct it.

Files too big, i have upload it to imgur,
http://i.imgur.com/EwaPZ3H.png

(http://i.imgur.com/EwaPZ3H.png)

Sorry for the messy color!

Thank You,

Regards,
Kiraichi
Title: Re: Q: Connect 12v solenoid valve to relay board.
Post by: bastjan on Jan 23, 2015, 08:52 pm
The circuit looks good

Since I never used arduino relay board make sure it have transistor built in and diodes to protect against spikes, if in doubt or dont understand dont hesitate to contact me
Title: Re: Q: Connect 12v solenoid valve to relay board.
Post by: larryd on Jan 23, 2015, 09:21 pm
If the Wall Wart is DC and the solenoid is DC place a kick back diode across the solenoid.
http://www.allaboutcircuits.com/vol_3/chpt_3/9.html (http://www.allaboutcircuits.com/vol_3/chpt_3/9.html)
Title: Re: Q: Connect 12v solenoid valve to relay board.
Post by: larryd on Jan 23, 2015, 09:35 pm
See image:
Title: Re: Q: Connect 12v solenoid valve to relay board.
Post by: feveran on Feb 09, 2015, 02:55 pm
which diode you advice for 12V 0.7A solenoid valve?
Title: Re: Q: Connect 12v solenoid valve to relay board.
Post by: CrossRoads on Feb 09, 2015, 03:57 pm
1N4007 would work fine
http://www.digikey.com/product-search/en/discrete-semiconductor-products/diodes-rectifiers-single/1376383?k=1n4007 (http://www.digikey.com/product-search/en/discrete-semiconductor-products/diodes-rectifiers-single/1376383?k=1n4007)
Title: Re: Q: Connect 12v solenoid valve to relay board.
Post by: DaveGahl on Mar 11, 2015, 04:04 pm
Thanks for such a great question.  For my automation class we are using the same type of solenoid to actuate a drink mixer.  I got it to work. Thanks for the help.
Title: Re: Q: Connect 12v solenoid valve to relay board.
Post by: Marciokoko on Dec 08, 2015, 12:17 am
Hi Peeps!

Im working on a solenoid project where I need to have the 12v solenoid valve controlling water flow of my showerhead.  I would like to control the solenoid with a simple button.

I have been researching on how to operate a solenoid and found a couple of ideas:

1.  This uses transistors & diodes: http://www.instructables.com/id/Controlling-solenoids-with-arduino/?ALLSTEPS

2.  And this post here which uses a relay.

What materials I have:

1.  I do have or could make a 9V-battery-powered source (but I think id rather use a 120V AC source and somehow convert it to DC.  For now Ill stick to the 9V x 2 battery pack idea.  What would I need to power it from the wall socket?

2.  12V solenoid valve

3.  1k resistor, breadboard, jumpers

4.  TIP120 transistor - I need to get one - i only have a IRLB8721

5.  1N4004 - I need to get one - i only have a 2N2222

I guess I could use a relay but I only have this: http://www.tinyosshop.com/index.php?route=product/product&product_id=228&filter_name=l298n

1.  Could that be used as a relay?  Eventually I would have to buy a 12V relay, I understand.
2.  Could those transistors and diodes work?  eventually I would have to buy those mentioned above.


Title: Re: Q: Connect 12v solenoid valve to relay board.
Post by: raschemmel on Dec 08, 2015, 06:14 pm
Quote
Files too big, i have upload it to imgur,
http://i.imgur.com/EwaPZ3H.png  
Open it with Paint and click "Resize" button on the upper left and type in "60" where you see the "100", click SAVE icon in paint and then upload it. That should make it < 1 Mbyte.


Quote
For my automation class we are using the same type of solenoid to actuate a drink mixer
I'll take a Mojito please....