A three-phase multifunctional standard harmonic electric energy meter and a three-phase harmonic electric energy measurement method
Through dual-voltage conversion technology of film resistors and precision resistors, combined with fundamental wave phase delay and interpolation compensation algorithms, the problem of measurement inaccuracy of electric energy meters when the frequency becomes larger and the power factor becomes lower in new energy grid-connected scenarios is solved, achieving high Accuracy of harmonic energy measurement.
Patent Information
- Application Number
- CN202410756438.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-13
AI Technical Summary
It is difficult for existing electric energy meters to accurately measure harmonic energy in new energy grid-connected scenarios, especially when the frequency becomes large and the power factor is low. There are problems such as the angle difference becoming large and frequency measurement being inaccurate under multiple zero crossings.
It adopts film resistor and precision resistor dual voltage conversion technology, combines the fundamental wave phase delay algorithm and third-order interpolation compensation algorithm, and achieves accurate time domain reproduction and Precision measurement of harmonic energy.
It improves the accuracy of harmonic energy measurement, reduces spectrum leakage and fence effects, reduces the stability requirements of the power source, and ensures measurement precision under low power factors.
Smart Images

Figure CN118330311B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric energy technology, and more specifically, to a three-phase multifunctional standard harmonic electric energy meter and a three-phase harmonic electric energy measuring method. Background Art
[0002] Based on the development background of "building a new power system with new energy as the main body", this paper focuses on the new problem of how to ensure accurate and fair electricity metering under the scenario of high proportion of new energy access. By analyzing the influence of harmonic components of new energy grid connection, the reliability and accuracy of electricity metering can be improved, and the interests of both electricity supply and demand sides can be effectively protected. It is of great significance to promote the construction and development of a new power system with new energy as the main body.
[0003] GB / T 17215.302-2013 AC measuring equipment, special requirements, Part 2: Static harmonic active energy meter is revised to GB / T 17215.302-2022. The new national standard not only retains the original single harmonic requirements, but also puts forward the measurement accuracy requirements for mixed harmonics. This puts forward higher requirements for harmonic algorithms, and requires that each harmonic can be accurately measured at very low frequency intervals. The algorithm is required to reduce the fence effect of the spectrum, and can support accurate measurement of single harmonics and mixed harmonics. High-accuracy three-phase multifunctional standard harmonic energy meter. However, the existing energy meter has technical problems such as the increase in the angle difference of the voltage transformer due to the increase in frequency, the increase in the angle difference of the precision resistor divider due to the influence of the distributed capacitance on the low power factor harmonic power, and the inaccurate measurement of multiple sub-zero frequencies caused by harmonics. Summary of the invention
[0004] In view of the deficiencies in the prior art, the present invention provides a three-phase multifunctional standard harmonic electric energy meter and a three-phase harmonic electric energy measurement method.
[0005] According to one aspect of the present invention, there is provided a three-phase multifunctional standard harmonic energy meter, comprising:
[0006] A precision voltage conversion module and a low-latency voltage conversion module respectively connected to the three phases a, b, and c; a plurality of first single-time analog front-end drivers respectively connected to each precision voltage conversion module and the low-latency voltage conversion module; and a first multi-channel AD synchronous conversion module connected to the plurality of first single-time analog front-end drivers;
[0007] A precision low-latency current conversion module connected to the three phases a, b, and c respectively; a plurality of second single-time analog front-end drivers connected to the precision low-latency current conversion module respectively; and a second multi-channel AD synchronous conversion module connected to the plurality of second single-time analog front-end drivers;
[0008] The first multi-channel AD synchronous conversion module and the second multi-channel AD synchronous conversion module are connected in SPI cascade connection;
[0009] The processing module connected to the first multi-channel AD synchronous conversion module and the second multi-channel AD synchronous conversion module is used to process the measured signal and calculate the electric energy data of the three phases a, b, and c, wherein the electric energy data includes the harmonic active power and full-wave electric energy of the three phases a, b, and c.
[0010] Optionally, the three-phase multifunctional standard harmonic watt-hour meter is characterized in that it further includes: a power supply module for supplying power to the three-phase multifunctional standard harmonic watt-hour meter.
[0011] Optionally, the first multi-channel AD synchronous conversion module and the second multi-channel AD synchronous conversion module are formed by cascading 8-channel synchronous AD converters of 24BIT.
[0012] Optionally, the first multi-channel AD synchronous conversion module and the second multi-channel AD synchronous conversion module further include a reference voltage, and the reference voltage has a reference voltage value of 2.5V, an initial accuracy of 1mV, and a temperature drift of 3ppm.
[0013] Optionally, the processing module includes: a chip and peripherals U3, the chip is provided with multiple peripheral interfaces, and multiple peripheral units are connected through the peripheral interfaces, wherein the peripheral units include: a display unit and a keyboard.
[0014] Optionally, the precision low-delay current conversion module consists of a current transformer and a precision resistor, with a linearity of less than 2ppm, a transformation ratio of 600:1, and a rated primary DC current of 60A.
[0015] Optionally, the precision voltage conversion module is composed of two 1ppm first resistors and second resistors connected in series, the first resistor RH=219kΩ, the second resistor RL=1KΩ, the transformation ratio is 220:1, the rated primary voltage is 220V, the voltage value after secondary current conversion is 1V, and the maximum peak value is 550V.
[0016] Optionally, the low-delay voltage conversion module is composed of a first film resistor and a second film resistor in series, the first film resistor RH'=219kΩ, the second film resistor RL'=1KΩ, the transformation ratio is 220:1, the rated primary voltage is 220V, the voltage value after secondary current conversion is 1V, and the maximum peak is 550V.
[0017] Optionally, the first single analog front-end driver and the second single analog front-end driver increase the common mode voltage of the reference voltage 2.5V to match the first multi-channel AD synchronous conversion module and the second multi-channel AD synchronous conversion module.
[0018] According to another aspect of the present invention, there is provided a three-phase harmonic electric energy measurement method, comprising:
[0019] Collect low-delay voltage sampling data, precision voltage sampling data and precision low-delay current sampling data of three phases a, b and c;
[0020] The fundamental frequency algorithm is used to calculate the fundamental frequencies of the low-latency voltage sampling data and the precision voltage sampling data, and the fundamental frequencies of the three phases a, b, and c are determined;
[0021] The fundamental wave phase delay algorithm is used to calculate the delay time between the low-delay voltage sampling data and the precision voltage sampling data according to the fundamental wave frequency;
[0022] Using a third-order interpolation compensation algorithm to compensate the precision voltage sampling data according to the delay time, and determining the compensated precision voltage sampling data;
[0023] Adopting adaptive harmonic quasi-synchronous algorithm, the electric energy data of three phases a, b and c are calculated according to the compensated precision voltage sampling data and low-delay current sampling data.
[0024] Optionally, a fundamental frequency algorithm is used to calculate the fundamental frequencies of the low-latency voltage sampling data and the precision voltage sampling data, respectively, to determine the fundamental frequencies of the three phases a, b, and c, including:
[0025] The fundamental frequency algorithm is used to calculate the fundamental frequencies of the low-latency voltage sampling data and the precision voltage sampling data, respectively, to determine the low-latency voltage fundamental frequency and the precision voltage fundamental frequency;
[0026] The fundamental frequencies of the three phases a, b and c are determined by fitting the low-delay voltage fundamental frequency and the precise voltage fundamental frequency.
[0027] Optionally, a fundamental wave phase delay algorithm is used to calculate the delay time between the low-delay voltage sampling data and the precision voltage sampling data according to the fundamental wave frequency, including:
[0028] According to the fundamental frequency, calculate the number of sampling points involved in the fundamental phase delay calculation within the 50-cycle time window;
[0029] Calculate the orthogonal basis of the fundamental waves of the three phases a, b, and c according to the number of sampling points;
[0030] Calculate the first fundamental phase of the low-latency voltage sampling data according to the orthogonal basis and the low-latency voltage sampling data, and calculate the first channel phase of the low-latency voltage sampling data according to the first fundamental phase;
[0031] Calculate the second fundamental wave phase of the precision voltage sampling data according to the orthogonal basis and the precision voltage sampling data, and calculate the second channel phase of the precision voltage sampling data according to the second fundamental wave phase;
[0032] The delay time between the low-delay voltage sampling data and the precision voltage sampling data is calculated according to the first channel phase and the second channel phase.
[0033] Optionally, the formula of the third-order interpolation compensation algorithm is as follows:
[0034]
[0035] In the formula, j For the j Subsampling, k For the k Subsampling, x j , x k is the time scale of the sampling point, n=4 represents the third-order interpolation algorithm, x The value range is x 1 and x 4 sampling points between the time scale, Tdelay is the delay time, dataU _ad dataU is the compensated precision voltage sampling data after compensation. _a It is the precise voltage sampling data.
[0036] Optionally, the power data includes: harmonic active power and full-wave power;
[0037] In addition, an adaptive harmonic quasi-synchronous algorithm is used to calculate the power data of phases a, b, and c based on the compensated precision voltage sampling data and the low-delay current sampling data, including:
[0038] Construct the orthogonal functions of the 5th-order frequency adaptive quasi-synchronous algorithm;
[0039] According to the compensated precision voltage sampling data and the low-delay current sampling data, the voltage real part, the voltage imaginary part, the current real part and the current imaginary part of the orthogonal function are constructed;
[0040] Calculate the harmonic voltage of each harmonic of the compensated precision voltage sampling data according to the compensated precision voltage sampling data, the real part of the voltage, and the imaginary part of the voltage;
[0041] Calculate the harmonic current of each harmonic of the low-latency current sampling data according to the low-latency current sampling data, the real part of the current, and the imaginary part of the current;
[0042] According to the harmonic voltage and harmonic current, the harmonic active power of the three phases a, b, and c is calculated, and the harmonic active electric energy of the three phases a, b, and c is calculated according to the harmonic active power;
[0043] The full-wave power of phases a, b, and c is calculated based on the orthogonal function, compensated precision voltage sampling data, and low-delay current sampling data, and the full-wave electric energy of phases a, b, and c is calculated based on the full-wave power.
[0044] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the method described in any one of the above aspects of the present invention.
[0045] According to another aspect of the present invention, an electronic device is provided, comprising: a processor; a memory for storing instructions executable by the processor; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method described in any one of the above aspects of the present invention.
[0046] Thus, through the dual voltage conversion technology of film resistors and precision resistors, combined with the fundamental phase delay algorithm and the third-order interpolation compensation algorithm, the technical process and method of accurately reproducing the voltage signal in the time domain are realized, and the problem of inaccurate frequency measurement of harmonics crossing zero multiple times is solved through the Root-MUSIC algorithm. In addition, the phase shift caused by the increase of harmonic frequency of the precision power frequency voltage transformer and the phase shift caused by the influence of distributed capacitance of the precision resistor divider on the low power factor harmonic power are solved. After the time domain delay compensation based on dual voltage conversion is designed by the present invention, the accuracy can reach 10ns, the influence on the 50th harmonic is no more than 0.5 points, and the influence is no more than 0.05% under the low power factor of 0.5L and 0.5C. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] A more complete understanding of exemplary embodiments of the present invention may be obtained by referring to the following drawings:
[0048] Figure 1 It is a structural schematic diagram of a three-phase multifunctional standard harmonic electric energy meter provided by an exemplary embodiment of the present invention;
[0049] Figure 2 is a schematic diagram of a precise and low-delay current conversion principle provided by an exemplary embodiment of the present invention;
[0050] Figure 3 is a schematic diagram of the precision voltage conversion principle provided by an exemplary embodiment of the present invention;
[0051] Figure 4 It is a schematic diagram of the low-delay voltage conversion principle provided by an exemplary embodiment of the present invention;
[0052] Figure 5 is a schematic diagram of the structure of an analog front-end driver provided by an exemplary embodiment of the present invention;
[0053] Figure 6 is a flow chart of a three-phase harmonic electric energy measurement method provided by an exemplary embodiment of the present invention;
[0054] Figure 7 is another flow chart of a three-phase harmonic electric energy measurement method provided by an exemplary embodiment of the present invention;
[0055] Figure 8 This is a structure of an electronic device provided by an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0056] Below, the exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments of the present invention, and it should be understood that the present invention is not limited to the exemplary embodiments described here.
[0057] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
[0058] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present invention are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
[0059] It should also be understood that, in the embodiments of the present invention, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0060] It should also be understood that any component, data or structure mentioned in the embodiments of the present invention can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0061] In addition, the term "and / or" in the present invention is only a description of the association relationship of the associated objects, indicating that there can be three relationships. 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 the present invention generally indicates that the associated objects before and after are in an "or" relationship.
[0062] It should also be understood that the description of the various embodiments of the present invention focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0063] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0064] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0065] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0066] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0067] Figure 1 1 is a schematic diagram of the structure of a three-phase multifunctional standard harmonic energy meter provided by an exemplary embodiment of the present invention. Figure 1 As shown, the three-phase multifunctional standard harmonic energy meter includes:
[0068] A precision voltage conversion module and a low-latency voltage conversion module respectively connected to the three phases a, b, and c; a plurality of first single-time analog front-end drivers respectively connected to each precision voltage conversion module and the low-latency voltage conversion module; and a first multi-channel AD synchronous conversion module connected to the plurality of first single-time analog front-end drivers;
[0069] A precision low-latency current conversion module connected to the three phases a, b, and c respectively; a plurality of second single-time analog front-end drivers connected to the precision low-latency current conversion module respectively; and a second multi-channel AD synchronous conversion module connected to the plurality of second single-time analog front-end drivers;
[0070] The first multi-channel AD synchronous conversion module and the second multi-channel AD synchronous conversion module are connected in SPI cascade connection;
[0071] The processing module connected to the first multi-channel AD synchronous conversion module and the second multi-channel AD synchronous conversion module is used to process the measured signal and calculate the electric energy data of the three phases a, b, and c, wherein the electric energy data includes the harmonic active power and full-wave electric energy of the three phases a, b, and c.
[0072] Specifically, the patent of the present invention proposes a method and system for a three-phase multifunctional standard harmonic energy meter. Based on the dual voltage conversion technology of film resistors and precision resistors, combined with the fundamental phase delay algorithm and the third-order interpolation compensation algorithm, the technical process and method of accurately reproducing the voltage signal in the time domain are realized, and the phase shift caused by the increase in frequency of the precision power frequency voltage transformer and the phase shift caused by the distributed capacitance of the precision resistor divider on the low power factor harmonic power are solved. Based on the Root-MUSIC algorithm, the multiple zero crossings and frequency measurement inaccuracy caused by harmonics are solved; based on the adaptive harmonic quasi-synchronous algorithm, the spectrum leakage and fence effect caused by the frequency deviation of the sampling rate of the sigma-delta ADC are solved; based on the phase delay compensation algorithm and the interpolation algorithm, the conditions are created for the full-wave active energy to adopt the fifth-order quasi-synchronous method based on the dot product method, thereby improving the measurement accuracy of the full-wave active energy and greatly reducing the stability requirements of the full-wave active energy on the power source; based on the adaptive quasi-synchronous algorithm, the sampling asynchronous effect caused by the fixed sampling rate of the sigma-delta ADC and the asynchronous signal input frequency is solved. Finally, the precise measurement of harmonic electric energy is achieved.
[0073] Among them, since the bandwidth of the fluxgate current transformer can reach DC~500kHZ, the 50th harmonic of the present invention only has a bandwidth of 2.5k, and the current does not require dual-channel design of hardware and hardware delay compensation.
[0074] Furthermore, the present invention discloses a method and system for a three-phase multifunctional standard harmonic electric energy meter, which realizes the technical process and method of accurately reproducing the voltage signal in the time domain through the dual voltage conversion technology of film resistors and precision resistors, combined with the fundamental phase delay algorithm and the third-order interpolation compensation algorithm, and solves the problem of inaccurate frequency measurement of harmonics crossing multiple times below zero through the Root-MUSIC algorithm. A frequency algorithm based on root-finding multiple signal classification and a method for extracting harmonic components by self-built harmonic orthogonal function are proposed, and the active power of the harmonics is obtained through the fifth-order quasi-synchronous algorithm and vector multiplication method, eliminating the error of sampling asynchronously, reducing the shortcomings caused by the fixed sampling rate, solving the spectrum leakage and fence effect caused by the frequency deviation of the sampling rate based on the sigma-deltaADC, greatly improving the measurement accuracy of the full-wave active electric energy and greatly reducing the stability requirements of the full-wave active electric energy on the power source.
[0075] refer to Figure 1As shown, a three-phase multifunctional standard harmonic energy meter consists of precision voltage conversion modules T1, T3, T5, low-delay voltage conversion modules T2, T4, T6, precision low-delay current conversion T7~T9, analog front end A1~A9, first multi-channel AD synchronous conversion module U1, second multi-channel AD synchronous conversion module U2, processing module U3, display unit U5, keyboard U4, reference voltage, power supply POW1. The specific principle is as follows:
[0076] Further, refer to Figure 2 As shown, the precision low-delay current transformer T7~T9 is composed of fluxgate current transformer AIT60 and precision resistor, with a linearity of less than 2ppm. The transformation ratio is 600:1, the rated primary DC current is 60A, the primary winding is 6 turns, the transformation ratio is 100:1, RS=20 ohms, RS is a 0.01% VISHAY precision resistor, when rated at 5A, the voltage value after secondary current conversion is 1V, the maximum input peak is 10A, and the AC maximum is 7.07A.
[0077] Further, refer to Figure 3 As shown, the precision voltage conversion modules T1, T3, and T5 are composed of VISHAY 1ppm precision resistors, RH=219kΩ, RL=1KΩ. The transformation ratio is 220:1, the rated primary voltage is 220V, the voltage value after secondary current conversion is 1V, and the maximum peak value is 550V.
[0078] Further, refer to Figure 4 As shown, the low-delay voltage conversion modules T2, T4, and T6 are composed of film resistors. The resistors use non-inductive resistor materials inside, and the voltage shielding ring and internal resistors are equipotential. The influence of internal distributed capacitance can be eliminated to achieve the characteristics of high-frequency input and low delay. For example, the customized molded resistors of Xi'an Yongtai Technology are used, RH'=219kΩ, RL'=1KΩ. The transformation ratio is 220:1, the rated primary voltage is 220V, the voltage value after secondary current conversion is 1V, and the maximum peak value is 550V.
[0079] Further, refer to Figure 5 As shown, the analog front-end drive is ×1 (A1~A9), amplified and driven by AD620 at 1:1, and the raised common-mode voltage of REF2.5V is increased to match the first multi-channel AD synchronous conversion module / the second multi-channel AD synchronous conversion module.
[0080] Furthermore, the first multi-channel AD synchronous conversion module U1 and the second multi-channel AD synchronous conversion module U2 are formed by cascading 24BIT 8-channel synchronous sampling sigma-delta AD converter ADS1278, with a typical integral error of ±0.0003%, a maximum sampling rate of 128KSPS, and a reference voltage of ADR441B with a reference voltage value of 2.5V. The ADS1278 cascade has picosecond-level asynchronous performance, which is very suitable for synchronous sampling of low-frequency high-order harmonics.
[0081] The reference voltage has an initial accuracy of 1mV and a temperature drift of 3ppm.
[0082] The display unit U5 is a liquid crystal display module, which is directly driven by the BF609 chip and its peripherals through the AMC interface.
[0083] Keyboard U4 is a keyboard, with a total of 12 keyboard inputs to the 12 IOs of the processing unit U3 and its peripherals, which are used to operate the start and end of the test.
[0084] The BF609 chip and its peripherals U3 of the processing unit U3 are composed of the BF609 chip and its peripherals of ADI. The chip has a large number of built-in peripherals, including 1 SPI interface, 16 general IO ports, AMC interface (asynchronous memory interface), etc. The 256MBYTE DRAM is used to complete the core algorithm, task scheduling, display and input, etc. of the present invention.
[0085] The power module POW1 is a switching power supply with 4 channels: +15V, -15V, +1.8V, +3.3V, and output current: 2A.
[0086] In one embodiment, reference Figure 1 As shown, the measurement principle of the three-phase multifunctional standard harmonic electric energy meter proposed in the present application is as follows: the three-phase voltage undergoes precise voltage conversion and low-delay voltage conversion and enters the six channels of the multi-channel AD synchronous conversion module U1 through analog front-end drive respectively. The six channels of the AD synchronous conversion module U1 simultaneously sample and save the three-phase voltage dataU_a of precise voltage conversion and the three-phase voltage dataU_d of low-delay voltage conversion. At the same time, the three-phase current enters the three channels of the first multi-channel AD synchronous conversion module U1 after precise low-delay current conversion and analog front-end drive. The three channels of the second multi-channel AD synchronous conversion module U2 simultaneously sample and save the three-phase current dataI_ad of precise low-delay current conversion, and calculate the DC power, fundamental active power, harmonic active power and full-wave active power.
[0087] Figure 6 FIG. 1 is a flow chart of a three-phase harmonic electric energy measurement method provided by an exemplary embodiment of the present invention. Figure 6 As shown, the method 600 includes:
[0088] Step 601: Collect low-latency voltage sampling data, precision voltage sampling data and precision low-latency current sampling data of three phases a, b and c;
[0089] Step 602: using a fundamental frequency algorithm to calculate the fundamental frequencies of the low-latency voltage sampling data and the precision voltage sampling data, respectively, and determining the fundamental frequencies of the three phases a, b, and c;
[0090] Step 603: using a fundamental wave phase delay algorithm to calculate the delay time between the low-delay voltage sampling data and the precise voltage sampling data according to the fundamental wave frequency;
[0091] Step 604: using a third-order interpolation compensation algorithm to compensate the precision voltage sampling data according to the delay time, and determining compensated precision voltage sampling data;
[0092] Step 605: Adopting an adaptive harmonic quasi-synchronous algorithm, the electric energy data of the three phases a, b, and c are calculated according to the compensated precise voltage sampling data and the low-delay current sampling data.
[0093] Specifically, refer to Figure 7 As shown, the processing unit first measures the delay of the three-phase voltage through the phase delay of the fundamental wave and converts it into the delay time Tdelay, then delays the precision voltage sampling dataU_a, and outputs dataU_ad as the final sampling data after compensation through the third-order Lagrange. The fundamental frequency algorithm uses ROOT-MUSIC (root-finding multiple signal classification) for calculation, and the delay value Tdelay is calculated for dataU_d and data_U_a through the fundamental phase delay algorithm. The adaptive quasi-synchronous harmonic algorithm accurately calculates the DC power, fundamental active power, harmonic active power, and full-wave active power.
[0094] (1) Fundamental frequency algorithm:
[0095] Using the ROOT-MUSIC algorithm, we first use dataU_ad to construct the covariance matrix of the signal space, and then perform eigenvalue decomposition on the covariance matrix to obtain the eigenvectors of the signal subspace. Next, we construct a polynomial whose coefficients are related to the eigenvectors of the signal subspace, and then calculate the signal frequency by solving the roots of the polynomial. This method can very accurately calculate the frequencies of each harmonic, as well as the frequency of the fundamental wave. The accuracy of the frequency is determined by the interval between the spectra, as well as the number of sampling points and amplitude of the signal. Since the fundamental signal of the voltage is very large and is far away from the spectra of other harmonics, the frequency of the fundamental wave can be measured very accurately, with an accuracy of up to 10 within one cycle. -5In theory, the ROOT-MUSIC algorithm only needs a few sampling points to accurately calculate the frequency.
[0096] (2) Fundamental wave phase delay algorithm:
[0097] The ideal frequency of this design is 50Hz, the sampling rate is 25kSPS, and 25,000 points of sampled data are calculated every second.
[0098] When the test frequency is lower than 50Hz, the present invention needs more than 25,000 points of sampling data. The data is kept for 2 seconds to prevent insufficient sampling data after the frequency is lower than 50Hz, that is, the data is kept for 2 seconds and the data refresh rate is 1 second. In fact, each time the data is saved, the data of the previous second is repeated for nearly 1 second.
[0099] (1)
[0100] Where: N is the number of sampling points involved in the fundamental wave phase delay calculation within a 50-cycle time window, ROUND is the rounding function, f is the fundamental frequency.
[0101] The orthogonal basis of the fundamental wave is constructed according to the N value calculated by formula (1):
[0102] (2)
[0103] In the formula, i is the sampling value sequence number, C z is a collection of arrays of orthogonal bases.
[0104] dataU_a Fundamental phase calculation:
[0105] (3)
[0106] In the formula, b =50 dataU_a Sampling data frequency, C b for dataU_a The Fourier coefficients of the fundamental wave, for dataU_a The phase of the channel, im is the imaginary part and re is the real part.
[0107] dataU_d Fundamental phase calculation
[0108] (4)
[0109] In the formula, C xfor dataU_d The Fourier coefficients of the fundamental wave, for dataU_d The phase of the channel, x=50 is dataU_d The number of waves in the sampling data cycle.
[0110] (5)
[0111] (3) Interpolation compensation algorithm
[0112] The core idea of the interpolation algorithm is to use polynomials to simulate the function of the signal. The more times the interpolation is performed, the higher the algebraic accuracy. , using the n-order Lagrange interpolation polynomial formula, the function value y for any x in the interpolation interval can be obtained by the following formula:
[0113] (6)
[0114] As shown in the above formula, the more iterations, the higher the accuracy, but the greater the amount of calculation and the longer the lag effect. Based on various indicators, we use quadratic interpolation. In this invention, n=4 is used, and the third-order interpolation algorithm can obtain very high accuracy. Generally, the maximum interpolation error of the third-order interpolation algorithm is 3.1*10 -5 Since the delay of low-latency voltage conversion is also at the 1us level, compared with the 40us period of 25k sampling rate, the truncation error at the edge of the sampling point can obtain very high accuracy, and the maximum error from the middle value can be improved by at least 20 times, better than 10 -6 , which can fully meet the design requirements of the present invention, as shown in formula (7).
[0115] (7)
[0116] In the formula, j For the j Subsampling, k For the k Subsampling, x j , x k is the time scale of the sampling point, n=4 represents the third-order interpolation algorithm, x The value range is x 1 and x 4 sampling points between the time scale, Tdelay is the delay time, dataU _ad dataU is the compensated precision voltage sampling data after compensation. _a It is the precise voltage sampling data.
[0117] (4) Adaptive harmonic quasi-synchronous algorithm
[0118] The essence of the quasi-synchronous algorithm is to use recursive iteration to accurately calculate the average value of the periodic function. For electrical parameters (such as amplitude), as long as the periodic signal Multiply to get According to the orthogonality principle of functions Taking the average value, we get However, for harmonic measurement, it is necessary to establish an accurate Fourier reference orthogonal vector and . Reference orthogonal vector and measured signal Multiply them in the time domain to obtain a periodic function including the real and imaginary parts of the mth harmonic and ,
[0119] in, f ( t ) of m The subharmonic frequency is m × f .
[0120] when When, yes and The amplitude of the mth harmonic cannot be obtained accurately by averaging.
[0121] Assume the fundamental frequency of the signal is f , according to the Fourier series:
[0122] (8)
[0123] (9)
[0124] right and Taking the average, we get:
[0125] (10)
[0126] (11)
[0127] Comparing equations (8), (9) and (10) and (11), we get:
[0128] (12)
[0129] (13)
[0130] So the nth harmonic coefficient is:
[0131] (14)
[0132] Assume: Since the signal frequency is known f Through the classification of multiple signals, the average period of the quasi-synchronous algorithm principle can be calculated using the frequency formula (1): N , accurately find and The average value of the signal is then obtained. m Vector of subharmonics.
[0133] The present invention adopts a 5th order frequency adaptive quasi-synchronous algorithm. Assume that the 5th order quasi-synchronous algorithm function is , the voltage sampling is , current sampling signal The real part of the orthogonal function is , the imaginary part of the orthogonal function is in, v is the number of sampling starting points, N The number of sampling points for 50 cycles.
[0134] The real and imaginary parts of the mth harmonic voltage are:
[0135] (15)
[0136] The real and imaginary parts of the mth harmonic current are:
[0137] (16)
[0138] Through formula (15) and formula (16), we can get:
[0139] The mth active power:
[0140] (17)
[0141] The full-wave power uses formula 18, which does not contain the orthogonal error caused by the deviation between the ideal frequency of the orthogonal function and the measured frequency:
[0142] (18)
[0143] Therefore, the present invention adopts ROOT-MUSIC root-finding multiple signal classification method to accurately find the frequency of the fundamental wave under mixed harmonics, and then establish a high-accuracy orthogonal basis for each harmonic. Due to the use of a sampling rate of 25kSPS and an adaptive 5th-order quasi-synchronous algorithm, an algorithm accuracy of 10ppm can still be obtained under 50th harmonics. In view of the frequency band delay phase shift of the voltage sensor, a dual voltage converter + phase delay algorithm + interpolation compensation algorithm is designed to make accurate corrections in the time domain through software and hardware, thereby creating conditions for the full-wave active power to directly adopt a 5th-order quasi-synchronous algorithm based on direct multiplication of voltage and current. The direct dot product + 5th-order quasi-synchronous algorithm in the time domain can improve the accuracy of the algorithm and greatly improve the requirements of the full-wave active power on the stability of the power source.
[0144] Figure 8 This is a structure of an electronic device provided by an exemplary embodiment of the present invention. Figure 8 As shown, the electronic device 80 includes one or more processors 81 and a memory 82 .
[0145] The processor 81 may be a central processing unit (CPU) or other forms of processing modules having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0146] The memory 82 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 81 may run the program instructions to implement the methods of the software programs of the various embodiments of the present invention described above and / or other desired functions. In one example, the electronic device may also include: an input device 83 and an output device 84, which are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0147] In addition, the input device 83 may also include, for example, a keyboard, a mouse, etc.
[0148] The output device 84 can output various information to the outside, and can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto.
[0149] Of course, to simplify, Figure 8Only some of the components related to the present invention in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, the electronic device may further include any other appropriate components according to specific application conditions.
[0150] In addition to the above-mentioned methods and devices, an embodiment of the present invention may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present invention described in the above-mentioned "Exemplary Method" section of this specification.
[0151] The computer program product may be written in one or more programming languages to write program code for performing the operations of the embodiments of the present invention, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0152] In addition, an embodiment of the present invention may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present invention described in the above “Exemplary Method” section of this specification.
[0153] The computer readable storage medium can adopt one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, system or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0154] The basic principle of the present invention is described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, strengths, effects, etc. mentioned in the present invention are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present invention. In addition, the specific details disclosed above are only for the purpose of illustration and facilitation of understanding, rather than limitation, and the above details do not limit the present invention to being implemented by adopting the above specific details.
[0155] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0156] The block diagrams of the devices, systems, equipment, and systems involved in the present invention are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, systems, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The word "such as" used here refers to the phrase "such as but not limited to", and can be used interchangeably with it.
[0157] The method and system of the present invention may be implemented in many ways. For example, the method and system of the present invention may be implemented by software, hardware, firmware or any combination of software, hardware, firmware. The above order of steps for the method is only for illustration, and the steps of the method of the present invention are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present invention may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
[0158] It should also be noted that in the system, device and method of the present invention, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. The above description of the disclosed aspects is provided to enable any technician in the field to make or use the present invention. Various modifications to these aspects are very obvious to those skilled in the art, and the general principles defined here can be applied to other aspects without departing from the scope of the present invention. Therefore, the present invention is not intended to be limited to the aspects shown here, but in accordance with the widest range consistent with the principles and novel features disclosed here.
[0159] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present invention to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A three-phase multifunctional standard harmonic energy meter, characterized in that: include: A precision voltage conversion module and a low-delay voltage conversion module respectively connected to phases a, b, and c; A plurality of first single-time analog front-end drivers respectively connected to each of the precision voltage conversion modules and the low-latency voltage conversion modules; and a first multi-channel AD synchronous conversion module connected to the plurality of first single-time analog front-end drivers; A precision low-latency current conversion module connected to the three phases a, b, and c respectively; a plurality of second single-time analog front-end drivers connected to the precision low-latency current conversion module respectively; and a second multi-channel AD synchronous conversion module connected to the plurality of second single-time analog front-end drivers; The first multi-channel AD synchronous conversion module and the second multi-channel AD synchronous conversion module are connected in SPI cascade connection; A processing module connected to the first multi-channel AD synchronous conversion module and the second multi-channel AD synchronous conversion module, used to process the measured signal and calculate the electric energy data of the three phases a, b and c, wherein the electric energy data includes the harmonic active power and full-wave electric energy of the three phases a, b and c; The precision voltage conversion module is composed of two 1ppm first resistors and second resistors connected in series, the first resistor RH=219kΩ, the second resistor RL=1KΩ, the transformation ratio is 220:1, the rated primary voltage is 220V, the voltage value after secondary current conversion is 1V, and the maximum peak value is 550V; The low-delay voltage conversion module is composed of a first film resistor and a second film resistor connected in series, wherein the first film resistor RH'=219kΩ, the second film resistor RL'=1KΩ, the transformation ratio is 220:1, the rated primary voltage is 220V, the voltage value after secondary current conversion is 1V, and the maximum peak value is 550V.
2. The three-phase multifunctional standard harmonic energy meter according to claim 1 is characterized in that: Also includes: A power supply module is used to supply power to the three-phase multifunctional standard harmonic energy meter.
3. The three-phase multifunctional standard harmonic energy meter according to claim 1 is characterized in that: The first multi-channel AD synchronous conversion module and the second multi-channel AD synchronous conversion module are formed by cascading 8-channel synchronous AD converters of 24BIT.
4. The three-phase multifunctional standard harmonic energy meter according to claim 1 is characterized in that: The first multi-channel AD synchronous conversion module and the second multi-channel AD synchronous conversion module further include a reference voltage, and the reference voltage has a reference voltage value of 2.5V, an initial accuracy of 1mV, and a temperature drift of 3ppm.
5. The three-phase multifunctional standard harmonic energy meter according to claim 1 is characterized in that: The processing module includes: a chip and a peripheral U3, the chip is provided with a plurality of peripheral interfaces, and a plurality of peripheral units are connected to the peripheral interfaces, wherein the peripheral units include: a display unit and a keyboard.
6. The three-phase multifunctional standard harmonic energy meter according to claim 1 is characterized in that: The precision low-delay current conversion module is composed of a current transformer and a precision resistor, with a linearity of less than 2ppm, a transformation ratio of 600:1, and a rated primary DC current of 60A.
7. The three-phase multifunctional standard harmonic energy meter according to claim 1 is characterized in that: The first single analog front-end driver and the second single analog front-end driver increase the common mode voltage of the reference voltage 2.5V to match the first multi-channel AD synchronous conversion module and the second multi-channel AD synchronous conversion module.
8. A three-phase harmonic electric energy measurement method implemented by the three-phase multifunctional standard harmonic electric energy meter according to any one of claims 1 to 7, characterized in that: include: Collect low-delay voltage sampling data, precision voltage sampling data and precision low-delay current sampling data of three phases a, b and c; The fundamental frequency algorithm is used to calculate the fundamental frequencies of the low-latency voltage sampling data and the precision voltage sampling data respectively, and determine the fundamental frequencies of the three phases a, b, and c; Using a fundamental wave phase delay algorithm, the delay time between the low-delay voltage sampling data and the precision voltage sampling data is calculated according to the fundamental wave frequency; Using a third-order interpolation compensation algorithm to compensate the precision voltage sampling data according to the delay time, and determine compensated precision voltage sampling data; An adaptive harmonic quasi-synchronous algorithm is used to calculate the electric energy data of the three phases a, b, and c according to the compensated precision voltage sampling data and the low-latency current sampling data.
9. The method according to claim 8, characterized in that The fundamental frequencies of the low-latency voltage sampling data and the precision voltage sampling data are calculated respectively by using a fundamental frequency algorithm to determine the fundamental frequencies of the three phases a, b, and c, including: The fundamental frequency algorithm is used to calculate the fundamental frequencies of the low-latency voltage sampling data and the precision voltage sampling data, respectively, to determine the low-latency voltage fundamental frequency and the precision voltage fundamental frequency; The fundamental frequencies of the three phases a, b, and c are determined by fitting the low-delay voltage fundamental frequency and the precision voltage fundamental frequency.
10. The method according to claim 8, characterized in that The fundamental phase delay algorithm is used to calculate the delay time between the low-delay voltage sampling data and the precise voltage sampling data according to the fundamental frequency, including: According to the fundamental frequency, the number of sampling points involved in the fundamental phase delay calculation within a time window of 50 cycles is calculated; Calculate the orthogonal basis of the fundamental waves of the three phases a, b, and c according to the number of sampling points; Calculating a first fundamental phase of the low-latency voltage sampling data according to the orthogonal basis and the low-latency voltage sampling data, and calculating a first channel phase of the low-latency voltage sampling data according to the first fundamental phase; Calculate a second fundamental phase of the precision voltage sampling data according to the orthogonal basis and the precision voltage sampling data, and calculate a second channel phase of the precision voltage sampling data according to the second fundamental phase; The delay time between the low-latency voltage sampling data and the precision voltage sampling data is calculated according to the first channel phase and the second channel phase.
11. The method according to claim 8, characterized in that The formula of the third-order interpolation compensation algorithm is as follows: In the formula, j For the j Subsampling, k For the k Subsampling, x j , x k is the time scale of the sampling point, n=4 represents the third-order interpolation algorithm, x The value range is x 1 and x 4 sampling point time stamp, Tdelay is the delay time, dataU _ad dataU is the compensated precision voltage sampling data after compensation. _a It is the precise voltage sampling data.
12. The method according to claim 8, characterized in that The electric energy data includes: harmonic active power and full-wave electric energy; In addition, an adaptive harmonic quasi-synchronous algorithm is used to calculate the electric energy data of the three phases a, b, and c according to the compensated precision voltage sampling data and the low-latency current sampling data, including: Construct the orthogonal functions of the 5th-order frequency adaptive quasi-synchronous algorithm; Constructing the voltage real part, voltage imaginary part, current real part and current imaginary part of the orthogonal function according to the compensated precision voltage sampling data and the low-latency current sampling data; Calculate the harmonic voltage of each harmonic of the compensated precision voltage sampling data according to the compensated precision voltage sampling data, the real part of the voltage, and the imaginary part of the voltage; Calculate the harmonic current of each harmonic of the low-latency current sampling data according to the low-latency current sampling data, the real part of the current, and the imaginary part of the current; Calculating the harmonic active power of the three phases a, b, and c according to the harmonic voltage and the harmonic current, and calculating the harmonic active electric energy of the three phases a, b, and c according to the harmonic active power; According to the orthogonal function, the compensated precision voltage sampling data and the low-delay current sampling data, the full-wave power of the three phases a, b and c is calculated, and the full-wave electric energy of the three phases a, b and c is calculated according to the full-wave power.
13. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the method according to any one of claims 8 to 12.
14. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 8 to 12.
Citation Information
Cited By
Method and system for measuring and analyzing harmonic content of power grid
CN119165243A
