PDC Sensor for Drone Altimeter - Acoustic Signal Processing and Tilt Compensation for UAV Altitude Measurement
This technical article explores the acoustic signal processing and tilt compensation techniques for drone altimeters using PDC sensors. It covers the ground echo detection algorithms, the compensation for drone attitude, the handling of variable ground surfaces, and the integration with barometric and GPS sensors for seamless altitude estimation across different flight phases.
The acoustic signal processing for drone altimeters begins with the echo detection from the ground. The transmitted pulse is typically a burst of 8-10 cycles at 40 kHz. The received echo is amplified and filtered with a bandpass filter centered at 40 kHz. The envelope of the echo is extracted using rectification and low-pass filtering. The detection algorithm finds the first peak of the envelope that exceeds a dynamic threshold. The dynamic threshold is set based on the average noise level measured during idle periods. To handle different ground surfaces, the system uses a dual-threshold approach: a high threshold for strong reflectors (concrete) and a low threshold for weak reflectors (grass). The system also implements a time-gating to ignore echoes that arrive too late (beyond the maximum range) or too early (within the blind zone). The final distance is computed from the ToF of the detected echo, with temperature correction.

PDC Sensor
Tilt compensation for drone altimeters is essential when the drone is not level. During forward flight or in wind, the drone tilts, causing the ultrasonic beam to strike the ground at an angle, which increases the path length and gives an overestimated altitude. The compensation uses the drone's roll and pitch angles (from the IMU) to project the measured distance onto the vertical axis. The correction is Altitude = Measured_Distance × cos(roll) × cos(pitch), assuming small angles. For larger angles (e.g., > 20°), the beam may miss the ground entirely, and the sensor may not return a valid echo. In such cases, the system falls back to the barometric altitude or the inertial altitude estimate. The tilt compensation is updated at the sensor update rate (20-50 Hz) using the latest IMU data.
Handling variable ground surfaces requires the altimeter to adapt to different echo amplitudes. The system uses an automatic gain control (AGC) that adjusts the receiver gain based on the peak amplitude of the previous echo. If the amplitude is too low, the gain is increased; if too high, the gain is decreased. The AGC ensures that the echo signal stays within the linear range of the ADC. The system also uses a surface classification algorithm based on the echo width and amplitude to determine if the ground is solid (concrete) or soft (grass). For soft surfaces, the system may use a lower threshold and accept the first echo, which may come from the vegetation top, to maintain a consistent reference. The classification helps in adjusting the altitude hold parameters (e.g., derivative gain) for different surfaces.
Integration with barometric and GPS sensors provides seamless altitude estimation across different flight phases. The ultrasonic altimeter is most accurate at low altitudes (0-5 m), while the barometer provides absolute altitude but drifts over time, and GPS provides altitude above sea level but with coarse resolution. A fusion algorithm (e.g., a Kalman filter) combines the three sources to produce a robust altitude estimate. The ultrasonic measurement is used as the primary reference when within its range; the barometer is used for intermediate altitudes; GPS is used for high altitudes. The filter also corrects for the barometric drift using the ultrasonic measurement when the drone is near the ground. This multi-sensor fusion enables smooth transition between takeoff, hovering, and landing.
The low cost and small size of ultrasonic PDC sensors make them ideal for consumer drones. The sensors are typically housed in compact packages (e.g., 10x10x6 mm) with integrated driver and receiver circuits. The power consumption is low (typically < 100 mW), suitable for battery-powered drones. The range is sufficient for most low-altitude operations, and the accuracy meets the requirements for stable hovering. The ongoing development of higher-frequency transducers (e.g., 60 kHz) is improving the resolution and the ability to detect smaller changes in altitude. The drone altimeter PDC sensors are a crucial component for autonomous drones, enabling precise altitude control for applications such as aerial photography, surveying, and package delivery, where stable flight is essential for mission success.