Beruflich Dokumente
Kultur Dokumente
Dialog Semiconductor
I
n this article, we implement a rain and ice sensor by analyz- of reflection. As the distance between emitter and receiver
ing the reflection of an infrared (IR) light source. This proj- lengthens, the detection method becomes more effective.
ect uses proven techniques based on multiple reflections In addition, as the distance between emitter and receiver
of IR light in the internal walls of the target glass. It will grows, the light’s power loss increases as the light travels
aim to increase the capabilities of standard components by through the glass. For the best detection, given increasing
adding technical advantages offered by the LED device, such distance, either a more efficient sensing/light emission device
as increasing the power emission using
pulsed energy applied 10 times using Barrier for
demonstration
high current strikes at a 1% duty cycle.
1 ELECTRONICDESIGN..COM
12 V
Glass
3. IR LED driv- R2
ing circuit. 15
IR light
IR light receiver
Pulse
LED1 emitter generator
R3 DC level
1k to PWM
Q2
Pulse input Pulse to
TIP121
GreenPAK device DC-level
R4 conversion
1k
PWM for
GND GND
DC motor
12 V
4. IR LED driving cir- 2. General block diagram of GreenPAK design.
cuit with decoupling
R2
capacitor to avoid 15
dc levels.
LED1
AC
capacitor
Q2
Pulse input
TIP121
R3
1k R4
1k
GND GND
3.3 V
Q1
LTR-306
R3
100k
To PWM
+ C1
R2
Cap Pol1
120k
1 µF
GND GND
2 ELECTRONICDESIGN..COM
100% Light sensing
3 ELECTRONICDESIGN..COM
3.3 V
Q1
LTR-306
R3
100k
To PWM
R2
(a) (b) 120k + C1
Duty Cycle 99.3% @ 1.95 V Duty Cycle 77.1% @ 991 mV
Cap Pol1
1 µF
R4
VOLTAGE-CONTROLLED PWM
To achieve the intended goal of this article, we’ll
refer to the AN-1056 Macro circuit design ADC
(c) (d) PWM application note to translate a dc level into a
Duty Cycle 58.4% @ 788 mV Duty Cycle 29.1% @ 478 mV
pulse-width-modulation (PWM) signal (Fig. 6).
MEASUREMENTS
IR light emitter vs. IR receiver
Figure 7 reveals results from testing the IR light
emitter versus IR receiver. The oscilloscope screen
captures depict the IR LED pulses (CH1) versus
the voltage drop in R2 directly from the IR receiver
(CH2). In Fig. 7a, one can see R2’s voltage (CH2)
versus the filtered dc level in C1 (CH1).
(e)
Figure 8 provides screen captures that show dc level
Duty Cycle 2.91% @ 253 mV
vs. PWM.
8. Duty cycle 99.3% @ 1.95 V (a); duty cycle 77.1% @ 991 mV (b); duty cycle 58.4%
@ 788 mV (c); duty cycle 29.1% @ 478 mV (d); duty cycle 2.91% @ 253 mV (e). ICE-SENSING APPLICATIONS
During this exercise, we found that sensing ice
TQ1−amb25 = 4 W × 62.5°C/W + 25°C is somewhat challenging using the techniques described so
TQ1−amb25 = 275°C far. The changes in refraction due to the presence of ice are
This means it would be beneficial to avoid a constant level different than changes due to the presence of water. However,
in the base of Q1. it’s possible to detect both.
One simple option is to have a series capacitor in the base We recommend that the emitter and receiver be immersed
(Fig. 4). in a clear encapsulating material so that the light emitted and
IR light receiver received isn’t lost due to material changes. This helps avoid
The receiver is configured as a common collector that simply unintended attenuation, and helps prevent a false positive in
converts the input light pulses into a voltage in R2 (Fig. 5). The which condensation on the inside of the car sets off the rain
voltage drop in R2 will typically be in the form of pulses. For sensor.
our purposes, these need to be translated into a dc level. We can account for the added challenge of detecting ice by
The easiest way to do this is to filter the signal using an RC adding a barrier to the center and adjusting the angle of the
low-pass filter, with a cutoff frequency two decades before 1 emitter and receiver.
kHz (therefore, 1 Hz) to ensure the 1-kHz rejection. The cutoff
frequency is calculated as: CIRCUIT ENHANCEMENT
FC = [1/(2 × πRC)] This section discusses how to enhance the receiver to deal
If a 100-kΩ resistor is used: with the challenge posed by an icy windshield. The previous
C = [1/(2 × π × 100 kΩ × 1 Hz)] receiver design was shown in Fig. 5. The low-pass filter with
C = 0.795 µF R3 and C1 was optimized for water-only sensing.
We can try for 1 μF, resulting in a cut-off frequency of: To account for the change in the angle of reflection and the
FC = 1.59 Hz presence of encapsulating material, we can change the value
4 ELECTRONICDESIGN..COM
of R2. The gain of the circuit is directly
proportional to R2’s value. For practical
(a) Duty Cycle 30.7% @ 715 mV in C1. Initial state
purposes, a 500-kΩ potentiometer
would be ideal to select the proper
value for the circuit. Figure 9 shows an
updated topology with the potentiometer
included.
The waveforms in Figure 10 show the
different behaviors of the circuit with
varying conditions.
CONCLUSION
In this article, we were able to create (b)
Duty Cycle 31.5% @ 585 mV Water applied
a rain and ice sensor using a Silego
GreenPAK SLG46620, a configurable
mixed-signal IC (CMIC), and a few
external components. This system is
able to monitor when a sheet of glass
has either water or ice on its surface. The
system can then generate a PWM signal
to control a motor that wipes away the
liquid from the glass surface.
5 ELECTRONICDESIGN..COM