I want to control in solenoid valve using Arduino as when the voltage is 24v the valve opens otherwise the valve still closes.
How I can do that? to read the voltage first then give the order for the valve
Is something else currently controlling the valve? If not, why do you need to measure the voltage first?
Nothing controls the valve now I just need to use it as a switch (open/close) only and I need to measure the voltage first to make sure that it will open only at 24V.
I did not use this valve before, so if there is any advice about how to control it I will appreciate that.
Why would the voltage not be 24V? Where is the 24V coming from?
I need to use this one, the voltage maybe change.
Also if the voltage is 24 how i can control the valve?
have a look at arduino relay
is the 24V DC or AC ?
what is the current taken by the solenoid?
check the rating of any relay you use to drive the solenoid
is there some control system which you need to implement to control the solenoid?
24V DC
It is 4 watts so the current is 4/24 = 0.1667
should I use a relay?
I want to implement the valve to the CVD project, it should open to allow the chemical to flow.
Do I need to buy a 24V supply for the valve and then control it using Arduino?
Look at voltage dividers for the input.
You may like to use an analog input if you really want to ‘measure’ the voltage…
Look at how people drive relays with a MOSFET… a solenoid is driven exactly the same way as a relay. (remember the diode across the relay!)
There’s usually no need for a relay AND a solenoid unless you have a specific requirement.
The best thing you can do when seeking advice, is to draw out a schematic of what you’re trying to build… that will define the software strategy.
Please do not ask further questions and at the same time ignore my questions. If someone asks a question, it is polite to answer, even if the answer is "I don't know the answer".
https://create.arduino.cc/projecthub/tarantula3/driving-a-relay-with-an-arduino-722c24
Both of these should help.
Tom...
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.