Академический Документы
Профессиональный Документы
Культура Документы
Proximity Sensor
TOP VIEW
Radiation Profile for HSDL-9100
Figure 1. HSDL-9100 block diagram Figure 2 shows the typical angular profile (LED radiant
intensity and photodiode responsivity) for HSDL-9100.
The reference points (rotation originals) are at the
aperture center of the LED and photodiode respectively.
The half viewing angle for the LED is about 20 degrees
and for the photodiode, it is about 25 degrees.
HSDL-9100 TYPICAL LED ANGULAR EMITTING PROFILE General Applications
1.2
NORMALIZED RADIANT INTENSITY
HSDL-9100 TYPICAL PHOTODIODE ANGULAR RESPONSIVITY PROFILE • Mobile applications: auto speaker phone activation
Without proximity sensor, speaker phone activation
NORMALIZED RESPONSIVITY
1.0
is dependent on the user by pressing the keypad.
0.8 Proximity sensor reduces the phone volume
0.6 when the phone is near the ear and switches to
speaker phone mode when the phone is away from
0.4
the ear.
0.2
2
• Optical Switch Typical Output Voltage vs. Detection Distance
Proximity sensor can replace existing mechanical HSDL-9100 can operate at an absolute maximum rating
switch as contactless or optical switch. of 50 mA LED DC current. Figure 3 shows the typical
- Current iron does not have the functionality to output voltage at a LED peak current of 100 mA, 200
protect users from accidental mishaps such as mA, and 300 mA. The test conditions are as follows:
leaving a hot iron on the shirt for a long period. • Reflection Medium = Kodak 18% Reflectance Gray
Proximity sensor (safety on/off switch) is placed on Card
the iron’s handle to ensure that the iron is turned
• Vcc = 3.0 V
on only when it is held by the user.
• Peak ILED = 100 mA, 200 mA, and 300 mA
- Without proximity sensor, lamp is turned on/off
• Pulse Frequency = 500 Hz
manually by users by pressing a mechanical switch.
Proximity sensor is placed on the lamp base and • Duty Cycle = 5%
allows the user to wave a hand near the base to • Load resistor = 100 kΩ
turn it on/off.
• Object detection
- Drink dispensing cup detection:
OBJECT TO BE DETECTED
Without proximity sensor, drink dispenser machine
uses a mechanical latch to turn on the tap valve.
Automatic drink dispensing is enabled as the
proximity sensor senses the presence of a cup and DETECTION
the machine begins dispensing the drink. DISTANCE
3
OUTPUT VOLTAGE VS DISTANCE@ROOM TEMP, RL=100 kohm
1000
OUTPUT VOLTAGE (mV)
300 mA
100 200 mA
100 mA
10
1
0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100
DISTANCE (mm)
4
Typical Output Voltage across Temperature
The following illustrate the typical output voltage across
operating temperature. The test conditions are as
follows:
• Vcc = 3.0 V
• Duty Cycle = 5%
• Load resistor = 100 kΩ
• Reflection Medium = Kodak 18% Reflectance Gray
Card
• Pulse Frequency = 500 Hz
• Peak ILED = 300 mA
1.20
RELATIVE OUTPUT VOLTAGE
1.00
0.80
0.60
0.40
0.20
0.00
-50 -40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 100
5
VCC VCC
C1
AVAGO PROXIMITY
SENSOR
R4
OUT – OUTPUT
+ VOLTAGE
R1 Q1
PULSE IC1
GENERATOR NPN
MOSFET
RL R3
R2
AMPLIFIER CIRCUIT
Selection of the load resistor RL will determine the will increase by (R4)1/2. Hence, the signal-to-noise ratio
amount of current-to-voltage conversion in the circuit will improve by (R4)1/2/R3. However, there is a limit to
and the response time. Reducing the value of RL will the amount of gain to be applied. As the gain increases,
result in a faster response time at the expense of a the response time also increases.
smaller voltage signal. Besides this, as the value of RL
increases, the output becomes non-linear. A small feedback capacitor C1 could be added to limit
the frequency response and reduce or eliminate gain
Resistors R3 and R4 determine the voltage gain for the peaking and oscillation. However, it will reduce the
circuit and are expressed as the following formula: circuit bandwidth. Hence, C1 value has to be selected to
Voltage Gain = 1 + (R4/R3). The circuit gain can be reach a compromise between stability and bandwidth.
increased by increasing the ratio of (R4/R3). As the value Typically C1 value is very small (in the range of hundreds
of R4 increases, there is a corresponding increase in of pico-fared) as increasing the C1 value will increase
thermal noise voltage which is proportional to (R4)1/2. the response time.
Hence, if the gain is increased by increasing (R4/R3), the • Basic voltage comparator circuit
signal will increase by (R4/R3) while the thermal noise
VSS
VCC VCC R3
VREF
AVAGO PROXIMITY
SENSOR R4
OUT –
OUTPUT
+
R1 Q1
PULSE IC1
GENERATOR NPN
MOSFET
RL
VOLTAGE COMPARATOR CIRCUIT
R2
6
Similarly, selection of the load resistor RL will determine The output logic will be as shown in Figure 8. If Vref is
the amount of current-to-voltage conversion in the of a higher voltage compared to Vout, the output logic
circuit and the response time. If Vout is sufficiently large will be logic LOW which implies that no object is
and no amplification is required, this output signal can detected. On the other hand, if Vref is of a lower voltage
be connected to the input of the voltage comparator compared to Vout, the output logic will be logic HIGH
directly. which implies that there is an object hit.
HIGHER VOLTAGE –
LOW
LOWER VOLTAGE +
COMPARATOR
LOWER VOLTAGE –
HIGH
HIGHER VOLTAGE +
COMPARATOR
VSS
VCC VCC R3
R5
VREF
AVAGO PROXIMITY
SENSOR R4
V–
VOUT –
OUTPUT
+
R1 Q1
PULSE V+ IC1
GENERATOR NPN
MOSFET
RL
VOLTAGE COMPARATOR CIRCUIT
R2
7
Hysteresis is the difference between the input signal at another voltage value. It provides a buffer zone for
levels at which a comparator turns on and off. A small the rejection of noise and interference of the input signal
amount of hysteresis reduces the circuit’s sensitivity to that will otherwise cause rapid switching back and forth
noise and reduce multiple transitions at the output between the two output states when the input is close
when changing state. The hysteresis enables the to the threshold level. The feedback resistor, R5, helps
comparator to turn on at one voltage value and turn off to provide a small amount of hysteresis to the circuit.
OUTPUT
(OUTPUT SIGNAL
OF COMPARATOR) INCREASING INPUT SIGNAL
OUTPUT +
(HIGH)
V+
(INPUT SIGNAL
TO COMPARATOR)
OUTPUT –
(LOW)
VREF_LOW V– VREF_HIGH
(REF VOLTAGE)
When the output signal of the comparator is at LOW • Calculating reference voltages:
initially, an increasing input signal to the comparator, R4
- Vref_high = ———— x Vss
V+ will cause the output signal to remain at LOW until R 3’ + R 4
Vref_high is crossed. This will cause the output signal
R4’
to switch to HIGH and it will remain at HIGH until the - Vref_low = ———— x Vss
input signal decreased and Vref_low is crossed and the R 3 + R 4’
output signal switch to LOW.
For example, if Vss = 3 V, R3 = R4 = 10 kΩ, R5 = 150 kΩ.
Similarly, when the output signal of the comparator is • Vref_high = 1.55 V
at HIGH initially, a decreasing input signal to the • Vref_low = 1.45 V
comparator, V+ will cause the output signal to remain • Hysteresis = 0.1 V
at HIGH until Vref_low is crossed. This will cause the • When the comparator output is LOW, V+ has to be of
output signal to switch to LOW and it will remain at a higher voltage than Vref_high before the output
LOW until the input signal increased and Vref_high is logic turns HIGH.
crossed and the output signal switch to HIGH. • When the comparator output is HIGH, V+ has to be of
a lower voltage than Vref_low before the output logic
The formulas below illustrate the turn on and turn off turns LOW.
voltage level.
• Calculating combined resistances: • Analog-to-digital converter (ADC) circuit
1
- Vref_high: combined R3 = R3’ = ——— —
1 1
—+—
R3 R5
1
- Vref_low: combined R4 = R4’ = ——— —
1 1
—+—
R4 R5
8
VCC VCC
VSS
AVAGO PROXIMITY
SENSOR
OUT ADC
VOUT (USUALLY EMBEDDED BINARY
R1 Q1 IN MICRO OUTPUT
PULSE
GENERATOR NPN CONTROLLER)
MOSFET IC1
RL
R2
ADC CIRCUIT
An ADC inputs an analog electrical signal such as a has to be fast enough to capture essential changes in
voltage which is continuously varying and outputs a the analog waveform.
binary number. Typically an ADC needs interfacing
through a microprocessor to convert analog data into
digital format. This requires hardware and necessary Reference Design in Mobile Application
software, resulting in increased complexity and cost. Figure 12 illustrates a reference interface for integrating
Avago proximity sensor into mobile applications to
Considerations of an ADC: control answering of call, activation of speaker phone,
• Resolution: and detection of the flip of the clamshell phone through
Resolution is the number of discrete values output by hardware implementation. These are controlled using a
the ADC. For example, an ADC with an 8-bit output voltage comparator which compares the voltage output
can represent up to 256 (28) discrete values. Resolution of the ambient light sensor and the reference voltage
can also be defined electrically and is expressed in which is predetermined in the circuitry. This reference
Volts. The voltage resolution of an ADC is equal to its voltage will be determined by the desired detection
overall voltage range divided by the number of distance. When the proximity sensor detects an object
discrete values. within the detection range, the output of the voltage
• Sample Frequency: comparator will be logic high. On the other hand, when
Sample frequency is the speed at which the ADC the proximity sensor detects no object within the
outputs a new binary number. When the sample detection range, the output of the voltage comparator
period is too long (too slow), substantial details of the will be logic low. The feedback given to the comparator,
analog signal will be missed. The ADC’s sample time R5, provides some hysteresis to the circuit.
9
CONTROL
- ANSWERING OF CALL INT/GPIO
- ACTIVATION OF SPEAKER PHONE
- DETECTION OF THE FLIP OF CLAMSHELL PHONE
MICRO-CONTROLLER UNIT
VSS
VCC VCC
R3
R5
LEDA DETK
AVAGO PROXIMITY VREF
SENSOR
LEDK DETA
R4
IOUT
–
VOUT
+ OUT = ‘1’ (OBJECT HIT)
R1 Q1
PULSE OUT = ‘0’ (NO OBJECT HIT)
GENERATOR NPN
MOSFET
RLOAD
VOLTAGE COMPARATOR
R2
Figure 13 illustrates a reference interface for integrating controlled using an A/D which will reflect a value
Avago proximity sensor into mobile applications to corresponding to the object detection status and a
control answering of call, activation of speaker phone, software which is programmed to provide the control
and detection of the flip of the clamshell phone through input status.
hardware and software implementation. These are
PROGRAM SOFTWARE
TO PROVIDE
CONTROL CONTROL INPUT
- ANSWERING OF CALL EMBEDDED A/D
- ACTIVATION OF SPEAKER PHONE
- DETECTION OF THE FLIP OF CLAMSHELL PHONE
MICRO-CONTROLLER UNIT
VCC VCC
LEDA DETK
AVAGO PROXIMITY
SENSOR
LEDK DETA
IOUT
VOUT
R1 Q1
PULSE
GENERATOR NPN
MOSFET
RLOAD
R2
10
Application Example 1: Object Detection
The following illustrates circuit examples of interfacing
the proximity sensor for applications that require object
detection as illustrated in Figure 14.
11
VCC
R4 R6
LEDA DETK
HSDL-9100
LEDK DETA
R5
IOUT
VREF
– VOUT2
R2 VOUT1
Q1 +
VOLTAGE
NPN
COMPARATOR
MOSFET
R1 R3 C1
Figure 15. DC driven LED with logic high output if object detected
12
VCC
R4 R6
LEDA DETK
HSDL-9100
LEDK DETA
R5
IOUT
R2 Q1 VREF
NPN –
MOSFET VOUT1 VOUT2
+
VOLTAGE
COMPARATOR
R1 R3 C1
Figure 16. Pulsed driven LED with pulsed logic high output if object detected
13
Application Example 2: Optical Switch
The following illustrates circuit examples of interfacing
the proximity sensor as an optical switch which can be
used to replace applications that are currently utilizing
mechanical switches as illustrated in Figure 17.
14
VCC
SCHMITT
R7 TRIGGER
R4 R6
LEDA DETK C2
HSDL-9100
LEDK DETA
R5
VDD Q DATA R
D-TYPE
IOUT GND SET FLIP FLOP CLK Q
R2 Q1 VREF
NPN – VOUT2 VOUT3
MOSFET VOUT1
+
VOLTAGE
COMPARATOR
R1 R3 C1
15
• Vout3 Output State: • HSDL-9100 is pulsed driven and a latched voltage
Vout3 =0V Default mode output, Vout3 will be produced whereby this output
when voltage will toggle on or off with each detection by
powered on the HSDL-9100.
Vout2
(Level Change) Data Q
0V 0V
Vcc Vcc
X Q
(Don’t
Care)
VCC
SCHMITT
R8 TRIGGER
C3
R4 R6
LEDA DETK
HSDL-9100
LEDK DETA
R5 VDD Q DATA R
D-TYPE
GND SET FLIP FLOP CLK Q
IOUT
VOUT3
R2 Q1 VREF R7
NPN – VOUT2
MOSFET VOUT1
+
VOLTAGE
COMPARATOR
R1 C2
R3 C1
16
• Components List: • Test Conditions:
Component Value Parameter Value Remarks
R1 100 Ω Vcc 5V
R2 220 Ω Pulse Frequency 100 Hz 50% duty
R3 100 kΩ cycle
R4 16 kΩ ILED for HSDL-9100 100 mA AC
R5 1 kΩ variable resistor Vout1 = Iout * R3 Iout is de-
(tuned to ~300 Ω) pendent on
the detection
R6 150 kΩ
distance
R7 1 kΩ
Vref = 101 mV
R8 900 Ω (Vref_High)
C1 200 pF = 92 mV
C2 10 µF (Vref_Low)
C3 43 nF Vout2 = Vcc when Object
Vout1 > Vref detected
Q1 BSH103
= 0 V when No object
Voltage Comparator TLC3702
Vout1 < Vref detected
Schmitt Trigger MM74HC14
D-Type Flip Flop CD4013BC
• Vout3 Output State:
Vout3 =0V Default mode
when
powered on
Vout2
(Level Change) Data Q
0V 0V
Vcc Vcc
X Q
(Don’t
Care)
17
Application Example 3: Placing 4 Sensors in Close
Proximity to Each Other
The following illustrates circuit example of interfacing All the four HSDL-9100 are DC driven and a voltage
the proximity sensor for applications that require several output, Vout2 will be produced by each HSDL-9100.
proximity sensors to be placed in close proximity to each Vout2 will be logic HIGH if there is an object detected
other. In this example, four HSDL-9100 are mounted side by the HSDL-9100 and logic LOW if there is no object
by side in a row as illustrated in Figure 20 in a rear view detected. Figure 21 shows the circuit diagram for each
mirror application. Cross-talk among the four HSDL-9100 HSDL-9100.
is taken into consideration to prevent inadvertent
triggering of adjacent sensor.
18
VCC
R4 R6
LEDA DETK
HSDL-9100
LEDK DETA
R5
IOUT
VREF
– VOUT2
R2 VOUT1
Q1 +
VOLTAGE
NPN
COMPARATOR
MOSFET
R1 R3 C1
19
REFLECTED MEDIUM:
18% REFLECTANCE GRAY CARD
(2.5 cm X 2.5 cm)
DETECTION DISTANCE
<1 cm
The four proximity sensors are placed at least 2 cm apart Sunlight can saturate the PIN of the HSDL-9100 which
from each adjacent sensor. This placement distance is will affect the functionality of HSDL-9100. For example,
the minimum distance to prevent cross-talk among the in the presence of sunlight, HSDL-9100 may provide an
four sensors and will result in a detection distance of incorrect signal output to signify object detection, while
<1 cm whereby the reflected medium is a (2.5 cm by in actual application, there is no object presence. It is
2.5 cm) 18% Gray Card. The reflected medium is placed also recommended that to minimize the effect of
such that the proximity sensor is facing the center of sunlight, an optical filter is used concurrently for
the reflected medium. optimum performance.
• The ambient conditions, in which Figures 15, 16, 18, Compared to DC operation, the advantages of Pulsed
19, and 21 are to operate correctly, are illustrated in operation are as follows:
Table 3. The conditions are to be applied separately. • Lower power consumption
• Allows for a sunlight cancellation to be included
Table 3. Ambient Conditions
The disadvantage of Pulsed operation is greater circuit
Ambient Conditions Typical Light Level (Lux) complexity such that more external components are
Sunlight < 300 - 400 required.
Incandescent Light < 10
Fluorescent Light < 1700 Optical Window Design
A constraint on the design and position of the window
is required so that the cross talk from the emitter to the
photodiode is minimized. Figure 23 illustrates the basic
guideline on the position and design of the window.
20
FLAT WINDOW
MIN: 7.1 mm
OPAQUE
MATERIAL
MAX: 1 mm
HSDL-9100
LED
LED
LED
PHOTODIODE
PHOTODIODE
PHOTODIODE
PHOTODIODE
1 mm
OR LESS
21
Almost any plastic material will work as a window Test Setup
material. Polycarbonate is recommended. The surface
The following provides a general recommendation for
finish of the plastic should be smooth, without any
testing the functionality of the proximity sensor. It
texture. An IR filter dye may be used in the window to
illustrates the measurement equipment and techniques
make it look black to the eye but the total optical loss
for determining the output voltage (Vout) of the
of the window should be 10% or less for best optical
proximity sensor.
performance. Light loss should be measured at 875 nm.
The recommended plastic materials for use as a cosmetic
window are available from General Electric Plastics.
OBJECT TO BE DETECTED
(E.G. KODAK CARD)
DETECTION
DISTANCE
AVAGO
PROXIMITY
SENSOR
LED PHOTODIODE
POWER POWER
VCC VCC
SUPPLY SUPPLY
R2
PULSE GENERATOR MULTIMETER
VOUT
OR VCC OR OSCILLOSCOPE
R1
(CURRENT LIMITING RLOAD
RESISTOR)
22
6 Required Equipment
- A DC power supply of up to 6 V can be used to
power up the proximity sensor.
- The LED of the proximity sensor can be pulsed
driven by a pulse generator or can be DC driven by
a DC power supply.
- A multimeter or an oscilloscope can be used to
measure the output voltage of the proximity sensor.
6 Reflected Medium
- The reflected medium is the object to be detected
by the proximity sensor.
- It is placed at the required detection distance from
the proximity sensor.
For product information and a complete list of distributors, please go to our website: www.avagotech.com
Avago, Avago Technologies, and the A logo are trademarks of Avago Technologies, Limited in the United States and other countries.
Data subject to change. Copyright © 2006 Avago Technologies Pte. All rights reserved.
AV01-0225EN June 17, 2006