From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control solenoid valves from computer

Dear all,

 

I need to control 4 solenoid valves (24V, 4W) from a personal computer, say, to open the valves in turn every 5 seconds and open each for 0.5 s.

 

 

I am looking for an "interface card" between the computer and the solenoid vavlues, based on USB, RS232, or GPIB. Moreover, I prefer to program with SCPI in Matlab.

 

Any hints will be highly appreciated.

 

 

0 Kudos
Message 1 of 13
(14,355 Views)
sounds like you need:
-a daq/dio, usb-6501 will do
-24v power supply
-relays
-relay driver (uln2003)
0 Kudos
Message 2 of 13
(14,347 Views)

Skip the relays, use the ULN2003 to drive the solenoids directly!

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 3 of 13
(14,340 Views)

Don't forget the protection diode to keep he ULN alive.

 

Kees

0 Kudos
Message 4 of 13
(14,338 Views)

They have the diodes included already in their die.

 

http://www.ti.com/lit/ds/symlink/uln2003a.pdf

 

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 5 of 13
(14,331 Views)

Your people are really helpful.

 

I saw some threads in which NI 9472 was used to control the solenoid valves directly. I called my local NI support and the guy told me that NI 9472 did not support SCPI. So if I turn to use Labview instead of SCPI, the hardware part will be simpler, right?

 

I have to control a mass flow controller (MFC) with RS485 (see below) at the same time, and also do not konw how to realize. Help, please.

 

rs485.PNG

--

Best,

ImGoodMan

0 Kudos
Message 6 of 13
(14,321 Views)

Hi all, 

 

Sorry to revive an old thread, but it's very similar to what I'm trying to do.

 

I'm looking at purchasing a 24VDC solenoid valve and then controlling it via PC in order to turn it on/off to generate a pulse of water. 

 

So I'm trying to piece together what I'd need for this. I have:

 

I'm thinking of picking up one of these solenoid valves, which I'm hoping have some sort of +/-/signal interface for control, but I need to look into it:

 

Finally it looks like I'll need:

 

 

Those last two bullets are where it gets foggy for me. I'm considering a 24VDC valve, so a 24VDC power supply makes sense, but I can't seem to find any. And I'm not entirely sure what the transistor array is for. 

 

It seems like a relatively simple set up, I just need to power the valve, and then either send a control signal to turn the valve on/off or maybe just control when the valve receives power from the power supply. Right? 

 

Any help would be great, thanks in advance!

Message 7 of 13
(12,778 Views)

24VDC power supplies should be easy to locate. You can even buy "wall transformers" with 24VDC/1A output off the shelf.

 

Usually a digital output of a PC system can handle 5VDC max and the current is limited to approx. 100mA in most cases. If your circuit runs on higher voltages and if you need more current to drive your device you need an interface which can handle these ratings on the output and can be driven with logic-level (TTL level) signals as they are supplied by the PC system. That's what this transistor array will do.

 

However, if you are not familiar with designing and building your own hardware, you can also buy ready-made interface devices. Look for "opto-isolators", most of them can be driven with TTL level signal and 24VDC output handling is very common.

0 Kudos
Message 8 of 13
(12,768 Views)

The USB-6501 can handle currents up to 8.5 mA at 0 or 5 V. The current requirements for the solenoid valves depend on which coil you choose. The 11.6 W coil will draw 483 mA at 24 V.  700 mA for the 16.8 W and over 1 A for the higher power coils.

 

The ULN2003 can handle up to 500 mA (but possibly not continuously, depending on package and drive). Multiple devices can be connected in parallel for higher currents but the current sharing is not perfect and some derating is necessary. The data sheet does not give any good guidelines for parallel operation. I would suggest no more than 300 to 350 mA per device. If you intend to operate this device in a multiple parallel mode, calculate the power dissipation and temperature limits carefully.

 

Lynn

0 Kudos
Message 9 of 13
(12,751 Views)

Thanks both of you for your replies! I'm going to process that info and see what I can come up with.

0 Kudos
Message 10 of 13
(12,743 Views)