Ultrasonic Sensing Basics
Ultrasonic Sensing Basics
ABSTRACT
Ultrasonic sensors use sound waves above the 20 kHz range to detect objects in proximity, similar to how
bats use echolocation to maneuver without colliding into obstacles. In the automotive space, ultrasonic
sensors are prevalent for ADAS (Advanced Driver-Assistant Systems) applications, specifically for parking
assist where 4–16 sensors are used to detect obstacles when parking a vehicle. In the industrial space,
ultrasonic sensors are used in robotics and other applications that require reliable presence, proximity, or
position sensing. This application report discusses what ultrasonic time-of-flight sensing is, as well as
system considerations and what additional factors affect ultrasonic sensing.
Contents
1 What is Ultrasonic Time-of-Flight Sensing? .............................................................................. 1
1.1 Principles of Ultrasound ............................................................................................ 2
1.2 Why Use Ultrasonic Sensing? .................................................................................... 2
1.3 How Does Ultrasound Compare to Other Sensing Technologies? .......................................... 3
1.4 Typical Ultrasonic-Sensing Applications ......................................................................... 3
2 Ultrasonic System Considerations ......................................................................................... 4
2.1 Introduction to the Ultrasonic System ............................................................................ 5
2.2 The Ultrasonic Echo and Signal Processing .................................................................... 5
2.3 Transducer Types .................................................................................................. 7
2.4 Transducer Topologies ............................................................................................. 8
2.5 Transducer Frequencies ........................................................................................... 8
2.6 Transducer Drive (Transformer Drive & Direct Drive) and Current Limit .................................... 9
2.7 Pulse Count.......................................................................................................... 9
2.8 Minimum Detection Range ....................................................................................... 10
3 What Factors Influence Ultrasonic Sensing? ........................................................................... 10
3.1 Transmission Medium ............................................................................................ 10
3.2 Acoustic Impedance .............................................................................................. 10
3.3 Radar Cross Section .............................................................................................. 12
3.4 Ambient Conditions (Temperature, Humidity, Debris) ........................................................ 12
4 Device Selection ............................................................................................................ 12
5 Additional Resources ...................................................................................................... 13
Trademarks
All trademarks are the property of their respective owners.
The ultrasonic sensor is a piezoelectric transducer, which is able to convert an electrical signal into
mechanical vibrations, and mechanical vibrations into an electrical signal. Therefore, in a monostatic
approach, the ultrasonic sensor is a transceiver which operates as both a speaker and microphone at a
single frequency.
The sensor is able to capture the difference in time between the emitted and received echo. Because the
speed of sound is a known variable, the captured round-trip time can be used to calculate the distance
between the sensor and object. Equation 1 shows the Ultrasonic Distance Calculation.
tRoundTrip u VSound
dOneWay
2 (1)
This method of ultrasonic sensing is a time-of-flight measurement based on the propagation time of
sound. Note that the velocity of sound through air varies by temperature. In dry air at 20°C (68°F), the
speed of sound is 343 m/s, or a kilometer in 2.91 s. For more information on the relationship between the
velocity of sound and temperature, see Section 3.4.
To view TI's full proximity sensing table, refer to TI’s proximity sensing technology infographic.
Further reading: Ultrasonic Terrain-Type and Obstacle Detection for Robotic Lawn Mowers tech note
(SLAA910).
• Proximity Detection: A significant change to the ultrasonic echo signature corresponds to a physical
change to the sensing environment. This binary approach of ultrasonic sensing is less dependent on
range, and more dependent on echo signature stability.
Examples: Cliff and edge detection in robots, object detection, vehicle detection in parking space,
security, and surveillance systems
Further reading: Using Ultrasonic Technology for Smart Parking and Garage Gate Systems tech note
(SLAA911).
• Surface Type Detection: Using raw ultrasonic echo data, and not the time-of-flight measurement,
material softness and hardness can be indirectly measured with ultrasonic measurements. Ultrasonic
sound waves bounce off harder surfaces towards the transducer with fewer losses, which provides a
stronger echo response in return. Softer objects, like foam and carpet, absorb many of the sound
waves and provide a weaker echo response.
Examples: Floor type detection in vacuum robots, terrain type detection in robotic lawn mowers
Further reading: Ultrasonic Floor-Type and Cliff Detection on Automated Vacuum Robots tech note
(SLAA909).
The analog front end portion is responsible for driving the transducer, as well as amplifying and filtering
the received echo data to make it ready for further processing. Signal processing is either fully done by
the control unit in discrete and AFE solutions, or shared between the control unit and the integrated DSP
in the ASSP solution with its in-chip intelligence.
After the signal is digitized, it is ready to go to a digital signal processor (DSP) or an MCU for further
processing. First, it goes through a bandpass filter to reduce any out-of-band noise.
The next stage is to rectify the signal to extract the absolute value of the signal as shown in Figure 7.
After rectification, there is often a peak hold in place before a low-pass filter is applied to ensure the peak
amplitude of the rectified signal is not filtered out. Together with the peak hold and low-pass filter, a
demodulated output can be produced as shown in Figure 8. This makes it easy to apply thresholds to
further customize the signal to eliminate noise and extract time-of-flight data and echo width and
amplitude information. The demodulated signal is also referred to as an envelope signal.
The relationship between frequency, resolution, directivity, attenuation, and distance can be observed with
the following relation:
↑ Frequency :: ↑ Resolution :: ↑ Narrower Directivity :: ↑ Attenuation :: ↓ Distance
Transducers can have narrow (15°) to wide field of views (180°). The higher the frequency, the narrower
the field of view. A narrow field of view using a low-frequency transducer can also be achieved by adding
a "horn" around the transducer to direct its echoes into a more narrow pattern.
2.6 Transducer Drive (Transformer Drive & Direct Drive) and Current Limit
There are two ways to drive a transducer: in transformer mode or in direct drive mode. This is determined
based on the maximum drive voltage (thus a higher current limit) of the selected transducer. Although
direct drive is the lower-cost driving technique, it is typically intended for short range, open-top
applications. Transformer drive maximizes closed-top transducer requirements (beyond 100 Vpp), but it
also requires additional calibration at mass production. Figure 12 shows the non-linear relationship
between transducer (XDCR) drive voltage, and the percent of the sound pressure level that is transmitted.
Note that blindspot lengths increase with higher current limits.
The difference in acoustic impedance (Z) between two objects is defined as impedance mismatch (see
Equation 5). The greater the impedance mismatch, the greater percentage of energy is reflected at the
boundary between the two mediums.
2
§ Z2 Z1 ·
Reflection Coefficient R ¨ ¸
© Z2 Z1 ¹ (5)
Example 1: Air and skin:
The acoustic impedance of air is .00429 and the acoustic impedance of skin is 1.6. Putting these values in
the reflection coefficient yields Equation 6:
2 2
§ ZSkin Z Air · § 1.6 0.00429 ·
¨ ¸ ¨1.6 0.99
© ZSkin Z Air ¹ © 0.00429 ¸¹ (6)
Performing this calculation at every boundary dictates how much energy is reflected back, how much is
absorbed within the material, and how much is permeated through.
Example 2: Water and steel:
Similarly, for liquid-based detection, a water and steel boundary reflects back 88% of the transmitted echo
using the same equation (Equation 6).
4 Device Selection
It is important to choose an ultrasonic solution based on the system where it will reside. Table 3 shows
TI's ultrasonic-sensing products:
5 Additional Resources
• BOOSTXL-PGA460 product page
• Texas Instruments, Ultrasonic Sensing with the PGA460-Q1 training video
• Texas Instruments, PGA460 Frequently Asked Questions (FAQ) and EVM Troubleshooting Guide
application report (SLAA733)
• Texas Instruments, PGA460 Ultrasonic Module Hardware and Software Optimization application report
(SLAA732)
• Texas Instruments, PGA460 Transformer and Transducer Listings zip file (SLAC787)
Revision History
NOTE: Page numbers for previous revisions may differ from page numbers in the current version.
TI PROVIDES TECHNICAL AND RELIABILITY DATA (INCLUDING DATASHEETS), DESIGN RESOURCES (INCLUDING REFERENCE
DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND OTHER RESOURCES “AS IS”
AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION ANY
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD
PARTY INTELLECTUAL PROPERTY RIGHTS.
These resources are intended for skilled developers designing with TI products. You are solely responsible for (1) selecting the appropriate
TI products for your application, (2) designing, validating and testing your application, and (3) ensuring your application meets applicable
standards, and any other safety, security, or other requirements. These resources are subject to change without notice. TI grants you
permission to use these resources only for development of an application that uses the TI products described in the resource. Other
reproduction and display of these resources is prohibited. No license is granted to any other TI intellectual property right or to any third
party intellectual property right. TI disclaims responsibility for, and you will fully indemnify TI and its representatives against, any claims,
damages, costs, losses, and liabilities arising out of your use of these resources.
TI’s products are provided subject to TI’s Terms of Sale (www.ti.com/legal/termsofsale.html) or other applicable terms available either on
ti.com or provided in conjunction with such TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable
warranties or warranty disclaimers for TI products.
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2020, Texas Instruments Incorporated