0

Arduino and Solenoid valve control
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Arduino and Solenoid valve control

by iammujib21 on Mon May 03, 2021 5:44 pm

Hello Dear all,
I am working on a project for which I will use a solenoid valve, "Brass Liquid Solenoid Valve - 12V - 1/2 NPS". I need to connect this to an Arduino UNO and control it by the Arduino coding. For example, the solenoid valve will switch ON or OFF based on the values I get from another sensor. I need to know how I can connect and get the data?

N.B: I have no prior coding or microcontroller knowledge.

iammujib21
 
Posts: 1
Joined: Mon May 03, 2021 5:37 pm

Re: Arduino and Solenoid valve control

by adafruit_support_bill on Mon May 03, 2021 6:10 pm

You can find details about the circuit required for solenoids here: https://learn.adafruit.com/transistors- ... -2998941-9

Turning it on and off is straigtforward. You just use the Arduino digitalWrite() command. Essentially the same code you would use to turn an LED on and off as shown here: https://learn.adafruit.com/adafruit-ard ... ng-the-led

adafruit_support_bill
 
Posts: 81336
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.


cron