norr@manorshi.com        +86-519-89185720
1
News Center

Detailed explanation of ultrasonic sensor ranging method

Views: 352     Author: Site Editor     Publish Time: 2020-05-22      Origin: Site

facebook sharing button
twitter sharing button
line sharing button
wechat sharing button
linkedin sharing button
pinterest sharing button
whatsapp sharing button
kakao sharing button
snapchat sharing button
telegram sharing button
sharethis sharing button

Ultrasonic Sensor Ranging Method: Working Principle, Formula and Applications

In daily production and life, ultrasonic ranging sensors are widely used for car reversing radar, robot obstacle avoidance, construction measurement, liquid level detection, well depth measurement, pipeline length measurement, and other non-contact distance measurement applications.

The core ultrasonic sensor ranging method is time-of-flight measurement. The sensor emits an ultrasonic pulse, receives the echo reflected from a target, measures the round-trip time, and calculates distance from the speed of sound.

Common ultrasonic ranging systems are usually based on a single-chip microcomputer, embedded controller, or CPLD. No matter which control platform is used, the basic design must first understand ultrasonic echo ranging, sound velocity, temperature compensation, blind zone, and target reflection conditions.

Working Principle of Ultrasonic Sensor Ranging

Working principle of ultrasonic sensor ranging

An ultrasonic sensor converts electrical signals into ultrasonic waves and converts received ultrasonic echoes back into electrical signals. Ultrasonic waves are mechanical waves with frequencies above 20kHz. They have strong directionality, slow energy loss, and relatively long propagation distance in air, liquid, or solid media.

When an ultrasonic wave reaches an obstacle, interface, liquid surface, or solid target, part of the wave is reflected back as an echo. The receiving element detects this echo, and the control circuit calculates the distance from the measured travel time.

Because ultrasonic distance measurement is non-contact, low cost, and adaptable to many materials, it provides a useful balance between real-time response, accuracy, reliability, and price.

Ultrasonic Distance Measurement Formula

The most common ultrasonic ranging method is the round-trip time detection method, also called time-of-flight or ToF measurement. The sensor sends an ultrasonic pulse in one direction and starts timing. When the echo returns, the system stops timing and calculates the one-way distance.

If s is the distance between the sensor and the measured target, t is the measured round-trip time, and v is the propagation speed of sound, the distance formula is:

s = v × t / 2

The division by 2 is necessary because the ultrasonic pulse travels from the sensor to the target and then returns from the target to the sensor. The measured time is the total round-trip time, not the one-way travel time.

Temperature Compensation for Ultrasonic Ranging

For high-accuracy ultrasonic distance measurement, temperature compensation is important because the speed of sound in air changes with temperature. Warm air increases sound velocity, while cold air decreases it.

A commonly used temperature compensation formula is:

v = 331.4 + 0.607T

In this formula, T is the ambient temperature in °C, and v is the speed of sound in m/s. Adding temperature compensation can reduce measurement error, especially in outdoor, industrial, or variable-temperature environments.

Common Ultrasonic Ranging Methods

Method How It Works Best Use
Time-of-flight method Measures the time between ultrasonic transmission and echo reception. Distance measurement, obstacle detection, liquid level measurement.
Phase detection method Calculates distance from the phase difference between emitted and received waves. Short-range and higher-resolution measurement systems.
Echo amplitude method Analyzes the strength of the reflected ultrasonic signal. Target detection, material reflection analysis, signal quality judgment.

Key Factors Affecting Ultrasonic Sensor Accuracy

Factor Effect on Measurement Optimization Tip
Temperature Changes the speed of sound and causes distance error. Use temperature compensation in the control algorithm.
Blind zone Very close targets may not be detected correctly because of transducer ringing. Choose a small blind area ultrasonic sensor for short-range measurement.
Target angle Angled surfaces may reflect the echo away from the receiver. Keep the sensor as perpendicular to the target surface as possible.
Target material Soft, porous, or sound-absorbing materials reduce echo strength. Test the actual target material during product validation.
Environmental noise Other ultrasonic sources or vibration may cause false readings. Use filtering, shielding, and suitable sampling logic.
Water, dust and corrosion Harsh environments can reduce sensor life and signal quality. Use waterproof and corrosion-resistant ultrasonic sensors when required.

Single Transmitter, Single Receiver and Multi-Head Designs

A common ultrasonic ranging structure uses one transmitting head and one receiving head. The transmitter emits ultrasonic waves, and the receiver detects the reflected echo. This structure is simple and suitable for many general distance measurement applications.

Some systems use multiple transmitting heads with one receiving head, or multiple sensor modules arranged in an array. This design can improve detection coverage, reduce blind spots, and support more complex measurement scenarios such as robot navigation or multi-point liquid level detection.

Applications of Ultrasonic Ranging Sensors

  • Car reversing radar and parking assistance systems.

  • Robot obstacle avoidance and automatic navigation.

  • Liquid level measurement in tanks, containers, and industrial equipment.

  • Well depth, pipeline length, and construction site measurement.

  • Object detection in automation equipment and production lines.

  • Waterproof distance sensing in outdoor or humid environments.

Advantages of Ultrasonic Sensor Ranging

Ultrasonic ranging sensors are popular because they support non-contact measurement, have a simple working principle, and can detect many solid and liquid targets regardless of color or transparency. They are also cost-effective compared with some optical or laser measurement solutions.

With a small-angle and small-blind-zone ultrasonic sensor, the system can achieve more accurate measurement in compact spaces. Waterproof and corrosion-resistant designs also make ultrasonic sensors useful in liquid level, outdoor, and industrial applications.

Summary

The principle of ultrasonic distance measurement is to send ultrasonic waves toward a target, receive the reflected echo, measure the round-trip time, and calculate distance using the speed of sound. The basic formula is s = v × t / 2.

For more accurate ultrasonic ranging, designers should consider temperature compensation, blind zone, target angle, material reflection, environmental noise, and sensor installation. Correct sensor selection and signal processing can improve measurement stability in real applications.

Frequently Asked Questions About Ultrasonic Sensor Ranging

What is the ultrasonic sensor ranging method?

The ultrasonic sensor ranging method measures distance by sending an ultrasonic pulse, receiving the reflected echo, and calculating distance from the sound travel time. This is also called ultrasonic time-of-flight or echo ranging.

What is the formula for ultrasonic distance measurement?

The basic ultrasonic distance formula is s = v × t / 2. In this formula, s is distance, v is sound speed, and t is the measured round-trip time of the ultrasonic pulse.

Why does ultrasonic ranging divide the time by 2?

The sensor measures the total time for the ultrasonic wave to travel to the object and return. Because this is a round trip, the result must be divided by 2 to get the one-way distance between the sensor and the target.

How does temperature affect ultrasonic sensor accuracy?

Temperature changes the speed of sound in air. If the temperature changes but the system still uses a fixed sound velocity, the calculated distance will have error. Temperature compensation helps improve ultrasonic ranging accuracy.

What is the blind zone of an ultrasonic ranging sensor?

The blind zone is the minimum distance where the sensor cannot measure reliably. It is usually caused by transducer ringing after transmission. For short-range detection, choose an ultrasonic sensor with a small blind area.

Which materials are difficult for ultrasonic sensors to detect?

Soft, porous, sound-absorbing, very thin, or sharply angled surfaces can reduce echo strength. Foam, fabric, and angled objects may cause weak or unstable ultrasonic distance readings.

Where are ultrasonic ranging sensors commonly used?

Ultrasonic ranging sensors are commonly used in parking sensors, robot obstacle avoidance, liquid level measurement, industrial automation, construction measurement, pipeline detection, and non-contact distance measurement systems.

Table of Content