Infrared Proximity Detection with PSoC

Introductionoff them and back into the detector. The reflective
Infrared sensors are light sensors, which are activesensor can be used in proximity detection. Some
and function in the infrared part of the frequencyvendors provide a built-in sensor that includes the
spectrum. They primarily consist of an infraredreceiver and transmitter in a small package. In this
emitter and an infrared receiver. They are found inapplication note, Avago HDSL-9100 is used in the
many object detection applications such as automaticdemonstration circuit. to drive the LED at a higher
door openers and burglar alarms, surface featurecurrent (possibly higher than 100 mA peak). The
detection, rotation shaft encoding,and barcodeinfrared intensity of the emitter influences the
decoding. Some recently used applications in mobiledetection range. Considering the critical requirement
devices include auto call-answering, autoof the PCB size in mobile phone application, the
speakerphone activation, and detection ofdemonstration circuit uses two GPIO pins to drive
flip-in-clamshell phones. This application note is bundledthe LED in parallel and provide current to the emitter.
with the firmware and hardware for demonstratingOn the IR receiver side, the desired output voltage
interface and analog signal processing of infrareddepends on the detection distance and the value of
proximity sensors using PSoC. It alsoexplains infraredthe load resistor (RLOAD). This output voltage signal
light sensing and the advantages of using PSoC in thiscan be connected to the next stage, such as an
solution.analog amplifier, comparator, or Schmitt-Trigger, to
Infrared Proximity Sensorcontrol various functions.
The infrared sensor is made up of the emitterThe selection of the load resistor, RLOAD, plays a
(infrared LED) and detector (photodiode). Thesignificant role in circuit operation. If the RLOAD is
emitter emits IR light pulse and the receiver detectstoo large, the RC time constant increases, thereby
the corresponding light pulse. The sensor is classifiedincreasing the response time. However, if the RLOAD
into transmissive and reflective sensors. As shown inis too small, it contributes morethermal noise to the
Figure 1, in a transmissive sensor, the emitter and thecircuit than higher ones. Therefore, it is important to
detector face each other. Objects are detected ifnote the current-to-voltage transfer characteristics
they interrupt the beam of light between the emitterfor this part of the circuit. According to the
and the detector.applications, the RLOAD can be selected in a range
For a reflective sensor, the emitter and the detectorof 50 Kohm to several mega ohms. In this
are next to each other, and are separated by ademonstration circuit, we use a 1 Mohm resistor for
barrier. Objects are detected when light is reflectedevaluation.