Frequency measuring device and method

By judging the peak change conditions of the periodic signal in the frequency measurement device and dynamically adjusting the trigger threshold, the problem of inaccurate frequency measurement of multiple high harmonic signals is solved, and the accuracy of measurement and anti-interference ability are improved. It is suitable for multiple high-speed Frequency measurement of harmonic signals.

CN119087034APending Publication Date: 2024-12-06UNI TREND TECH (CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411208062.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

Existing frequency measurement methods may have inaccurate frequency measurement problems when processing multiple high-harmonic signals, especially due to errors caused by multiple zero-crossing signals within a period, and conventional methods can limit the possibility of adding low-pass filters. Measured bandwidth.

Method used

A frequency measurement device is designed to determine whether the peak value of the periodic signal meets the change conditions through the processing circuit, dynamically adjust the trigger threshold, and use the comparison circuit to calculate the frequency based on the shaping signal, reduce the measurement error caused by noise interference and signal fluctuations, and improve the measurement Accuracy and stability.

Benefits of technology

The device can automatically distinguish between effective signal and noise interference, reduce false triggering, improve anti-interference ability, dynamically adjust the trigger threshold, ensure the accuracy and stability of frequency measurement, and is suitable for frequency measurement of multiple high-harmonic signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119087034A_ABST
    Figure CN119087034A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of frequency measurement, and particularly relates to a frequency measurement device and method, and the device comprises a processing circuit which is used for judging whether the peak value of a periodic signal meets a change condition or not; if not, outputting a trigger signal; if yes, outputting a new trigger signal according to the peak value of the periodic signal and a preset response relationship; the follower circuit is connected with the processing circuit and is used for receiving and outputting an output signal of the processing circuit; the comparison circuit is respectively connected with the follower circuit and the processing circuit and is used for receiving the periodic signal and outputting a shaping signal to the processing circuit based on the voltage value of the trigger signal; and the processing circuit is also used for receiving the shaping signal and calculating the frequency based on the shaping signal. According to the device, the trigger threshold can be dynamically adjusted, measurement errors caused by signal fluctuation or noise can be reduced, and the accuracy and stability of measurement are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of frequency calculation, and in particular to a frequency measurement device and method. Background Art

[0002] There are three main existing frequency measurement methods, including: frequency counting method, timing method and comparison method. The frequency counting method uses a zero-crossing comparator to shape the measured signal to obtain a square wave, and then counts the number of periodic changes of the measured signal within the set time t, and then calculates the frequency of the measured signal F=N / t; the timing method uses a zero-crossing comparator to shape the measured signal to obtain a square wave, and then measures the time t from the first pulse starting point to the Nth pulse starting point of the measured signal, and then calculates the frequency of the measured signal F=(N-1) / t; the comparison method uses a zero-crossing comparator to shape the measured signal to obtain a square wave, and then measures the number of pulses N1 corresponding to the system clock with a known frequency of f1 and the number of pulses N2 corresponding to the measured signal within the same time, and then calculates the frequency of the measured signal F=f1*N1 / N2. The above three methods all use a zero-crossing comparator to measure the number of signal changes or the corresponding time. The threshold value of the zero-crossing comparator is zero or a value near zero. Its biggest feature is that the threshold value is a relatively fixed value.

[0003] However, the method of using zero-crossing comparator to measure frequency is fine for signals with regular waveforms, but some signals with multiple high harmonics may have more than two zero crossings in one cycle. For such signals, the measurement results obtained by using the zero-crossing comparison method to measure the frequency will be wrong. Although the instrument usually adds a low-pass filter to improve it, this will limit the measurable bandwidth.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] In view of at least one of the above technical problems, the present application provides a frequency measurement device and method to solve the problem in the prior art that some multiple high-harmonic signals may have more than two zero crossings in one cycle, resulting in inaccurate frequency measurement.

[0006] In a first aspect, a frequency measurement device is provided, comprising:

[0007] A processing circuit, used to determine whether the peak value of the periodic signal meets the change condition; if not, output a trigger signal; if so, output a new trigger signal according to the peak value of the periodic signal and a preset response relationship;

[0008] A follower circuit is connected to the processing circuit and is used to receive and output an output signal of the processing circuit;

[0009] A comparison circuit, connected to the follower circuit and the processing circuit respectively, for receiving the periodic signal and outputting a shaped signal to the processing circuit based on the voltage value of the trigger signal;

[0010] The processing circuit is further configured to receive the shaped signal and calculate the frequency based on the shaped signal.

[0011] One of the above technical solutions has at least one of the following advantages or beneficial effects: the device can dynamically adjust the trigger threshold, which helps to reduce measurement errors caused by signal fluctuations or noise and improve the accuracy and stability of the measurement; in addition, by judging whether the peak value of the periodic signal meets the change conditions, the device can automatically distinguish between valid signals and noise interference, reduce false triggering caused by noise, and improve the anti-interference ability of the device.

[0012] In some possible implementations, the change condition is:

[0013]

[0014] Among them, V max1 is the peak value of the current periodic signal, V max0 is the peak value of the periodic signal in the previous stage.

[0015] In some possible implementations, the preset response relationship is: V1 = 0.8 × V max1

[0016] Among them, V max1 is the peak value of the current periodic signal, and V1 is the voltage value of the trigger signal.

[0017] In some possible implementations, the follower circuit includes: a follower, one end of the follower is connected to the processing circuit, and the other end of the follower is connected to the comparison circuit.

[0018] In some possible implementations, the comparison circuit includes: a comparator, a first input terminal of the comparator is connected to the follower circuit, a second input terminal of the comparator is used to receive a periodic signal, and an output terminal of the comparator is connected to the processing circuit.

[0019] In some possible implementations, the first input terminal of the comparator receives a periodic signal, the second input terminal of the comparator receives a trigger signal, the comparator uses the voltage value of the trigger signal as a reference voltage, shapes the periodic signal, and outputs the shaped signal to the processing circuit.

[0020] In some possible implementations, the device further includes: a linear amplification circuit, which is respectively connected to the processing circuit and the comparison circuit, and is used to receive the periodic signal and output it to the processing circuit and the comparison circuit respectively.

[0021] In some possible implementations, the device further includes: an analog-to-digital conversion circuit, wherein the analog-to-digital conversion circuit is connected between the linear amplification circuit and the processing circuit.

[0022] In some possible implementations, the device further includes: a filter circuit connected between the linear amplification circuit and the comparison circuit.

[0023] In a second aspect, a frequency measurement method is provided, which is implemented by a frequency measurement device and includes:

[0024] Determine whether the peak value of the periodic signal meets the change condition; if not, output a trigger signal; if so, output a new trigger signal according to the peak value of the periodic signal and the preset response relationship;

[0025] receiving a shaped signal, where the shaped signal is a signal shaped and output by a comparison circuit based on the voltage value of a periodic signal and a trigger signal;

[0026] Calculates the frequency based on the period of the shaped signal.

[0027] The present application is further described below in conjunction with the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0029] Figure 1 A schematic diagram of the circuit structure of a frequency measurement device provided in an embodiment of the present application;

[0030] Figure 2 A flow chart of a frequency measurement method provided in an embodiment of the present application; DETAILED DESCRIPTION

[0031] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific embodiments of the present application are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application, so the present application is not limited by the specific embodiments disclosed below.

[0032] like Figure 1 As shown, this embodiment provides a frequency measurement device, including: a processing circuit 100 , a follower circuit 200 and a comparison circuit 300 .

[0033] The processing circuit 100 is used to determine whether the peak value of the periodic signal meets the change condition; if not, a trigger signal is output; if so, a new trigger signal is output according to the peak value of the periodic signal and a preset response relationship; the follower circuit 200 is connected to the processing circuit 100, and is used to receive and output the output signal of the processing circuit 100; the comparison circuit 300 is respectively connected to the follower circuit 200 and the processing circuit 100, and is used to receive the periodic signal and output a shaped signal to the processing circuit 100 based on the voltage value of the trigger signal; the processing circuit 100 is also used to receive the shaped signal and calculate the frequency based on the shaped signal.

[0034] The device can dynamically adjust the trigger threshold, which helps to reduce measurement errors caused by signal fluctuations or noise and improve measurement accuracy and stability; in addition, by judging whether the peak value of the periodic signal meets the change conditions, the device can automatically distinguish between valid signals and noise interference, reduce false triggering caused by noise, and improve the device's anti-interference ability.

[0035] Specifically, the processing circuit 100 is preset with a voltage value of the trigger signal, which is used as the reference voltage of the comparison circuit 300. In order to achieve frequency measurement of almost all periodic signals, thereby solving the problem that harmonic measuring instruments on the market cannot accurately measure the frequency and harmonics of single-cycle multiple zero-crossing signals, the processing circuit 100 monitors the periodic signal in real time by setting the change conditions and the preset response relationship, and dynamically triggers the voltage value of the signal based on the periodic signal, thereby dynamically changing the reference voltage of the comparison circuit 300, avoiding zero-crossing detection, and correctly measuring the fundamental frequency of the single-cycle multiple zero-crossing signal even after passing through the filter.

[0036] Specifically, the change conditions are:

[0037] Among them, V max1 is the peak value of the current periodic signal, V max0 is the peak value of the periodic signal in the previous stage.

[0038] The preset response relationship is: V1 = 0.8 × V max1

[0039] Among them, V max1 is the peak value of the current periodic signal, and V1 is the voltage value of the trigger signal.

[0040] Exemplarily, the processing circuit 100 determines whether the peak value of the periodic signal satisfies the change condition, that is, whether the peak value of the current periodic signal changes by more than 10% relative to the peak value of the periodic signal in the previous stage. If the change does not exceed 10%, the processing circuit 100 outputs a trigger signal as the reference voltage of the comparison circuit 300, and at this time, the trigger signal is a preset voltage value of the trigger signal. If the change exceeds 10%, the voltage value of the trigger signal is updated based on the preset response relationship, and then the processing circuit 100 outputs a trigger signal as the reference voltage of the comparison circuit 300.

[0041] In addition, the processing circuit 100 is also responsible for calculating the frequency of the periodic signal based on the shaped signal provided by the comparison circuit 300 , and uses an appropriate formula (eg, frequency=1 / period) to calculate the frequency.

[0042] In order to receive the output signal of the processing circuit 100 and output the signal to the comparison circuit 300 without delay, the follower circuit 200 may include: a follower. One end of the follower is connected to the processing circuit 100, and the other end of the follower is connected to the comparison circuit 300. In this way, it is helpful to maintain the integrity and timing relationship of the trigger signal and reduce the frequency measurement error caused by the delay between circuits.

[0043] The comparison circuit 300 may include: a comparator. The first input terminal of the comparator is connected to the follower circuit 200, the second input terminal of the comparator is used to receive the periodic signal, and the output terminal of the comparator is connected to the processing circuit 100. The first input terminal of the comparator receives the periodic signal, the second input terminal of the comparator receives the trigger signal, the comparator uses the voltage value of the trigger signal as a reference voltage, shapes the periodic signal, and outputs the shaped signal to the processing circuit 100.

[0044] The comparator receives the trigger signal from the follower circuit 200 and the original periodic signal at the same time, and shapes the periodic signal based on the voltage value (or other characteristics) of the trigger signal to generate a signal that is more suitable for frequency calculation by the processing circuit 100. The shaped signal is sent back to the processing circuit 100 for frequency calculation. This feedback mechanism helps the processing circuit 100 adjust its processing strategy according to the actual situation of the current periodic signal, thereby improving the accuracy and reliability of frequency measurement.

[0045] like Figure 1As shown, in some embodiments, the device further includes: a linear amplifier circuit 400, the linear amplifier circuit 400 is connected to the processing circuit 100 and the comparison circuit 300 respectively, and the linear amplifier circuit 400 is used to receive the periodic signal and output it to the processing circuit 100 and the comparison circuit 300 respectively. In this way, the linear amplifier circuit 400 can enhance the amplitude of the periodic signal so that it can be more clearly identified and processed by the subsequent circuits (such as the processing circuit 100 and the comparison circuit 300). This is particularly important for the detection and processing of weak signals, and can improve the sensitivity and reliability of the entire system. Among them, the integrity of the periodic signal is maintained. Since the linear amplifier circuit 400 keeps its waveform shape unchanged when amplifying the signal, the integrity of the signal can be ensured, which is crucial for applications that require accurate analysis of the waveform characteristics of the signal (such as spectrum analysis, waveform recognition, etc.). Improve the dynamic range of the device. By amplifying the amplitude of the input signal, the linear amplifier circuit 400 actually expands the signal range (i.e., dynamic range) that the device can process, which enables the device to cope with a wider range of periodic signals and improves its adaptability and flexibility. Optimizing the signal processing process and outputting the amplified signal to the processing circuit 100 and the comparison circuit 300 respectively helps to optimize the entire signal processing process. The processing circuit 100 can further analyze and process the amplified signal (such as filtering, demodulation, etc.), while the comparison circuit 300 can use the amplified signal to perform threshold comparison, trigger control and other operations. This division of labor and cooperation improves the efficiency and accuracy of signal processing.

[0046] In this embodiment, the linear amplifier circuit 400 receives a periodic signal as input. The periodic signal can be any repetitive waveform such as a sine wave, a square wave, a sawtooth wave, etc. The linear amplifier circuit 400 amplifies the amplitude of the input signal to a certain level through the action of its internal components while keeping the periodicity and phase relationship of the signal unchanged. The amplified signal is then output to the processing circuit 100 and the comparison circuit 300 respectively.

[0047] like Figure 1 As shown, in some embodiments, the device further includes: an analog-to-digital conversion circuit 500, which is connected between the linear amplification circuit 400 and the processing circuit 100. The analog-to-digital conversion circuit 500 is located between the linear amplification circuit 400 and the processing circuit 100, and its function is to convert the amplified analog signal into a digital signal.

[0048] like Figure 1 As shown, in some embodiments, the device further includes: a filter circuit 600 , and the filter circuit 600 is connected between the linear amplification circuit 400 and the comparison circuit 300 .

[0049] The filter circuit 600 can improve the signal quality. The filter circuit 600 significantly improves the signal quality by removing noise and interference in the signal. This enables the subsequent comparison circuit 300 to more accurately identify and process the signal, reducing the possibility of misjudgment and misoperation; it can protect the subsequent circuit. High-frequency noise and interference will not only affect the signal quality, but also may damage the subsequent circuit (such as the comparison circuit 300). The filter circuit 600 can effectively protect the subsequent circuit from these adverse factors; optimize the performance of the device. By improving the signal quality and protecting the subsequent circuit, the filter circuit 600 indirectly optimizes the performance of the entire system. It enables the system to operate more stably and reliably, and improves the overall efficiency and accuracy of the system. Enhance the adaptability of the device. The filter circuit 600 can be adjusted and optimized according to different signal characteristics and system requirements. For example, by changing the cutoff frequency or type of the filter, it can adapt to signal inputs in different frequency ranges, thereby enhancing the adaptability and flexibility of the system.

[0050] In this embodiment, the filter circuit 600 may be a low-pass filter or a band-pass filter, but is not limited thereto.

[0051] like Figure 2 As shown, this embodiment provides a frequency measurement method, which is implemented by a frequency measurement device and includes: S100 to S300.

[0052] S100, determining whether the peak value of the periodic signal satisfies the change condition; if not, outputting a trigger signal; if so, outputting a new trigger signal according to the peak value of the periodic signal and a preset response relationship;

[0053] S200, receiving a shaped signal, where the shaped signal is a signal shaped and output by the comparison circuit 300 based on the voltage value of the periodic signal and the trigger signal;

[0054] S300, calculating the frequency based on the period of the shaped signal.

[0055] This method first determines whether the peak value of the periodic signal meets the change condition. This step helps to identify the stable part and the changing part of the signal. When the peak value does not meet the change condition, the trigger signal is directly output, which can reduce the measurement error caused by signal instability. When the peak value meets the change condition, a new trigger signal is output according to the preset response relationship. This dynamic trigger mechanism based on peak value change can more accurately capture the periodic characteristics of the signal, thereby improving the accuracy of frequency measurement.

[0056] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0057] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0058] In addition, various aspects or features of the present application can be implemented as methods, devices or products using standard programming and / or engineering techniques. The term "product" used in this application covers computer programs that can be accessed from any computer-readable device, carrier or medium. For example, computer-readable media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks or tapes, etc.), optical disks (e.g., compact discs (CDs), digital versatile discs (DVDs), etc.), smart cards and flash memory devices (e.g., erasable programmable read-only memory (EPROM), cards, sticks or key drives, etc.). In addition, the various storage media described herein may represent one or more devices and / or other machine-readable media for storing information. The term "machine-readable medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing and / or carrying instructions and / or data.

[0059] It should also be understood that in the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0060] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0061] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0062] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described below are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or can be electrical, mechanical or other forms of connection.

[0063] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0064] The above are only preferred embodiments of the present application, and do not constitute any formal limitation on the present application. Any technician familiar with the art can use the above disclosed methods and technical contents to make many possible changes and modifications to the technical solution of the present application without departing from the scope of the technical solution of the present application, or modify it into an equivalent embodiment of equivalent changes. Therefore, all equivalent changes made according to the shape, structure and principle of the present application without departing from the content of the technical solution of the present application should be included in the protection scope of the present application.

Claims

1. A frequency measuring device, characterized in that: include: A processing circuit, used for determining whether the peak value of the periodic signal satisfies a change condition; If not, output a trigger signal; If so, a new trigger signal is output according to the peak value of the periodic signal and the preset response relationship; A follower circuit, connected to the processing circuit, and configured to receive and output an output signal of the processing circuit; a comparison circuit, connected to the follower circuit and the processing circuit respectively, for receiving the periodic signal and outputting a shaped signal to the processing circuit based on the voltage value of the trigger signal; The processing circuit is further configured to receive a shaped signal and calculate a frequency based on the shaped signal.

2. The frequency measuring device according to claim 1, characterized in that: The changing conditions are: Among them, V max1 is the peak value of the current periodic signal, V max0 is the peak value of the periodic signal in the previous stage.

3. The frequency measuring device according to claim 1, characterized in that: The preset response relationship is: V1 = 0.8 × V max1 Among them, V max1 is the peak value of the current periodic signal, and V1 is the voltage value of the trigger signal.

4. The frequency measuring device according to claim 1, characterized in that: The follower circuit includes: a follower, one end of the follower is connected to the processing circuit, and the other end of the follower is connected to the comparison circuit.

5. The frequency measuring device according to claim 1, characterized in that: The comparison circuit comprises: a comparator, a first input terminal of the comparator is connected to the follower circuit, a second input terminal of the comparator is used to receive the periodic signal, and an output terminal of the comparator is connected to the processing circuit.

6. The frequency measuring device according to claim 5, characterized in that: The first input terminal of the comparator receives the periodic signal, the second input terminal of the comparator receives the trigger signal, the comparator uses the voltage value of the trigger signal as a reference voltage, shapes the periodic signal, and outputs the shaped signal to the processing circuit.

7. The frequency measuring device according to claim 1, characterized in that: The device further comprises: a linear amplifying circuit, which is respectively connected to the processing circuit and the comparing circuit, and is used for receiving a periodic signal and outputting it to the processing circuit and the comparing circuit respectively.

8. The frequency measuring device according to claim 7, characterized in that: The device further comprises: an analog-to-digital conversion circuit, wherein the analog-to-digital conversion circuit is connected between the linear amplification circuit and the processing circuit.

9. The frequency measuring device according to claim 7, characterized in that: The device further comprises: a filter circuit connected between the linear amplifying circuit and the comparison circuit.

10. A frequency measurement method, implemented by the frequency measurement device according to claim 1, characterized in that: include: Determine whether the peak value of the periodic signal meets the change condition; If not, output a trigger signal; If so, a new trigger signal is output according to the peak value of the periodic signal and the preset response relationship; receiving a shaped signal, wherein the shaped signal is a signal shaped and output by the comparison circuit based on the voltage values ​​of the periodic signal and the trigger signal; A frequency is calculated based on a period of the shaped signal.