A method and system for measuring electric energy harmonics

By filtering interference signals and detecting zero-crossing points of the electric energy signals to be measured in the power grid, combined with high-pass filters and interpolated low-pass filters, accurate calculation of electric energy harmonics is achieved, and the large error of the FFT method in electric energy measurement is solved. solve the problem of low efficiency, improve computational efficiency and reduce design costs.

CN115308486BActive Publication Date: 2024-08-27SPL ELECTRONICS TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202211000115.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-19
Publication Date
2024-08-27
Estimated Expiration
2042-08-19

AI Technical Summary

Technical Problem

The existing technology has problems such as large errors, complex calculations, and low efficiency when using the FFT algorithm in electric energy measurement. Especially when measuring the harmonic content in the power grid, nonlinear loads pollute the power grid and linear users pay more for electricity.

Method used

By converting the electric energy signal to be measured into a digital signal and filtering the interference signal, using zero-crossing point detection to obtain the fundamental frequency, separating each harmonic voltage signal and current signal, using a high-pass filter and an interpolated low-pass filter. Signal filtering, combined with a second-order band-pass filter with adjustable center frequency, separates harmonic signals to achieve accurate calculation of electric energy harmonics.

Benefits of technology

This method can eliminate the influence of adjacent harmonics and fundamental waves, overcome the spectrum leakage problem of the FFT method, achieve accurate calculation of power harmonics, simplify the calculation process, improve calculation efficiency, and reduce design costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115308486B
    Figure CN115308486B
Patent Text Reader

Abstract

The present invention relates to a method and system for measuring electric energy harmonics, and belongs to the technical field of electric energy measurement. The present invention uses a zero-crossing detection method to detect the fundamental frequency in the power grid in real time, and determines each harmonic voltage signal and current signal according to the fundamental frequency, so as to realize the calculation of electric energy harmonics. The present invention can eliminate the influence of adjacent harmonics and fundamental waves, overcome the problem of spectrum leakage of the fast Fourier transform method, and can accurately realize the calculation of electric energy harmonics. The method is simple to implement, has a small amount of calculation, and can improve the calculation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an electric energy harmonic metering method and system, belonging to the technical field of electric energy metering. Background Art

[0002] The distortion of the grid waveform caused by power harmonics has a great impact on the safe and economic operation of the power system. At the same time, since the harmonic current caused by non-linear loads will cause power consumption on linear loads, the use of traditional full power metering methods will cause non-linear loads to pollute the grid but pay less electricity bills, while linear users will receive harmonic pollution but pay more electricity bills, so it is necessary to accurately measure the harmonic content and power in the grid.

[0003] At present, the measurement algorithm for harmonics usually uses the fast Fourier transform (FFT algorithm), but the FFT algorithm has fence effect and spectrum leakage problems, which make the calculated harmonic parameters have large errors. In order to improve the accuracy of harmonic electric energy, many methods for correcting FFT results have emerged, such as reducing leakage by adding windows, overcoming fence effect by interpolation, synchronous sampling, etc. However, windowing and interpolation will greatly increase the complexity of calculation and storage volume; synchronous sampling needs to be corrected in combination with the hardware phase-locked loop PLL. This method mainly adjusts the sampling clock in real time to achieve synchronization with the signal. Calculating harmonic parameters through FFT can reduce the error caused by leakage, but the design of PLL requires a large number of analog circuits, which will significantly increase the design cost.

[0004] In addition, the energy in the power grid is mainly concentrated in the fundamental wave and low-frequency odd harmonics. The FFT calculation will also calculate the amplitude and phase parameters of the frequency points that are not harmonic components. However, these frequency points do not participate in the calculation of harmonic electric energy, which will cause a lot of redundant calculations and affect the calculation efficiency. Summary of the invention

[0005] The purpose of the present invention is to provide an electric energy harmonic measurement method and system to solve the problems of large error, complex calculation and low efficiency in the current electric energy measurement using FFT.

[0006] In order to solve the above technical problems, the present invention provides an electric energy harmonic measurement method, which comprises the following steps:

[0007] 1) Convert the electric energy signal to be measured into a digital signal, and filter out interference signals from the converted digital signal;

[0008] 2) performing zero-crossing detection on the signal after the interference signal filtering operation in step 1) to obtain the fundamental frequency of the electric energy signal to be measured;

[0009] 3) Separating the harmonic voltage signals and current signals of the electric energy signal to be measured based on the obtained fundamental frequency;

[0010] 4) Calculate the electric energy harmonics based on the obtained harmonic voltage and current signals.

[0011] The present invention utilizes a zero-crossing detection method to monitor the fundamental frequency in the power grid in real time, and determines each harmonic voltage signal and current signal according to the fundamental frequency, thereby realizing the calculation of electric energy harmonics. The present invention can eliminate the influence of adjacent harmonics and fundamental waves, overcome the problem of spectrum leakage of the fast Fourier transform method, can accurately realize the calculation of electric energy harmonics, and the method is simple to implement, has a small amount of calculation, and can improve calculation efficiency.

[0012] Furthermore, the interference signal filtering in step 1) includes filtering of DC components, integer harmonics, non-integer harmonics and noise, and the DC components are filtered out using a high-pass filter; the integer harmonics, non-integer harmonics and noise are filtered out using an interpolation low-pass filter.

[0013] The present invention adopts a high-pass filter to filter out direct current components and adopts an interpolation low-pass filter to filter out integer harmonics, non-integer harmonics and noise, thereby avoiding interference of the above signals and improving the accuracy of zero-crossing detection of fundamental frequency.

[0014] Furthermore, the interpolation low-pass filter includes a shaping filter and a de-imaging filter, and both the shaping filter and the de-imaging filter adopt finite impulse response filters, and the transfer functions of the shaping filter and the de-imaging filter are respectively:

[0015]

[0016]

[0017] Where: h p (k) is the impulse function of the prototype filter, h ir (k) is the impulse function of the de-imaging filter, M is h p (k) The number of inserted 0s, N p is the number of shaping filter coefficients, N ir is the number of anti-imaging filter coefficients.

[0018] The present invention uses a shaping filter and a de-imaging filter to filter out integer harmonics, non-integer harmonics and high-frequency noise, and can conveniently and accurately filter out the above-mentioned signals.

[0019] Furthermore, the calculation formula used for the fundamental frequency in step 2) is:

[0020]

[0021] f sis the signal sampling frequency, a and b are the sampling point indexes, and y a ,y b is the sample value of the corresponding index, y a *y a+1 <0 and y a >0,y b *y b+1 <0 and y b >0, a<b, we can see that the zero-crossing point where a value changes from positive to negative is between a and a+1.

[0022] The present invention utilizes the zero-crossing point detection principle to determine the fundamental frequency, and can conveniently and quickly determine the fundamental frequency.

[0023] Furthermore, in the step 3), a second-order bandpass filter with an adjustable center frequency is used to separate the harmonic voltage signals and current signals. The transfer function of the second-order bandpass filter with an adjustable center frequency is:

[0024]

[0025] w=2πf h / fs is the angular frequency of the harmonic, f s is the signal sampling frequency, f c is the fundamental frequency, f h =hf c is the hth harmonic frequency. Parameter A controls the stopband attenuation of the bandpass filter. The larger the parameter value A is, the greater the stopband attenuation of the bandpass filter is.

[0026] The present invention extracts each harmonic signal by designing a second-order bandpass filter with adjustable center frequency, and can make corresponding adjustments according to the change of fundamental frequency, thereby ensuring the accuracy of harmonic measurement when the fundamental frequency fluctuates.

[0027] The present invention also provides an electric energy harmonic metering system, which includes an analog-to-digital conversion module, a DC removal module, an interpolation low-pass filter, a zero-crossing detection module, a harmonic component separation module and a calculation module; the analog-to-digital conversion module is used to convert the electric energy signal to be measured into a digital signal; the DC removal module is used to filter the DC component of the converted digital signal; the interpolation low-pass filter is used to filter integer harmonics, non-integer harmonics and noise from the signal after the DC component is filtered out; the zero-crossing detection module is used to perform zero-crossing detection on the signal filtered out by the interpolation low-pass filter to obtain the fundamental frequency of the electric energy signal to be measured; the harmonic component separation module is used to separate the harmonic voltage signals and current signals of each order of the electric energy signal to be measured according to the fundamental frequency; and the calculation module is used to calculate the electric energy harmonics according to the obtained harmonic voltage signals and current signals of each order.

[0028] The present invention utilizes a zero-crossing detection method to monitor the fundamental frequency in the power grid in real time, and determines each harmonic voltage signal and current signal according to the fundamental frequency, thereby realizing the calculation of electric energy harmonics. The present invention can eliminate the influence of adjacent harmonics and fundamental waves, overcome the problem of spectrum leakage of the fast Fourier transform method, can accurately realize the calculation of electric energy harmonics, and the method is simple to implement, has a small amount of calculation, and can improve calculation efficiency.

[0029] Furthermore, the DC removal module adopts a high-pass filter.

[0030] Furthermore, the interpolation low-pass filter includes a shaping filter and a de-imaging filter, and both the shaping filter and the de-imaging filter adopt finite impulse response filters, and the transfer functions of the shaping filter and the de-imaging filter are respectively:

[0031]

[0032]

[0033] Where: h p (k) is the impulse function of the prototype filter, h ir (k) is the impulse function of the de-imaging filter, M is h p (k) The number of inserted 0s, N p is the number of shaping filter coefficients, N ir is the number of anti-imaging filter coefficients.

[0034] The present invention adopts a high-pass filter to filter out direct current components and adopts an interpolation low-pass filter to filter out integer harmonics, non-integer harmonics and noise, thereby avoiding interference of the above signals and improving the accuracy of zero-crossing detection of fundamental frequency.

[0035] Furthermore, the formula for calculating the fundamental frequency by the zero-crossing detection module is:

[0036]

[0037] f c is the fundamental frequency, f s is the signal sampling frequency, a and b are the sampling point indexes, and y a ,y b is the sample value of the corresponding index, y a *y a+1 <0 and y a >0,y b *y b+1 <0 and y b >0, a<b, we can see that the zero-crossing point where a value changes from positive to negative is between a and a+1.

[0038] Furthermore, the harmonic component separation module uses a second-order bandpass filter with adjustable center frequency to separate the harmonic voltage signals and current signals. The transfer function of the second-order bandpass filter with adjustable center frequency is:

[0039]

[0040] w=2πf h / fs is the angular frequency of the harmonic, f s is the signal sampling frequency, f c is the fundamental frequency, f h =hf c is the hth harmonic frequency. Parameter A controls the stopband attenuation of the bandpass filter. The larger the parameter value A is, the greater the stopband attenuation of the bandpass filter is.

[0041] The present invention extracts each harmonic signal by designing a second-order bandpass filter with adjustable center frequency, and can make corresponding adjustments according to the change of fundamental frequency, thereby ensuring the accuracy of harmonic measurement when the fundamental frequency fluctuates. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flow chart for realizing the electric energy harmonic measurement method of the present invention. DETAILED DESCRIPTION

[0043] The specific implementation of the present invention will be further described below in conjunction with the accompanying drawings.

[0044] Electric energy harmonic measurement method embodiment

[0045] The present invention obtains the fundamental frequency of the electric energy signal to be measured by performing zero-crossing detection on the signal to be measured; then separates the harmonic voltage signals and current signals of the electric energy signal to be measured using the obtained fundamental frequency; and finally calculates the electric energy harmonics based on the obtained harmonic voltage signals and current signals. The implementation process of the method is as follows: Figure 1 As shown, the specific implementation steps are described in detail below.

[0046] 1. Convert the electric energy signal to be measured into a digital signal, and filter out interference signals from the converted digital signal.

[0047] The electric energy signals to be measured collected in the power grid are generally analog signals. Before subsequent processing, the collected analog signals need to be converted into digital signals. The present invention uses an analog-to-digital converter to convert the collected analog signals into digital signals. After the analog-to-digital conversion of the measured signal, since there are DC components, integer harmonics, non-integer harmonics and high-frequency noise in the signal, these will affect the accuracy of zero-crossing detection. Therefore, the present invention needs to filter out these interference signals.

[0048] For the DC component signal, the present invention uses a first-order high-pass filter to filter out the DC component, and the calculation formula is as follows:

[0049] y(n)=x(n)-x(n-1)+αy(n-1)

[0050] Where n is the sampling point index, n = 1, 2, ... N, x(n) is the input value of the nth point, x(n-1) is the input value of the n-1th point, y(n) is the output of the nth point, and the parameter α controls the degree of attenuation of the DC component. The smaller the α value, the greater the DC attenuation, but the slower the convergence speed; the larger the α value, the smaller the attenuation, but the faster the convergence speed. It can be adjusted according to the DC bias size in actual use.

[0051] Since the typical sampling rates of the metering chip are 6.4KHz, 7.2KHz, and 12.8KHz, it is necessary to design f c (The fundamental frequency in my country is usually around 50 Hz) passband, the filter order will be very high. For integer harmonics, non-integer harmonics, high-frequency noise and other signals, the present invention uses an interpolation low-pass filter to filter them out to further improve the accuracy of zero-crossing detection of the fundamental frequency. The interpolation low-pass filter used in this embodiment includes a cascaded shaping filter H sh (z M ) and the anti-image filter H ir (z M ) level, the shaping filter transfer function is as follows:

[0052]

[0053] Where: h p (k) is the impulse function of the prototype filter, M is h p (k) The number of inserted 0s, N p is the number of shaping filter coefficients. The design index of the prototype filter is: passband length = f pass *M, stopband length = f stop *M, passband ripple PassAtten, stopband ripple StopAtten, you can use the FDATOL toolbox in Matlab to design based on this design indicator to get h p (k), in h p (k) M-1 zeros are inserted between each coefficient to obtain the impulse function of the shaping filter.

[0054] The de-imaging filter is mainly used to remove h p (k) The virtual image caused by zero insertion has the following transfer function:

[0055]

[0056] hir (k) is the impulse function of the de-imaging filter, N ir is the number of de-image filter coefficients, and its design index is: passband length = f pass , Passband ripple PassAtten, stopband ripple StopAtten, can be designed based on this design indicator using the FDATOL toolbox in Matlab to obtain h ir (k).

[0057] 2. Perform zero-crossing detection on the signal after interference processing to obtain the fundamental frequency.

[0058] This embodiment uses a zero-crossing detection method to detect the fundamental frequency of the signal after DC removal, integer and non-integer harmonics, and high-frequency noise filtering. The formula is as follows:

[0059]

[0060] Where: f s is the signal sampling frequency, a and b are the sampling point indexes, and y a ,y b is the sample value of the corresponding index, y a *y a+1 <0 and y a >0,y b *y b+1 <0 and y b >0, a<b, we know that the zero-crossing point from positive to negative is between a and a+1. Similarly, the next zero-crossing point from positive to negative is between b and b+1. b-a is the number of sampling points between index b and index a. Multiple cycles of f can be taken c The results are averaged to further improve the fundamental frequency detection accuracy.

[0061] 3. Extract each harmonic current and voltage signal according to the fundamental frequency.

[0062] An infinite pulse response bandpass filter is used to extract the harmonic current and voltage signals from the analog-to-digital converted signal. The transfer function of the bandpass filter is:

[0063]

[0064] Where w = 2πf h / fs is the angular frequency of the harmonic, f h =hf cis the hth harmonic frequency, and parameter A controls the stopband attenuation of the bandpass filter. The larger the parameter value A is, the greater the stopband attenuation of the bandpass filter is. The fundamental frequency in the actual power grid will not be stable at 50Hz. In order to ensure the accuracy of harmonic measurement when the fundamental frequency fluctuates, the center frequency of the bandpass filter must be kept consistent with the harmonic frequency. When the zero-crossing detection fundamental frequency changes, the parameter w is adjusted in real time to change the center frequency of the filter.

[0065] 4. Calculate electric energy based on the extracted harmonic current and voltage signals.

[0066] According to the harmonic voltage and current signals obtained in step 3, the harmonic power, voltage and current effective value and energy are calculated.

[0067] Through the above process, the present invention utilizes the zero-crossing detection method to monitor the fundamental frequency in the power grid in real time, and adjusts the central frequency of the bandpass filter according to the fundamental frequency, which can meet the requirements of power grid frequency changes. By controlling the parameter A, the stopband attenuation can be adjusted to more than 50 dB, and the influence of adjacent harmonics and fundamental waves can be eliminated. The present invention overcomes the problem of spectrum leakage of the fast Fourier transform method, and can calculate the power of each harmonic, the effective value of voltage and current, and energy with a smaller amount of calculation, which can not only improve the measurement accuracy, but also reduce the amount of calculation and improve the calculation efficiency.

[0068] Example of electric energy harmonic metering system

[0069] The electric energy harmonic metering system in this embodiment includes an analog-to-digital conversion module, a DC removal module, an interpolation low-pass filter, a zero-crossing detection module, a harmonic component separation module and a calculation module; the analog-to-digital conversion module is used to convert the electric energy signal to be measured into a digital signal; the DC removal module is used to filter the DC component of the converted digital signal; the interpolation low-pass filter is used to filter integer harmonics, non-integer harmonics and noise from the signal after the DC component is filtered out; the zero-crossing detection module is used to perform zero-crossing detection on the signal filtered out by the interpolation low-pass filter to obtain the fundamental frequency of the electric energy signal to be measured; the harmonic component separation module is used to separate the harmonic voltage signals and current signals of the electric energy signal to be measured according to the fundamental frequency; the calculation module is used to calculate the electric energy harmonics according to the obtained harmonic voltage signals and current signals. The specific implementation method of each module has been described in detail in the method embodiment, and will not be repeated here.

Claims

1. A method for measuring electric energy harmonics, characterized in that: The measurement method includes the following steps: 1) Convert the electric energy signal to be measured into a digital signal, and filter out interference signals from the converted digital signal; 2) performing zero-crossing detection on the signal after the interference signal filtering operation in step 1) to obtain the fundamental frequency of the electric energy signal to be measured; 3) A second-order bandpass filter with adjustable center frequency is used to separate the harmonic voltage and current signals. The transfer function of the second-order bandpass filter with adjustable center frequency is: w=2πf h / f s is the angular frequency of the harmonic, f s is the signal sampling frequency, f c is the fundamental frequency, f h =hf c is the hth harmonic frequency. Parameter A controls the stopband attenuation of the bandpass filter. The larger the parameter value A is, the greater the stopband attenuation of the bandpass filter is. 4) Calculate the electric energy harmonics based on the obtained harmonic voltage and current signals.

2. The electric energy harmonic measurement method according to claim 1, characterized in that: The interference signal filtering in step 1) includes filtering of DC components, integer harmonics, non-integer harmonics and noise. The DC components are filtered using a high-pass filter; the integer harmonics, non-integer harmonics and noise are filtered using an interpolation low-pass filter.

3. The electric energy harmonic measurement method according to claim 2, characterized in that: The interpolation low-pass filter includes a shaping filter and a de-imaging filter. Both the shaping filter and the de-imaging filter adopt finite impulse response filters. The transfer functions of the shaping filter and the de-imaging filter are respectively: Where: h p (k) is the impulse function of the prototype filter, h ir (k) is the impulse function of the de-imaging filter, M is h p (k) The number of inserted 0s, N p is the number of shaping filter coefficients, N ir is the number of anti-imaging filter coefficients.

4. The electric energy harmonic measurement method according to claim 1 or 3, characterized in that: The calculation formula used for the fundamental frequency in step 2) is: f c is the fundamental frequency, f s is the signal sampling frequency, a and b are the sampling point indexes, and y a ,y b is the sample value of the corresponding index, y a *y a+1 <0 and y a >0,y b *y b+1 <0 and y b >0, a<b, we know that the zero-crossing point from positive to negative is between a and a+1, N b-a is the number of sampling points between index b and index a.

5. An electric energy harmonic metering system, characterized in that: The system comprises an analog-to-digital conversion module, a DC removal module, an interpolation low-pass filter, a zero-crossing detection module, a harmonic component separation module and a calculation module; the analog-to-digital conversion module is used to convert the electric energy signal to be measured into a digital signal; the DC removal module is used to filter the DC component of the converted digital signal; the interpolation low-pass filter is used to filter integer harmonics, non-integer harmonics and noise from the signal after the DC component is filtered out; the zero-crossing detection module is used to perform zero-crossing detection on the signal filtered out by the interpolation low-pass filter to obtain the fundamental frequency of the electric energy signal to be measured; the harmonic component separation module uses a second-order bandpass filter with an adjustable center frequency to separate the harmonic voltage signal and the current signal, and the transfer function of the second-order bandpass filter with an adjustable center frequency is: w=2πf h / f s is the angular frequency of the harmonic, f s is the signal sampling frequency, f c is the fundamental frequency, f h =hf c is the hth harmonic frequency, parameter A controls the stopband attenuation of the bandpass filter, and the larger the parameter value A is, the larger the stopband attenuation of the bandpass filter is; the calculation module is used to calculate the electric energy harmonics according to the obtained harmonic voltage signals and current signals.

6. The electric energy harmonic metering system according to claim 5, characterized in that: The DC removal module adopts a high-pass filter.

7. The electric energy harmonic metering system according to claim 5, characterized in that: The interpolation low-pass filter includes a shaping filter and a de-imaging filter. Both the shaping filter and the de-imaging filter adopt finite impulse response filters. The transfer functions of the shaping filter and the de-imaging filter are respectively: Where: h p (k) is the impulse function of the prototype filter, h ir (k) is the impulse function of the de-imaging filter, M is h p (k) The number of inserted 0s, N p is the number of shaping filter coefficients, N ir is the number of anti-imaging filter coefficients.

8. The electric energy harmonic metering system according to claim 5 or 7, characterized in that: The formula for calculating the fundamental frequency by the zero-crossing detection module is: f c is the fundamental frequency, f s is the signal sampling frequency, a and b are the sampling point indexes, and y a ,y b is the sample value of the corresponding index, y a *y a+1 <0 and y a >0,y b *y b+1 <0 and y b >0, a<b, we know that the zero-crossing point from positive to negative is between a and a+1, N b-a is the number of sampling points between index b and index a.

Citation Information

Patent Citations

  • Control method for distribution network active filtering quiescent reactive compensation

    CN101534011A

  • Power grid frequency measurement method and device

    CN102116798A

  • High-precision harmonic analysis method of sampling data synchronization

    CN102243272A

  • Interpolation structure-based digital filtering method for eLoran receiver

    CN110011677A

  • Method for measuring frequency and transient harmonic waves of isolated network in unstable state

    CN112345826A