FMCW radar water level gauge distance measuring method based on variable sampling rate

By using a variable sampling rate method in the FMCW radar water level meter, the sampling rate is dynamically adjusted according to the water level changes, the problem of unadjustable measurement accuracy at a fixed sampling rate is solved, and the measurement accuracy and adaptability are improved.

CN118936595APending Publication Date: 2024-11-12NANJING JINMA INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411017060.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The fixed sampling rate of the existing FMCW radar level gauge results in the unadjustable measurement accuracy under different water levels, and it is impossible to effectively cope with the large jump in the water level in a short time, resulting in a reduction in measurement accuracy.

Method used

Using a variable sampling rate method, adjust the sampling rate according to the ranging range and accuracy requirements, set a high sampling rate through the first ranging, and then gradually reduce or increase the sampling rate according to the water level changes to ensure that the frequency domain resolution meets the design requirements and improves the Measurement accuracy.

Benefits of technology

It realizes automatic adjustment of the sampling rate according to the on-site situation, improves measurement accuracy, adapts to the measurement needs of different water levels, and avoids the accuracy reduction problem caused by fixed sampling rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118936595A_ABST
    Figure CN118936595A_ABST
Patent Text Reader

Abstract

The invention discloses an FMCW radar water level gauge distance measurement method based on a variable sampling rate, and the method comprises the steps: obtaining an interval range of a corresponding intermediate frequency signal frequency f through a distance measurement range needed in a specific scene, and presetting an ADC sampling rate FS in an MCU as 2fmax according to a Nyquist sampling theorem; when the FMCW radar water level gauge is started and runs for first-time distance measurement, FFT processing is carried out on the IFDigital obtained through sampling to obtain the frequency of an intermediate frequency signal, and finally water level data are obtained through calculation according to the frequency of the intermediate frequency signal. The FMCW radar water level gauge carries out distance measurement according to a preset interval period, in the subsequent non-first-time distance measurement of the FMCW radar water level gauge, the sampling rate FS is reduced as much as possible before FFT processing is carried out so as to improve the frequency domain resolution, compared with a fixed sampling rate acquisition method, the method can obtain a frequency detection result with higher precision, and the accuracy of the FMCW radar water level gauge is improved. Finally, the distance measurement precision of the radar water level gauge is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a distance measurement method of a radar water level gauge, in particular to a distance measurement method of a FMCW radar water level gauge. Background Art

[0002] With the development of measurement technology and the urgent need to perceive diversified water resources and ecological environments such as smart water conservancy and smart water affairs, the requirements for measuring water levels, flow rates and other elements in rivers and pipelines are getting higher and higher. It is necessary not only to set up points in the water body for continuous automatic measurement, but also to ensure that the installation of the instrument is safe and reliable, and the data is accurate and available. Radar water level meter is a device that uses radio detection technology to complete non-contact water level monitoring. It has the advantages of small size, low power consumption and strong anti-interference.

[0003] Ranging radar can be divided into pulse radar and frequency modulated continuous wave (FMCW) radar. FMCW radar water level meter is a new type of water level measurement method. The frequency difference information between the transmitted wave and the received wave can be calculated by using the phase shift. The frequency difference is also called intermediate frequency (IF). According to the ranging principle, it can be deduced that the frequency f of the intermediate frequency signal is proportional to the ranging distance. Since different water levels correspond to different intermediate frequency signal frequencies f, when the water level changes significantly in a short period of time, the change degree of the intermediate frequency signal frequency f will also increase.

[0004] In the subsequent processing and analysis of the intermediate frequency signal, the accuracy of the signal's frequency analysis is closely related to the frequency domain resolution of the FFT (Fast Fourier Transform) during the signal processing process. According to the FFT frequency domain resolution formula: Δf = FS / N, under the same FFT transformation point N, the larger the sampling rate FS, the lower the frequency domain resolution, that is, setting the signal sampling rate FS too high will reduce the measurement accuracy, and setting the sampling rate FS too low will not be able to measure farther distance targets. Most of the existing FMCW radar water level meter products set a fixed sampling rate FS according to the intermediate frequency signal frequency f range corresponding to the ranging range, that is, this fixed sampling rate FS is used for the FMCW radar water level meter to measure within the preset ranging range. Summary of the invention

[0005] Purpose of the invention: In view of the above-mentioned prior art, a FMCW radar water level gauge ranging method based on variable sampling rate is proposed.

[0006] Technical solution: A method for measuring distance of an FMCW radar water level meter based on a variable sampling rate, comprising the following steps:

[0007] The corresponding intermediate frequency signal frequency range is obtained from the ranging range required in a specific scenario, and the intermediate frequency signal frequency corresponding to the maximum distance is set as f max ; In the first ranging after the FMCW radar water level gauge is powered on, the intermediate frequency signal is sampled at a sampling rate of 2f max , and then the sampled data is subjected to FFT processing to obtain the intermediate frequency signal frequency;

[0008] The FMCW radar water level gauge performs ranging at a preset interval period; in the subsequent second ranging, on the basis of 2f max , the sampling rate is gradually decreased until the determination of Condition 1 is satisfied. The satisfaction of the determination of Condition 1 indicates that the frequency domain resolution of the FFT processing meets the design requirements; then, based on the adjusted sampling rate, the frequency obtained by the FFT processing and the frequency obtained by the FFT processing in the previous ranging are used to determine whether the water level change between the two rangings is greater than the threshold. If it is less than the threshold, the result of this ranging is output and the sampling rate holding mode is entered. If it is greater than the threshold, the sampling rate at this time is gradually increased, and the intermediate frequency signal obtained in this ranging is re - subjected to FFT processing using the increased sampling rate, and the obtained frequency is re - subjected to the determination step of Condition 1;

[0009] In the sampling rate holding mode, in the next ranging, the sampling rate is set to be the same as the sampling rate used when the result of the previous ranging was finally output, and it is determined whether the water level change between the two rangings is greater than the threshold. If it is less than the threshold, the ranging result is output and the sampling rate holding mode is continued. If it is greater than the threshold, the step of gradually increasing the sampling rate at this time is re - executed.

[0010] 2. The ranging method of the FMCW radar water level gauge based on variable sampling rate according to claim 1, wherein the determination of Condition 1 is specifically: P1*FS’ <= 2*f’ < FS’, where FS’ is the current sampling rate during the adjustment process, f’ is the frequency obtained by subjecting the data sampled at the sampling rate FS’ to FFT processing, and the value range of the constant P1 is [0.9, 0.95].

[0011] Further, if |f’ - f| / f > P2, it indicates that the water level change between the two rangings is greater than the threshold, where f represents the frequency corresponding to the final output of the previous ranging result, and the value range of the constant P2 is [0.05, 0.1].

[0012] Further, the sampling rate of the FFT processing is gradually decreased by a fixed percentage A, and the value range of A is [0.01, 0.1].

[0013] Further, the sampling rate is gradually increased by a fixed percentage B, the value range of B is [0.01, 0.1], and the value of B is greater than A.

[0014] Beneficial effects: The present invention discloses a method for measuring distance using an FMCW radar water level gauge based on a variable sampling rate. The method can match the received IF signal according to the distance measurement range and accuracy requirements, and adjust the sampling rate parameters with appropriate accuracy. The method of the present invention can automatically adjust the sampling rate according to the on-site conditions and the actual range of distance measurement frequency, and can improve the measurement accuracy of a fixed sampling rate that cannot be changed once set under different water level conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 is a flow chart of the method of the present invention;

[0016] Figure 2 This is a flow chart of specific adjustment of the sampling rate in the embodiment. DETAILED DESCRIPTION

[0017] The present invention will be further explained below in conjunction with the accompanying drawings.

[0018] The FMCW radar water level meter is based on the radar MMIC chip. The radar MMIC chip transmits a frequency modulated continuous wave (FMCW) signal on the transmitting antenna. After the MMIC chip receiving end receives the reflected wave signal, it mixes the transmitted wave with the reflected wave. The mixed signal is called a mixed signal or an intermediate frequency signal (IF). The intermediate frequency signal is an analog signal, recorded as IF_Analog.

[0019] Among them, FMCW waves are sawtooth waves, triangle waves, and sine waves with a linear frequency-time relationship. Generally, sawtooth waves are often used as frequency modulation waves. Their main advantage is that the frequency difference between the reflected wave and the transmitted wave is small. The frequency range of FMCW radar waves that can be used to measure water levels is between 30GHz and 120GHz. The higher the frequency of the radar transmitted wave, the smaller the antenna size can be. Reducing the antenna size can reduce the clutter reflection from the surrounding environment, which is conducive to obtaining better echo signals.

[0020] The frequency modulated continuous wave has a frequency modulation bandwidth B, which determines the size of the radar's range resolution ΔR. The range resolution ΔR means that the radar has the ability to distinguish ranging intervals greater than ΔR. The following formula explains the relationship between the range resolution ΔR and the frequency modulation wave bandwidth B.

[0021] ΔR=c / (2*B) (1)

[0022] Where c is the speed of light.

[0023] Since IF_Analog is an analog signal, it is necessary to first use the programmable analog-to-digital converter (ADC) inside the MCU to convert the IF_Analog signal into a digital intermediate frequency signal (IF_Digital); then, the MCU performs FFT processing on the IF_Digital signal and calculates the ranging result of this radar based on the obtained intermediate frequency signal frequency; finally, the ranging result is output to the outside through a serial communication interface or wireless communication. According to formula (2):

[0024] Δf=FS / N (2)

[0025] Δf determines the minimum frequency interval that can be distinguished by FFT processing. Therefore, under the same Fourier transform point N and on the premise of satisfying the Nyquist sampling theorem, reducing the sampling rate FS can reduce Δf and improve the corresponding frequency domain resolution. The higher the frequency domain resolution, the smaller the error between the frequency f value obtained by FFT processing and the actual intermediate frequency signal frequency.

[0026] The following formula is the ranging principle of FMCW:

[0027] R=c*T*f / (2*B) (3)

[0028] Where T is the time width of the linear frequency modulation signal. The more accurate the intermediate frequency signal f obtained through FFT processing is, the higher the accuracy of the ranging result R can be.

[0029] The method of the present invention is mainly executed in the MCU. Based on the above principle, after ensuring that the FMCW radar water level meter has been correctly installed, Figure 1 As shown, the method of the present invention first obtains the range of the corresponding intermediate frequency signal frequency f through the required ranging range in a specific scenario, and assumes that the intermediate frequency signal frequency corresponding to the maximum ranging value is f max According to the Nyquist sampling theorem, the sampling rate FS is preset to f in the MCU. max When the FMCW radar water level meter is turned on and runs for the first time, the sampling rate is 2f max IF_Analog is sampled to obtain IF_Digital, and then IF_Digital is processed by FFT, and the obtained frequency is recorded as f'. The FMCW radar water level meter performs ranging at a preset interval period. In the subsequent non-first ranging of the FMCW radar water level meter, the sampling rate FS is reduced as much as possible before FFT processing to improve the frequency domain resolution, thereby obtaining a more accurate frequency detection result, and ultimately improving the ranging accuracy of the radar water level meter.

[0030] like Figure 2 The specific flow chart of the method of the present invention is shown, and the sampling rate FS of the first ranging FFT processing is preset to f maxTwice that. When the FMCW radar water level gauge is powered on and runs for the first ranging, for the sampling rate FS = 2f max Perform FFT processing on the sampled IF_Digital to obtain the frequency f', and update the value of the variable f with f', and update the value of the variable FS' with FS; in the subsequent second ranging, use the value of FS' as the basic sampling rate, and the dynamic adjustment process of the sampling rate is as follows:

[0031] First, perform the condition 1 determination of P1*FS' <= 2*f' < FS'. The value range of the constant P1 is [0.9, 0.95]. If condition 1 is not satisfied, it means that the current sampling rate FS' is too large. If FFT processing is performed on the IF_Digital obtained at the current sampling rate FS', the obtained ranging accuracy is lower than the detection requirement; therefore, the MCU reduces the sampling rate FS' by a fixed percentage A, that is, updates the value of the variable FS' with FS*(1 - A), and the value range of A is [0.01, 0.1]; perform FFT processing on the IF_Digital obtained at the updated sampling rate FS', and update the value of the variable f' with the frequency obtained by the FFT processing, and update the value of the variable FS with the current FS', and then re-perform the condition determination of P1*FS' <= 2*f' < FS' until the determination condition is satisfied. Next, perform the condition 2 determination of whether |f' - f| / f is less than P2. The value range of the constant P2 is [0.05, 0.1]. If condition 2 is not satisfied, it means that the water level detected this time has changed significantly compared to the water level detected last time, that is, the water level fluctuates greatly during the two ranging time intervals, and it is necessary to re-enter the sampling rate adjustment process. At this time, the MCU increases the sampling rate FS' by a fixed percentage B, that is, updates the value of the variable FS' with FS*(1 + B), and the value range of B is [0.01, 0.1]. To prevent the program from having an arithmetic dead loop, set the value of B to be greater than the value of A, and then return to the step of performing FFT processing on the IF_Digital obtained at the updated sampling rate FS' in the condition 1 determination.

[0032] In the above process, if the condition 1 determination holds, it means that the water level detected for the first time is close to the designed maximum water level, or it means that the sampling rate FS' after several adjustments meets the detection accuracy requirements, that is, the current FS' can meet the Nyquist sampling theorem and can obtain the highest frequency domain resolution. Use the frequency f' obtained at the current sampling rate FS' to re-enter the determination process of the above condition 2.

[0033] In the above process, if condition 2 is established, it means that the water level detected this time is basically the same as the water level detected last time, that is, the water level fluctuation is small in the time interval between the two distance measurements. At this time, f' is used to update the value of variable f, and the MCU outputs the distance measurement result according to f'; and the sampling rate setting in the next distance measurement is consistent with FS' at this time, that is, the sampling rate holding mode is entered. In the sampling rate holding mode, after each subsequent FFT processing to obtain the frequency f', it is necessary to re-enter the judgment process of condition 2 above.

[0034] In the whole ranging process, after each FFT process to obtain the intermediate frequency signal frequency, it is necessary to determine whether it is valid echo data. Specifically, according to the FFT principle, the intermediate frequency signal frequency f' has a corresponding amplitude component M. It has been measured that if the amplitude component M is not less than 300, it is considered a valid echo. If it is determined to be invalid echo data in the first ranging, the radar water level meter will be powered off or restarted; in the subsequent non-first ranging process, if it is determined to be invalid echo data, it will jump to the step of increasing the sampling rate FS' by a fixed percentage B, and after updating the value of the variable FS' by FS*(1+B), it will be determined whether FS' is greater than 2f max If it is greater than, the radar water level meter also needs to be powered off or restarted. Among them, if the radar water level meter is powered off, a prompt for hardware detection can be issued.

[0035] In the above process, the percentage variables P1, A, B, and P2 are all less than 1. The size of variables A and B can be determined by actual test results. Figure 1 The flowchart is not a complete flow of the entire ranging process of the FMCW radar water level meter, but lists the key schematic flow of the sampling rate adjustment related to the innovation of the present invention.

[0036] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A ranging method for an FMCW radar water level gauge based on variable sampling rate, characterized in that, it includes the following steps: The corresponding intermediate frequency signal frequency range is obtained through the required ranging range in the specific scenario, and the intermediate frequency signal frequency corresponding to the maximum distance is set as f max ; The FMCW radar water level meter is measuring the distance for the first time after it is turned on. max The intermediate frequency signal is sampled at a sampling rate, and then the sampled data is processed by FFT to obtain the intermediate frequency signal frequency; The FMCW radar water level gauge performs ranging at a preset interval period; In the subsequent second ranging, at 2f max On this basis, the sampling rate is gradually reduced until the condition 1 is met. Meeting the condition 1 means that the frequency domain resolution of the FFT processing meets the design requirements; then, the frequency obtained by FFT processing after the adjusted sampling rate and the frequency obtained by FFT processing in the previous distance measurement are judged whether the water level change between the two distance measurements is greater than the threshold. If it is less than the threshold, the distance measurement result of this time is output and the sampling rate holding mode is entered. If it is greater than the threshold, the sampling rate at this time is gradually increased, and the intermediate frequency signal obtained by this distance measurement is re-processed by FFT using the increased sampling rate, and the frequency obtained by the processing is re-processed for the condition 1 judgment step; In the sampling rate holding mode, the sampling rate setting in the next ranging is kept the same as the sampling rate used when the ranging result was finally output in the previous ranging, and it is judged whether the water level change between the two rangings is greater than the threshold. If it is less than the threshold, the ranging result is output and the sampling rate holding mode is continued. If it is greater than the threshold, the step of gradually increasing the sampling rate at this time is re-executed.

2. The ranging method for an FMCW radar water level gauge based on variable sampling rate according to claim 1, characterized in that, The specific determination of condition 1 is: P1 * FS’ <= 2 * f’ < FS’, where FS’ is the current sampling rate during the adjustment process, f’ is the frequency obtained by performing FFT processing on the data sampled at the sampling rate FS’, and the value range of the constant P1 is [0.9, 0.95].

3. The ranging method for an FMCW radar water level gauge based on variable sampling rate according to claim 2, characterized in that, If |f’ - f| / f > P2, it means that the water level change between the two rangings is greater than the threshold, where f represents the frequency corresponding to the finally output ranging result in the previous ranging, and the value range of the constant P2 is [0.05, 0.1].

4. The ranging method for an FMCW radar water level gauge based on variable sampling rate according to any one of claims 1 - 3, characterized in that, The sampling rate of the FFT processing is gradually reduced by a fixed percentage A, and the value range of A is [0.01, 0.1].

5. The ranging method for an FMCW radar water level gauge based on variable sampling rate according to claim 4, characterized in that, The sampling rate is gradually increased by a fixed percentage B, and the value range of B is [0.01, 0.1], and the value of B is greater than A.