Subscribe to EDN
RSS
Reprints/License
Print
Email

Optical sensor needs no tweaking

Edited by Bill Travis

By Ron Mancini, Texas Instruments, Bushnell, FL -- EDN, June 13, 2002

The transfer gain of optical sensors spans a 16-to-1 ratio because of variations in the LED, phototransistor, ambient temperature, and optical path. The wide transfer-gain variation complicates output-resistor selection in dc-coupled circuits. You must size the output resistor to prevent high transfer gains from causing output-stage saturation, but low transfer gains yield low output-voltage swings with low-value resistors. You usually need to make adjustments to match the dc output voltage to the transfer gain, and reliable operation requires readjustment under extreme temperature and dust conditions. The circuit in Figure 1 eliminates the need for adjustments. The circuit uses dc-coupled feedback to control the current in the output resistor. Hence, the output voltage is predictable and constant.

The op amp's input current and the current in D3 is negligible, so I1=I2, and the output voltage is 2.7V when the phototransistor is on (light path unbroken). The output voltage is 0V when the phototransistor is off (light path broken). The op amp's output-voltage swing accommodates the variation in transfer gain. This output voltage assumes the value required to make the LED current times the transfer gain equal to the phototransistor's emitter current. The input-current equation is as follows:

The range of transfer gain is 80 to 5: 5≤I3/I2≤80. The op amp's output-voltage range is limited, especially with the high output-current requirement, thus the design uses a TLC071 that can source 20 mA at 3.5V in this design:

When the light is blocked, the phototransistor's emitter current goes to zero. The input current, I1, can't flow into Q1 because it is off, so the op amp heads for the positive rail. If the op amp's output stage saturates, the recovery time is unpredictable, so you insert the zener-diode combination D2 and D3 to prevent saturation. As the op amp's output voltage approaches 3.4V (VD2+VD3), the diodes clamp the output voltage, thus preventing saturation. R3=270Ω so that it can supply adequate LED current without incurring op-amp saturation. When this circuit drives a saturated logic circuit, you should buffer the output with a hysteresis gate or a comparator with hysteresis.

Is this the best Design Idea in this issue? Select at www.ednmag.com.

RSS
Reprints/License
Print
Email
Talkback
Canon Resource Center

Featured Company


Most Recent Resources

Advertisement
Related Content

No related content found.

  • 0 rated items found.
Advertisement

KNOWLEDGE CENTER

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)
Engineering Careers
Jobs sponsored by
Advertisement
About EDN   |   Site Map   |   Contact Us   |   Subscription   |   RSS
© 2012 UBM Electronics. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy

Please visit these other UBM Canon sites

UBM Canon | Design News | Test & Measurement World | Packaging Digest | EDN | Qmed | Pharmalive | Appliance Magazine | Plastics Today | Powder Bulk Solids | Canon Trade Shows