Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

phototransistor

I built a simple beam interrupt circuit with an ir LED and matching phototransistor.

Electrically it works perfectly.

If I measure the DAQ point with a multimeter it works.

Once I connect it to my DAQ Digital input it no longer drops the voltage enough to read it as a digital 0

 

Labview 2012. USB-6008 DAQ

See attached pic.

0 Kudos
Message 1 of 18
(6,882 Views)

@Murph wrote:

I built a simple beam interrupt circuit with an ir LED and matching phototransistor.

Electrically it works perfectly.

If I measure the DAQ point with a multimeter it works.

Once I connect it to my DAQ Digital input it no longer drops the voltage enough to read it as a digital 0

 

Labview 2012. USB-6008 DAQ

See attached pic.



is the ground on the transistor side connected to the daq gnd?

0 Kudos
Message 2 of 18
(6,875 Views)

No.

The ground of the USB-6008 is connected to the ground of the circuit.

The collector of the phototransistor is what is connected to Din.

 

The light source is always on holding the collector low (with transistor on).

When the bean is broken the transistor should turn off allowing the collector to float up to close to +5v.

All this works with a voltmeter connected to the same spot.

Once I connect the DAQ, the low signal remains the same but it can no longer rise to anything even close to a TTL Hi.

0 Kudos
Message 3 of 18
(6,870 Views)

Murph,

 

Do you mean No or Yes? Apok's question referred to the emitter of the OP501A which you have shown as ground.  It that connected to DGND or any other ground on the USB-6008?

 

The USB_6008 has an internal pull-up resistor of 4700 ohms. Are you sure you have enough light to drive the phototransistor to Ic > 1 mA?

 

Lynn

0 Kudos
Message 4 of 18
(6,859 Views)

I'm using an external power source to drive the OP280 LED, no worries there.

 

I am also using an external power supply at the collector of the OP501A, it then goes through a 100k resitor. The Daq is conneted there (like in the diagram) onto pin 17 (PO.0), the Dgnd (Pin 32) is connected to the ground of the external power supply (and emitter of the OP501A).

 

0 Kudos
Message 5 of 18
(6,857 Views)

What is the voltage measured at the DAQ input (using the voltmeter) with the LED on and off?

 

Lynn

 

 

0 Kudos
Message 6 of 18
(6,854 Views)

With the DAQ disconnected using a voltmeter at the collector of the OP501A I get just under +5V with the LED off, around 0.25v when the LED is on.

After the DAQ is connected it goes from the +5V down to about 3.85, not enough to be read as a digital zero.

If I pass it through an opamp follower, it works and the voltages read the same as a meter. I'd like to avoid using circuits between the LED's and the DAQ.

 

0 Kudos
Message 7 of 18
(6,849 Views)

Murph,

 

Thank you. Those measurements tell me what is going on.

 

When you have the USB-6008 disconnected, the transistor goes into saturation and the current is limited to about 50 uA by the collector resistor.

 

With the USB-6008 connected the collector resistor is 100 kohms in parallel with the 4.7 kohm internal pull up.  This produces an equivalent resitance of ~ 4.5 kohms. The voltage you measure with everything connected, 3.85 V corresponds to about 250 uA of collector current.

 

I could not find any data on an OP501A. I found OPTEK Technology OP510 and OP501DA. Both of those appear to conduct poorly at low collector-emitter voltages.  If you are using one of these, you may need to use additional circuitry.

 

Lynn

0 Kudos
Message 8 of 18
(6,839 Views)

@Murph wrote:

I'm using an external power source to drive the OP280 LED, no worries there.

 

I am also using an external power supply at the collector of the OP501A, it then goes through a 100k resitor. The Daq is conneted there (like in the diagram) onto pin 17 (PO.0), the Dgnd (Pin 32) is connected to the ground of the external power supply (and emitter of the OP501A).

 


through your 100k resistor, you get 50microamps...the spec asks for 0.1milamp to 10milamp minimum collector current? change your resistor value....

0 Kudos
Message 9 of 18
(6,835 Views)

It is indeed an Optek OP501DA http://www.optekinc.com/datasheets/OP501DA.pdf I am using.

 

What other way can I trigger a digital input with a phototransistor or diode?

 

I have looked at this in the past without success.

 

0 Kudos
Message 10 of 18
(6,831 Views)