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: 

USB-6501 all digital outputs fluctuate when one digital output is toggled on and off

Hi Everyone, 

 

I have an USB-6501 connected to several electro-mechanical relays through digital out which control several solenoid valves. I also have one digital out pin connected to a fluid sensor calibration pin (low (0v) initiates calibration while high does not). When I trigger a single digital output to activate a solenoid valve (low to high back to low) the digital output pin holding the calibration pin high spikes down to low then back up to high immediately after the solenoid valve output goes from high to low. I've probed the digital output connected to the calibration pin with an oscilloscope right when the solenoid valve is turned on and off and have noticed a very noisy signal oscillating between negative 5v and positive 15 volts lasting ~ 100us as soon as the solenoid valve is turned off (high back to low). An image of the oscilloscope trace is attached. This behavior is also seen in other digital output pins, briefly activating other solenoid valves. 

 

I am wondering what is causing the creation of this signal in all of the digital output ports when one port is toggled from low to high back to low. Does anyone have any ideas how to remove this behavior? 

 

Thanks in advance! 

0 Kudos
Message 1 of 3
(2,340 Views)

Unless the relays are specifically designed for TTL control, you really should not be directly controlling a relay with a DIO.  The DIO usually cannot output the current needed to drive a relay.  Plus the breakdown current when turning the relay off is likely what is throwing so much noise on your other lines.  You need to add in a buffer chip that can handle the current demanded of the relay.

 

Another thought is that many solid state relays (SSR) work with TTL control.  You could use one of these instead of a mechanical relay.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,320 Views)

Hi Crossrulz, 

 

Thank you very much for your feedback. I should have specified, the relays are TTL compatible. Long story short, I found out that I needed a few fly-back diodes for each solenoid (inductor). Introduction of the fly-back diodes fixed the voltage spikes and noise issues. The system is working properly. 

 

Cheers! 

0 Kudos
Message 3 of 3
(2,304 Views)