Analog Devices Circuit Note
Analog Devices Circuit Note
Analog Devices Circuit Note
CN-0343
Devices Connected/Referenced
ADuC7126
ADP3629
ADCMP670
ADP1613
AD8692
Low Cost, Low Noise, Dual CMOS Rail-toRail Output Operational Amplifiers
AD8541
ADP7104
ADM3483
Rev. A
Circuits from the Lab reference designs from Analog Devices have been designed and built by Analog
Devices engineers. Standard engineering practices have been employed in the design and
construction of each circuit, and their function and performance have been tested and verified in a lab
environment at room temperature. However, you are solely responsible for testing the circuit and
determining its suitability and applicability for your use and application. Accordingly, in no event shall
Analog Devices be liable for direct, indirect, special, incidental, consequential or punitive damages due
toanycausewhatsoeverconnectedtotheuseofanyCircuitsfromtheLabcircuits. (Continuedonlastpage)
CN-0343
Circuit Note
C13
270pF
2.5V
R4
16k
R5
560
400SR160
U4
5V
R6
47k
C10
82pF
C16
6.8nF
R10
560
2.5V
R11
560
3.3V
3.3V
R16
470k
R12
16k
R15
330k
C30
68pF
ADCMP670
R19
1k
+INA
U8A
1
AD8692
2
R2
470k
400mV
C22
100nF
J3
JLINK
INT
P3.2
U8B
PWM0
C36
100nF
U2
R29
100nF
6V
18V
J1
5V
ADP7104-5
VOUT
VIN
GND
U13
3V
ADP7104-3.3
VOUT
VIN
GND
U10
11765-001
PUSH
BUTTONS
ADP1613
BOOST
CIRCUIT
U7
R13
100k
U14
ADM3483
INT
INB
C28
10F
216 CHARACTERS
LCD DISPLAY
MC21605C6W
PWM1
U9
VREF
2.5V
U12
AD8541
R14
47
C39
470nF
R17
68k
OUTA
OUTB
1
AD8692
2
VREF
ADuC7126
400ST160
U4
C31 R18
56pF 82k
5V
R20
100k
3.3V
18V
U6
ADP3629
VREF
2.5V
C21
270pF
J2
RS-485
Figure 1. Ultrasonic Distance Sensor (Simplified Schematic: All Connections and Decoupling Not Shown)
CIRCUIT DESCRIPTION
ULTRASONIC DISTANCE
MEASURE SYSTEM
Rx
C AIR t
2
Tx
2
11765-002
CAIR t
Z 2 Z1
Z 2 Z1
where:
Z1 is the acoustic impedance of air.
Z2 is the acoustic impedance of the medium.
The acoustic impedance of liquids or solids is much greater
than that of air, therefore R ~ 1, and most of the sound is
reflected.
In a typical system, the ultrasonic transmitter is first driven and
emits a short burst at the resonant frequency of the transmitter.
The receiver then listens for the echo. When the echo is detected,
the time interval is measured by the processor and the distance
is calculated.
Rev. A | Page 2 of 7
Circuit Note
CN-0343
d MIN
C AIR tBLANK
2
Circuit Operation
The ultrasonic ceramic transmitter is a 400ST160 made by ProWave Electronics Corporation. The maximum driving voltage is
20 V rms (57 V p-p), and the resonant frequency is 40 kHz. The
transmitter is driven by the ADP3629 dual MOSFET driver
connected to the 18 V ADP1613 boost supply. This produces a
36 V p-p differential drive signal. The ADP3629 is driven by the
PWM0 and PWM1 outputs of the ADuC7126 precision analog
microcontroller. When the pulse-width modulation (PWM)
output is disabled, the outputs are high, which forces the
ADP3629 outputs to ground.
When the ceramic transmitter is driven with the 40 kHz pulse
train, it produces a sound wave at the self-resonant frequency of
40 kHz. When the 40 kHz drive signal is removed, it takes
approximately 1 ms for the transmitter to stop resonating. This
requires a blanking interval of about 2 ms to prevent the
receiver from false triggering.
The ADuC7126 precision analog microcontroller has an
ARM7TDMI core with 126 kB flash and 32 kB SRAM. The
ADuC7126 also contains precision analog peripherals on-chip,
including a 12-bit ADC, temperature sensor, reference, and
12-bit digital-to-analog converters (DACs). The ADuC7126 is
programmed to control the timing and readout functions as
well as to perform temperature compensation. The time between
the transmit and receive signals is determined by using the
ADuC7126 internal timer that operates on a 41 MHz clock.
The receiver consists of a Pro-Wave 400SR160 receiver followed
by a two-stage amplifier and a window comparator. The overall
circuit acts as a 40 kHz band-pass filter where C10/R6, C16/R10,
C30/R15||R17, and C31/R16||R18 are the high-pass sections,
and U8A (C13/R4) and U8B (C21/R12) are the low-pass
sections. Each stage is tuned for 3 dB bandwidth of 40 kHz.
The calculated gain of each stage at 40 kHz is as follows:
Rev. A | Page 3 of 7
CN-0343
Circuit Note
For the V+INA pin of the ADCMP670,
0.97 4.926
R17
409 mV
v 346.13 m/s
8.65 mm
f
40 kHz
2.
3.
1.03 5.722
R18
383.5 mV
R16
5.732 5.722
R18
Assuming nominal values for the resistors and the reference
voltage, V+INA = 427.1 mV, VINB = 371.4 mV, the window voltage
is approximately 55.7 mV.
The values of C30 and C31 are selected such that they form 40 kHz
high-pass filters with R15||R17 and R16||R18, respectively.
R15
4 . 853 4 . 926
R17
Rev. A | Page 4 of 7
Circuit Note
+6V
CN-0343
L1
SLF6025T-470
C24
100nF
C25
47F
D2
1N4448W
47H
C19
100nF
U7
ADP1613
+5V
VIN
C17
100nF
+18V
C20
22F
R9
270k
SW
EN
SS
R8
20k
C12
680pF
R3
100k
C11
39pF
TOP VIEW
BOTTOM VIEW
S1
S2
S3
S4
S5
S6
11765-004
11765-005
C15
33nF
FB
COMP
GND
11765-003
FREQ
Rev. A | Page 5 of 7
CN-0343
Circuit Note
Software Operation
The EVAL-CN0343-EB1Z comes preloaded with the code required
to make distance measurements. The code can be found in the
CN0343 Design Support Package at www.analog.com/CN0343DesignSupport in the CN0343-SourceCode.zip file.
The user interface consists of the six push button keys, as shown
in Figure 4.
COMMON VARIATIONS
S1: UP
S2: LEFT
S3: RIGHT
S6: DOWN
S4: OK
S5: CANCEL
After power-on, the LCD shows the welcome screen for about
three seconds:
ANALOG DEVICES
EVAL-CN0343-EB1Z
After the welcome screen, the circuit enters working mode and
displays the home screen, which shows the target distance and
the temperature. The temperature displayed is that measured by
the ADuC7126. The distance measurement is corrected for the
measured temperature.
Distance: X.XXX m
Temp: YY.YC
Equipment Needed
The following equipment is needed:
Setup
Sensor: XX.XC
Set to: YY.YC
The temperature set to value (up to 50C) is set as follows: use
the LEFT and RIGHT keys to select the numerical digit, and
then the UP and DOWN keys to increase or decrease the digit.
Repeat this for each temperature digit.
The temperature set to feature allows the user to offset the
temperature measured by the ADuC7126 internal sensor and
make it agree with the actual air temperature measured for
higher accuracy.
Once the desired temperature offset is entered, press the OK key.
Note that pressing the CANCEL key at any time cancels the
current operation and returns the user to the previous screen.
Rev. A | Page 6 of 7
Circuit Note
CN-0343
LEARN MORE
EVAL-CFTL-6V-PWRZ
J1
J2
RS485
RS485 TO RS232
ADAPTER
RS232
PC
11765-006
EVAL-CN0343-EB1Z
REVISION HISTORY
8/15Rev. 0 to Rev. A
Changed query xxx\r\n to xxx query\r\n, Setup Section ............ 6
4/14Revision 0: Initial Version
(Continued from first page) Circuits from the Lab reference designs are intended only for use with Analog Devices products and are the intellectual property of Analog Devices or its licensors.
While you may use the Circuits from the Lab reference designs in the design of your product, no other license is granted by implication or otherwise under any patents or other intellectual
property by application or use of the Circuits from the Lab reference designs. Information furnished by Analog Devices is believed to be accurate and reliable. However, Circuits from the
Lab reference designs are supplied "as is" and without warranties of any kind, express, implied, or statutory including, but not limited to, any implied warranty of merchantability,
noninfringement or fitness for a particular purpose and no responsibility is assumed by Analog Devices for their use, nor for any infringements of patents or other rights of third parties
that may result from their use. Analog Devices reserves the right to change any Circuits from the Lab reference designs at any time without notice but is under no obligation to do so.
20142015 Analog Devices, Inc. All rights reserved. Trademarks and
registered trademarks are the property of their respective owners.
CN11765-0-8/15(A)
Rev. A | Page 7 of 7