Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

NPN leak sensor to DIO

I have a Netmotion liquid leak optical sensor which uses a NPN transistor. I would like to connect it to the DI of a USB-6009 for labview to sense a liquid spill. Here is a link to the product page, I have model HPQ-D11-L05:

http://www.netmotion.com/htm_files/fh_leak.htm#one

 

It says that the output has a load current of 50 mA max, does this mean i just need to put a resistor in the circuit to convert to a 0 - 5 V signal or is there something else I need to do in order to detect an change in output.

 

Thanks

0 Kudos
Message 1 of 6
(4,290 Views)

Hi,

 

You can use a resistor (1k) but you have to connect the resistor to the +5V of the  USB-6009. Do not connect it to the power supply for your device (>12V).

 

Kees

0 Kudos
Message 2 of 6
(4,269 Views)

Thanks, could you be a little more specific on how my wiring needs to be done. Do I connect the resistor between the black wire and +5V then measure the voltage accross the resistor for the TTL signal?

0 Kudos
Message 3 of 6
(4,253 Views)

You can connect it like this. The input is inverted. So an inactive output will show a '1'.

 

 

USB Conn.jpg

Message 4 of 6
(4,247 Views)

Tried and worked. Thanks so much for your help!

0 Kudos
Message 5 of 6
(4,240 Views)

Glad to help.

 

Kees

0 Kudos
Message 6 of 6
(4,237 Views)