Ultrasonic ranging sensor

Publish Time: 2020-04-14     Origin: Site

What Is an Ultrasonic Ranging Sensor?

An ultrasonic ranging sensor is a non-contact sensing device that measures the distance between the sensor and a target by transmitting ultrasonic sound pulses and measuring how long the reflected echo takes to return.

Ultrasonic waves have frequencies above the normal human hearing range of approximately 20 kHz. Air-coupled distance sensors commonly operate around 40 kHz, although other frequencies are used according to the required measuring range, resolution, transducer size, beam pattern and environmental conditions.

Unlike optical distance sensors, an ultrasonic sensor does not depend primarily on the target’s color or visible-light reflectivity. It can therefore detect many transparent, translucent, dark or glossy objects, provided that the target returns a sufficiently strong acoustic echo toward the receiver.

Quick answer: An ultrasonic ranging sensor sends a high-frequency sound pulse toward a target, receives the reflected echo and calculates distance from the round-trip travel time. The basic formula is Distance = Speed of Sound × Echo Time ÷ 2.

Ultrasonic ranging technology is widely used in robot obstacle detection, automotive parking assistance, liquid-level measurement, automatic doors, industrial automation, security systems, material handling and object-presence detection.

Manorshi supplies ultrasonic sensors and transducers for distance measurement, object detection, parking systems, level sensing and customized electronic applications.

How Does an Ultrasonic Ranging Sensor Work?

Most ultrasonic distance sensors use the time-of-flight principle, also called the echo transit-time method. The system measures the time between transmitting an ultrasonic pulse and receiving its reflected echo.

  1. The control circuit generates a short electrical burst at or near the ultrasonic transducer’s rated frequency.

  2. The transmitting transducer converts the electrical signal into ultrasonic mechanical vibration.

  3. The ultrasonic pulse travels through the air toward the target.

  4. Part of the sound energy is reflected from the target surface.

  5. The receiver converts the returned acoustic echo into a small electrical signal.

  6. The signal-conditioning circuit amplifies, filters and detects the echo.

  7. A microcontroller or timing circuit measures the round-trip travel time and converts it into distance.

Ultrasonic Distance Measurement Formula

Distance = (Echo Time × Speed of Sound) ÷ 2

d = (t × c) ÷ 2

  • d is the one-way distance between the sensor and the target.

  • t is the measured round-trip time from transmission to echo reception.

  • c is the speed of sound in the measurement medium.

  • The result is divided by two because the sound travels from the sensor to the target and then back to the sensor.

Ultrasonic Ranging Calculation Example

At approximately 20°C, the speed of sound in dry air is about 343 m/s. If the measured echo time is 5.83 milliseconds, the calculated distance is:

Distance = 0.00583 seconds × 343 m/s ÷ 2

Distance ≈ 1 meter

This example assumes a stable air temperature and a clearly detectable echo. Real systems may also apply temperature compensation, signal filtering, threshold detection, calibration and multi-sample averaging.

Structure and Piezoelectric Working Principle

The core of many ultrasonic ranging transducers is a piezoelectric ceramic element attached to a metal diaphragm or resonating plate. The assembly may also include a resonator, acoustic housing, terminals, damping material, protective mesh and environmental sealing components.

When an alternating electrical voltage is applied to the piezoelectric ceramic, the material expands and contracts. This mechanical deformation causes the diaphragm to vibrate and radiate ultrasonic waves into the air.

The reverse piezoelectric process occurs during reception. Returning ultrasonic pressure waves vibrate the diaphragm and piezoelectric element, generating a small electrical signal that can be amplified and processed by the receiving circuit.

A funnel-shaped or horn-shaped resonator can improve the transfer of acoustic energy between the piezoelectric element and the surrounding air. Its geometry also influences sensitivity, resonant frequency and beam pattern.

Important distinction: Air-coupled ultrasonic ranging normally measures echoes reflected from a target surface. It should not be confused with medical imaging or ultrasonic nondestructive testing systems designed to transmit sound through liquids or solid materials.

Ultrasonic Transmitter, Receiver and Transceiver Types

An ultrasonic ranging system may use a separate transmitter and receiver or a single transceiver that alternates between transmitting and receiving.

Configuration Working Method Typical Advantages Design Considerations
Separate transmitter and receiver One transducer continuously or intermittently transmits while the second transducer receives echoes. Separate transmit and receive paths, flexible circuit design and no need to switch one element between modes. Sensor spacing, alignment, acoustic coupling and direct transmitter-to-receiver crosstalk must be controlled.
Single ultrasonic transceiver One element transmits the pulse and then switches to receive mode. Compact mechanical design and easier alignment between the transmitting and receiving axes. The system must wait for mechanical ringing to decay before detecting close-range echoes.
Through-beam pair The transmitter and receiver face each other, and the system detects when an object interrupts the sound path. Fast response and reliable detection of transparent films, bottles and rapidly moving objects. This configuration primarily detects presence rather than calculating reflective target distance.

Example 40 kHz Ultrasonic Ranging Sensor Specifications

The following table preserves the example 40 kHz ultrasonic transmitter and receiver parameters from the original page. These values should not be treated as universal specifications for every ultrasonic sensor. Always confirm the final part number, test conditions and product datasheet before designing the drive circuit or approving a production component.

Specification Example Value
Center frequency 40 ± 1.0 kHz
Transmitting sound pressure level 100 dB minimum
Receiving sensitivity −72 dB minimum
Echo sensitivity ≥230 mV
Ringing time 1.2 ms maximum
Capacitance at 1 kHz 2400 pF ±20%
Maximum continuous driving voltage 20 Vrms
Total beam angle 47° typical at −6 dB
Decay time ≤1.2 ms
Operating temperature −30°C to +80°C
Storage temperature −30°C to +80°C

Ultrasonic ranging transducer structure and dimensions

40 kHz ultrasonic transmitter and receiver pair

Main Performance Indicators of Ultrasonic Sensors

Ultrasonic ranging performance depends on the transducer, drive circuit, receiving circuit, signal-processing algorithm, target and installation environment. The following parameters should be evaluated together rather than independently.

Center Frequency and Resonant Frequency

Center frequency is the frequency at which the transducer is designed to operate efficiently. For a nominal 40 kHz ultrasonic transducer, the transmitting circuit normally generates a burst close to 40 kHz, while the receiver is filtered around a similar frequency range.

Driving too far away from the resonant region can reduce transmitted acoustic energy and receiving sensitivity. Component tolerance, temperature, mounting and housing design may also shift the effective response.

Transmitting Sound Pressure Level

Transmitting sound pressure level indicates the strength of the ultrasonic output under specified test conditions. A higher value can support stronger echoes or longer sensing distances, but the result depends on drive voltage, frequency, waveform, measurement distance and test fixture.

Sound pressure values should only be compared when the datasheets use equivalent measurement conditions.

Receiving Sensitivity

Receiving sensitivity describes how effectively the receiver converts incoming ultrasonic pressure into an electrical signal. Higher sensitivity can improve weak-echo detection, but the complete system also depends on amplifier noise, filter bandwidth, gain, threshold settings and electromagnetic interference.

Echo Sensitivity and Signal-to-Noise Ratio

Echo sensitivity represents the received signal produced under a defined target and test arrangement. A useful ranging system must distinguish the real echo from electrical noise, mechanical vibration, direct acoustic coupling and secondary reflections.

Automatic gain control, band-pass filtering, envelope detection, correlation processing and adaptive thresholds may be used to improve echo recognition.

Ringing Time, Decay Time and Blind Zone

After the transmitting burst ends, the transducer and mechanical structure continue vibrating briefly. This residual vibration is called ringing or ring-down.

During this recovery period, a close target echo may be hidden by the much stronger residual transmitting signal. The corresponding minimum measurable distance is called the blind zone, dead zone or minimum sensing distance.

Shorter ringing time generally supports shorter minimum detection distances, although the final blind zone also depends on circuit recovery, transmitter voltage, damping, threshold settings and signal-processing methods.

Beam Angle and Sound Cone

An ultrasonic transducer does not produce an infinitely narrow straight beam. It radiates acoustic energy through a three-dimensional sound cone containing a main lobe and smaller side lobes.

A wider beam can detect objects across a larger area but may also receive unwanted reflections from nearby walls, brackets, pipes or enclosure surfaces. A narrower beam provides better directional selectivity but requires more accurate sensor alignment.

Capacitance and Drive Voltage

A piezoelectric ultrasonic transducer behaves largely as a capacitive electrical load. Its capacitance affects driver current, impedance matching, switching losses and resonant circuit design.

The applied voltage must remain within the transducer’s rated continuous and pulse-drive limits. Excessive drive voltage can cause overheating, depolarization, mechanical damage or shortened service life.

Operating and Storage Temperature

Temperature affects the speed of sound, piezoelectric characteristics, resonance, sensitivity, adhesive materials and electronic components. Confirm both the operating-temperature range and the storage-temperature range for the actual sensor model.

Factors That Affect Ultrasonic Ranging Accuracy

Air Temperature

Temperature is one of the most important environmental variables because it changes the speed of sound. A commonly used approximation for dry air near normal atmospheric conditions is:

Speed of sound ≈ 331.3 + (0.606 × Temperature in °C) m/s

A system that always assumes 343 m/s can develop a measurable distance error when the actual temperature changes. For applications requiring stable absolute accuracy, place a temperature sensor near the acoustic path and update the speed-of-sound calculation.

Target Size and Surface Area

Large targets generally return more acoustic energy than small targets. A target that is narrower than the active sound cone may produce a weak echo or allow the sensor to detect a larger object behind it.

Maximum range values are usually measured using a specified flat reference target. The practical range for small wires, narrow pipes, curved objects or irregular parts may be shorter.

Target Angle and Surface Orientation

A flat, smooth target provides the strongest return when its surface is approximately perpendicular to the sensor axis. If the surface is tilted, much of the acoustic energy may be reflected away from the receiver.

Rough surfaces scatter sound in multiple directions and may tolerate a greater angular variation, but the returned energy can be less predictable.

Target Material and Acoustic Absorption

Hard surfaces such as metal, glass, rigid plastic, wood and calm liquid surfaces often produce useful reflections. Soft, porous or fibrous materials such as foam, thick fabric, cotton and loose insulation can absorb ultrasonic energy and reduce the detection range.

Transparent objects are often detectable because ultrasound is not dependent on visible transparency. However, a smooth glass or plastic surface still needs a suitable angle to reflect the sound back toward the sensor.

Blind Zone and Minimum Measuring Distance

Objects located inside the specified blind zone cannot be measured reliably. The sensor may report no target, an unstable value or a false distance generated by ringing and internal reflections.

The installation must keep the closest expected target beyond the minimum sensing distance stated in the final sensor or module datasheet.

Wind, Airflow and Temperature Gradients

Strong airflow can alter the effective sound path, while rapidly changing temperature gradients can bend the acoustic wave or change its propagation speed along the measurement path.

Avoid mounting a precision ranging sensor directly beside hot-air outlets, cooling fans, steam vents or rapidly fluctuating thermal sources.

Humidity, Rain and Condensation

Moderate humidity generally has less effect than temperature, but moisture can still influence acoustic attenuation and sensor operation. Water droplets, condensation, ice or contamination on the transducer face may block or distort the sound path.

Outdoor or high-humidity applications should use an appropriately sealed or waterproof ultrasonic transducer rather than assuming an open-type sensor is environmentally protected.

Multiple Reflections and Nearby Structures

Walls, mounting brackets, protective covers, tank edges and machine frames can return unwanted echoes. These reflections may arrive before or after the intended target echo and cause false measurements.

Keep the main sound cone clear and test the complete sensor assembly in the final enclosure rather than evaluating only the bare transducer.

Ultrasonic Crosstalk Between Sensors

When several ultrasonic sensors operate close together, one receiver may detect a pulse transmitted by another sensor. This is called acoustic crosstalk and can create incorrect distance readings.

Use synchronized triggering, sequential measurement, adequate spacing, physical acoustic isolation or coded transmission methods to reduce interference.

How to Improve Ultrasonic Distance Measurement Accuracy

  1. Use temperature compensation. Measure the air temperature near the acoustic path and update the speed-of-sound calculation.

  2. Keep the target outside the blind zone. Verify the minimum measuring distance under the actual drive voltage and circuit conditions.

  3. Align the target correctly. Position smooth, flat targets as close as practical to perpendicular to the sensor axis.

  4. Keep the sound cone clear. Prevent brackets, covers and enclosure walls from entering the detection field.

  5. Use band-pass filtering. Filter around the transducer’s operating frequency to reduce broadband electrical and acoustic noise.

  6. Apply digital averaging or median filtering. Multiple measurements can reduce random noise and reject isolated outliers.

  7. Control transmitter timing. Allow sufficient time for the previous echo to disappear before sending another pulse.

  8. Synchronize multiple sensors. Trigger sensors sequentially or use a controlled synchronization method to reduce crosstalk.

  9. Calibrate the complete assembly. Test the sensor, enclosure, mounting structure and electronics together at known distances.

  10. Test representative targets. Validate performance using the actual object size, material, angle, speed and environmental conditions.

Types of Ultrasonic Ranging Sensors

Open-Type Ultrasonic Transducers

Open-type ultrasonic sensors normally use a metal housing with an exposed acoustic opening. They are commonly selected for indoor electronics, development boards, robots, object detection and cost-sensitive distance-measurement systems.

They can provide efficient acoustic transmission but are generally not designed for direct exposure to rain, water spray, condensation or severe contamination unless otherwise specified.

Waterproof Ultrasonic Sensors

Waterproof or weather-resistant ultrasonic transducers use a sealed front surface and protective housing. They are suitable for automotive parking systems, outdoor equipment, liquid-level measurement, security products and industrial applications exposed to dust or moisture.

The protective structure changes the acoustic response, so the waterproof model must be matched with an appropriate drive frequency, voltage and receiving circuit.

Integrated Ultrasonic Sensor Modules

An integrated ultrasonic ranging module combines one or more transducers with transmitting electronics, receiving amplification, signal processing and a digital or analog output interface.

Modules simplify system development but provide less control over the internal waveform, gain and detection algorithm than a custom transducer-based circuit.

High-Frequency Ultrasonic Sensors

Higher-frequency ultrasonic transducers have shorter wavelengths and may support the detection of smaller features or more specialized measurements. However, higher-frequency sound is generally attenuated more strongly in air, which can reduce the practical sensing range.

Frequency should be selected according to range, target size, resolution, transducer diameter, environmental attenuation and system bandwidth rather than assuming that a higher frequency is always better.

Advantages and Limitations of Ultrasonic Ranging Sensors

Advantages Limitations
Non-contact distance and presence measurement Has a minimum sensing distance or blind zone
Can detect many transparent, dark and reflective objects Soft or porous materials may absorb the sound
Works without visible illumination Smooth angled targets may reflect the echo away
Can measure liquid level without contacting the liquid Foam, waves, turbulence or vapor may reduce reliability
Cost-effective for short- and medium-range applications Temperature compensation may be needed for accurate ranging
Available as open, waterproof, high-frequency and integrated models Multiple sensors may interfere with each other
Suitable for compact and integrated electronic systems Nearby structures can create secondary reflections

Ultrasonic Sensor vs Infrared, Photoelectric and LiDAR Sensors

No single sensing technology is ideal for every application. The appropriate choice depends on the target, required range, response speed, resolution, lighting conditions, environmental exposure and system cost.

Comparison Ultrasonic Sensor Infrared or Photoelectric Sensor LiDAR or Laser Distance Sensor
Measurement principle Sound time of flight Reflected or interrupted light Laser or optical time of flight
Target color sensitivity Generally low Can be significant Depends on optical reflectivity
Transparent target detection Often effective with suitable target angle May require a specialized optical sensor Can be difficult for clear materials
Beam size Relatively broad sound cone Usually narrower Very narrow spot or scanning beam
Response speed Limited by sound travel time Generally fast Generally fast
Main environmental concern Temperature, airflow, absorption and acoustic reflections Ambient light, dust, color and optical contamination Optical contamination, reflectivity, fog and cost
Typical strength Reliable non-contact detection of varied materials Fast object detection and precise light spots Long range, narrow beam and high spatial precision

Common Applications of Ultrasonic Ranging Sensors

Robot Obstacle Detection and Navigation

Mobile robots, automated guided vehicles, service robots and educational platforms use ultrasonic sensors to detect walls, equipment, people and other obstacles without physical contact.

Automotive Parking Assistance

Waterproof ultrasonic transducers installed in vehicle bumpers measure the distance to nearby obstacles and support parking-warning systems, low-speed maneuvering and proximity alerts.

Liquid-Level Measurement

A downward-facing ultrasonic level sensor measures the distance from the sensor to the liquid surface. The controller can calculate the remaining liquid height when the tank dimensions and sensor position are known.

Foam, vapor, agitation, angled liquid surfaces and internal tank structures should be evaluated during application testing.

Industrial Object Detection

Ultrasonic sensors can detect products on conveyors, monitor stack height, confirm component presence, count containers and detect transparent bottles or films that may be difficult for standard optical sensors.

Automatic Doors and Security Systems

Ultrasonic detection can identify movement or presence near doors, entrances, restricted areas and alarm systems without requiring visible illumination.

Drone Altitude and Landing Assistance

Short-range ultrasonic sensors can measure the distance between a drone and the ground during low-altitude hovering or landing. Rotor airflow, surface angle, grass and sound interference must be considered.

Smart Appliances and Sanitary Equipment

Ultrasonic proximity detection can be integrated into dispensers, household appliances, control panels, waste bins and other products requiring touch-free activation or level monitoring.

How to Select an Ultrasonic Ranging Sensor

Selecting a suitable ultrasonic sensor requires more than choosing a frequency. Provide the supplier with the complete application conditions so that the acoustic, electrical and mechanical design can be evaluated together.

Selection Item Questions to Confirm
Measurement range What are the minimum and maximum target distances?
Target What are the target’s material, size, shape, angle and movement speed?
Frequency Is 40 kHz appropriate for the required range and target size?
Beam angle Is a wide detection area or a narrow directional beam required?
Environment Will the sensor encounter rain, condensation, dust, chemicals, wind or extreme temperatures?
Accuracy and resolution What measurement error and repeatability can the application accept?
Response time How quickly must the system detect or track the target?
Electrical interface Is a bare transducer, transmitter-receiver pair, analog output or digital module required?
Drive circuit What voltage, burst waveform, amplifier and receiver architecture will be used?
Mechanical design What diameter, height, terminal, cable, connector and mounting method are required?
Quantity and customization What are the prototype quantity, annual volume and custom-performance requirements?

Ultrasonic Sensor Installation Checklist

  • Keep the complete sound cone clear of enclosure walls and mounting brackets.

  • Do not cover the acoustic opening with ordinary plastic, thick fabric or unsuitable mesh.

  • Keep the nearest target outside the specified dead zone.

  • Align smooth targets as close as possible to perpendicular to the sensing axis.

  • Use vibration isolation when the sensor is installed near motors, pumps or mechanical actuators.

  • Keep high-current switching traces and noisy power circuits away from the receiver input.

  • Use suitable grounding, shielding and filtering for weak echo signals.

  • Prevent water, ice, oil or heavy contamination from collecting on the transducer face.

  • Trigger adjacent ultrasonic sensors sequentially to reduce acoustic interference.

  • Calibrate and validate the sensor after it is installed in the final product housing.

Choosing a 40 kHz Ultrasonic Sensor from Manorshi

Manorshi provides open-type, waterproof, high-frequency, parking-assistance and level-sensing ultrasonic products for manufacturers, electronics developers and industrial equipment suppliers.

Available evaluation parameters can include center frequency, sound pressure level, receiving sensitivity, beam angle, capacitance, ringing time, operating temperature, housing dimensions, terminals, lead wires and environmental protection.

View the 40 kHz waterproof ultrasonic transmitter and receiver or browse the complete Manorshi ultrasonic sensor range.

For a new application, provide the required measuring range, target material, operating environment, supply voltage, beam angle, dimensions, annual quantity and expected output. Contact Manorshi to discuss sensor selection, samples or customized ultrasonic transducer requirements.

Frequently Asked Questions About Ultrasonic Ranging Sensors

What is an ultrasonic ranging sensor?

An ultrasonic ranging sensor is a non-contact device that emits an ultrasonic pulse, detects the reflected echo and calculates the distance to the target from the sound’s round-trip travel time.

What is the ultrasonic distance measurement formula?

The basic formula is Distance = Echo Time × Speed of Sound ÷ 2. The calculation is divided by two because the measured time includes the outward trip to the target and the return trip to the receiver.

Why are many ultrasonic ranging sensors rated at 40 kHz?

Forty kilohertz provides a practical balance among transducer size, acoustic output, air attenuation, component availability and short- to medium-range detection. It is common but not suitable for every application.

What is the difference between an ultrasonic sensor and an ultrasonic transducer?

An ultrasonic transducer is the electromechanical component that converts electrical energy into ultrasound or ultrasound into an electrical signal. An ultrasonic sensor may refer to the transducer alone or to a complete module containing the transducer, driver, receiver and signal-processing electronics.

What is the blind zone of an ultrasonic sensor?

The blind zone is the minimum area in front of the sensor where reliable distance measurement is not possible. It is mainly caused by transducer ringing, circuit recovery time and the strong transmitted signal masking a close echo.

How does temperature affect ultrasonic distance measurement?

Temperature changes the speed of sound in air. If the calculation uses a fixed sound speed while the actual temperature changes, the reported distance will contain a proportional error. Temperature compensation improves absolute accuracy.

Can an ultrasonic sensor detect transparent glass or plastic?

Yes. Ultrasonic sensing does not rely on visible-light reflection, so it can detect many transparent materials. However, a smooth transparent surface must be positioned at a suitable angle so the acoustic echo returns to the receiver.

Can ultrasonic sensors detect soft materials?

Detection may be possible, but soft, porous and fibrous materials can absorb ultrasonic energy and produce weak echoes. The effective range should be tested using the actual material, thickness and surface condition.

Can an ultrasonic ranging sensor measure liquid level?

Yes. A sensor installed above a tank can measure the distance to the liquid surface without touching the liquid. Calm surfaces generally provide better results than foaming, turbulent, angled or heavily vapor-covered surfaces.

Does target color affect an ultrasonic sensor?

Target color normally has little direct effect because ultrasonic sensors use sound rather than visible light. Surface angle, hardness, size, texture and acoustic absorption are usually more important.

Can ultrasonic sensors work in darkness, dust or fog?

Darkness does not affect ultrasonic sensing. Moderate dust or fog may have less impact than on optical sensors, but heavy dust, water droplets, condensation or material covering the transducer face can still reduce performance.

Can an ultrasonic sensor work in a vacuum?

No. Ultrasonic sound is a mechanical wave and requires a medium such as air, gas, liquid or solid through which to propagate. A conventional air-coupled ultrasonic ranging sensor cannot operate in a vacuum.

Why does an ultrasonic sensor produce unstable readings?

Common causes include a target inside the blind zone, weak acoustic reflection, an angled or moving target, nearby structural echoes, electrical noise, temperature variation, airflow, transducer contamination and interference from other ultrasonic sensors.

How can multiple ultrasonic sensors operate without interference?

Trigger the sensors sequentially and allow enough time for each transmitted pulse and its echoes to decay before activating the next sensor. Synchronization, spacing, acoustic isolation and coded signals can also reduce crosstalk.

What beam angle should I choose for an ultrasonic distance sensor?

Choose a wider beam when the target position varies or a larger detection area is required. Choose a narrower beam when nearby objects must be excluded or more directional measurement is needed. Evaluate the complete sound-cone response rather than only one nominal angle.

Is an open-type or waterproof ultrasonic sensor better?

Open-type sensors are suitable for protected indoor applications and can offer efficient acoustic performance. Waterproof sensors are better for automotive, outdoor, liquid-level or high-humidity environments. The correct choice depends on environmental exposure, range and mechanical requirements.

What information is needed for a custom ultrasonic sensor?

Provide the center frequency, measuring range, target details, required beam angle, transmitting SPL, receiving sensitivity, drive voltage, circuit type, operating temperature, waterproof requirement, dimensions, mounting method, terminals, cable length, connector, certification requirements and annual order quantity.

Contact us

Why choose an active buzzer

Ultrasonic ranging sensor

Advantages Of Ic Magnetic Active Buzzer

How do ultrasonic sensors work?

How to use ultrasonic sensor with Arduino?