Working principle and circuit design of digital ultrasonic distance meter

Publisher:BlossomWhisperLatest update time:2023-05-24 Source: elecfansKeywords:Digital Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1 Introduction

Ultrasonic waves propagate at different speeds in gases, liquids and solids. They have good directivity, concentrated energy, small attenuation during transmission, and strong reflection capabilities. Ultrasonic waves can propagate directionally at a certain speed and form reflections when encountering obstacles. Using this characteristic, the actual distance can be calculated by measuring the time it takes for the ultrasonic waves to return, thus achieving non-contact measurement of object distance. Ultrasonic ranging is fast, convenient, and not affected by factors such as light. It is widely used in hydrological level measurement, construction site measurement, on-site location monitoring, vehicle reversing obstacle detection, mobile machine entry detection and positioning, and other fields. The digital ultrasonic distance meter designed in this article counts the clock pulses of a specific frequency input to the counter during the ultrasonic round-trip time, and then displays the corresponding measurement distance.


2 Ultrasonic distance meter circuit composition and working principle

The ultrasonic distance meter is composed of an ultrasonic generating circuit, an ultrasonic receiving amplifier circuit, and a counting and display circuit.

2.1 Ultrasonic generating circuit

Figure 1 shows the ultrasonic generating circuit. The dual timer EN556 (U2b) forms a monostable trigger. R6 and C6 form a differential circuit, and its function is: when button S2 is pressed, the low level becomes a positive and negative peak pulse, and a negative peak pulse is obtained through VD1, triggering the flip of the monostable trigger. The high level of the monostable flip output lasts for about 1 ms, that is, tw≈1.1R5C5≈1 ms. EN556 (U2n) forms a multivibrator with an oscillation frequency f1=1/T1≈1/{0.7[(R1+R2)+2(R3+R4)]C3≈40 kHz. The oscillator oscillation is controlled by the monostable flip-flop output level. When the monostable trigger outputs a high level, the multivibrator oscillates, and pin 5 of the EN556 outputs about 40 rectangular pulses with a frequency of 40 kHz and a duty cycle of about 50%. Considering that the multivibrator is unstable at the start-up stage, the number of m pulses is designed to be transmitted. If the number of output pulses is too few, the emission intensity will be small and the measurement distance will be short. However, there are too many pulses and the transmission duration is long. When the distance to the measured object is close, the pulse train has not yet been completely transmitted. This will cause the echo generated by the first pulse to reach the receiving end, affecting the ranging results and causing the ranging The blind area increases. U1a~U1e of 74HC04 (U1) form an ultrasonic pulse drive circuit, which can increase the amplitude of the pulse voltage that drives the ultrasonic sending sensor, effectively perform electrical/acoustic conversion, enhance the ability to transmit ultrasonic waves, and increase the measurement distance. One path of the 40 kHz pulse train is inverted through U1a, and then inverted through the inverter connected in parallel between U1b and U1e; the other path is inverted through the inverter connected in parallel between U1c and U1d.

Working principle and circuit design of digital ultrasonic distance meter

In this way, the two pulse voltages applied to both ends of the ultrasonic transmitting sensor have opposite phases, so that the peak-to-peak value of the pulse voltage at both ends of the ultrasonic transmitting sensor is increased by nearly 2 times the power supply voltage, and the output power is increased by 4 times. Two CMOS gates connected in parallel can increase the output drive current. Capacitor C1 is used to block DC to prevent DC voltage from being applied to the ultrasonic sensor for a long time, causing the insulation resistance of the ultrasonic sensor to decrease and thus reducing the performance of the ultrasonic sensor.


2.2 Ultrasonic receiving amplification and shaping circuit

The ultrasonic receiving amplification and shaping circuit is shown in Figure 2.

The ultrasonic receiving sensor converts the received returned ultrasonic wave into a weak electrical signal. After being amplified and shaped by CX20106A, it outputs a negative pulse voltage. CX20106A is an infrared remote control receiver, which is composed of preamplifier, band-pass filtering, detection and waveform shaping circuits. By connecting an external resistor and setting the center frequency f0 of the internal bandpass filter circuit to 40 kHz, the ultrasonic electrical signal can be received and amplified, and the negative pulse voltage can be shaped and output. Pin 1 of the device is the ultrasonic electrical signal input end. Pin 2 and ground are connected to an RC series network. This is a component of the negative feedback network of the internal preamplifier circuit. Changing the value of resistor R8 will change the preamplifier circuit. gain. The detection capacitor C9 is connected between pin 3 and ground. Appropriate changes in C9 can change the sensitivity and anti-interference ability of the ultrasonic electrical signal amplification and shaping circuit. A resistor is connected between pin 5 and the power supply to set the center frequency f0 of the internal band-pass filter circuit. When R9=200 kΩ, f0=40 kHz. An integrating capacitor C10 is connected between pin 6 and ground. The standard value is 330 pF. If the capacitance value is too large, the low-level duration of the output pulse will increase and the measurement distance will become shorter. Pin 7 is the open collector output of the circuit, and R10 is the pull-up resistor for this pin. When CX20106A has no signal input, pin 7 outputs high level. After the input ultrasonic electrical signal is amplified and shaped, pin 7 outputs a negative pulse voltage. Using CX20106A to achieve ultrasonic reception amplification and shaping can avoid problems such as self-excitation of high-gain amplification circuits composed of multi-stage integrated operational amplifiers.


During the transmission of ultrasonic waves, point C in Figure 2 is high level (tW≈1 ms), the transistor V Q1 is turned on, and the ultrasonic electrical signal input terminal is short-circuited, thereby avoiding receiving ultrasonic waves and sending direct waves emitted by the sensor. Therefore, the theoretical minimum measurement distance (backward area) of the rangefinder is approximately Smin=Ctw/2≈0.17 m. Among them, C is the propagation speed of ultrasonic waves in the air. Because the energy of ultrasonic waves propagating in the air will continue to attenuate, there is a maximum effective measurement distance for ultrasonic ranging. The maximum effective measurement distance is related to many factors: ultrasonic sensor performance, driving ultrasonic sensor pulse voltage amplitude (power), shape of the measured object, wave absorption characteristics of the measured object, angle between reflected wave and incident wave, ultrasonic wave receiving amplification Circuit sensitivity, etc.

[1] [2] [3]
Keywords:Digital Reference address:Working principle and circuit design of digital ultrasonic distance meter

Previous article:Design of HIOKI3286 power analyzer based on microprocessor
Next article:How to use the transformer ratio tester_What can the transformer ratio tester test?

Recommended ReadingLatest update time:2024-11-22 14:45

OmniVision announces that TheiaCel technology automotive image sensors are compatible with Qualcomm Snapdragon Digital Chassis
On March 21, domestic manufacturer OmniVision announced that its OX08D10 image sensor using TheiaCel technology is compatible with Qualcomm Snapdragon Digital Chassis. In particular, it can provide excellent imaging quality under various lighting conditions, which can provide stable visual protection for
[Automotive Electronics]
OmniVision announces that TheiaCel technology automotive image sensors are compatible with Qualcomm Snapdragon Digital Chassis
Latest Test Measurement Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号