Frequency measurement method and device for single-phase AC power grid
By performing voltage/current sampling and filtering integration processing on the single-phase AC power grid, a synthetic vector is generated to calculate the power grid frequency, which solves the problems of low frequency measurement accuracy and slow response speed in the existing technology, achieves fast and accurate frequency measurement, and reduces hardware costs.
Patent Information
- Application Number
- CN202410222230.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-02-28
AI Technical Summary
Existing single-phase AC power grid frequency measurement methods have low measurement accuracy and slow response speed when faced with harmonic pollution, and require increased hardware costs or long data windows, making it impossible to quickly and accurately determine power grid frequency changes.
By sampling the voltage/current of the single-phase AC power grid, performing filtering and integration processing to generate same-frequency in-phase quadrature signals and same-frequency non-in-phase quadrature signals, establish a composite vector, and calculate the unit phase angle and rotation angular velocity of the composite vector, thereby real-time Calculate grid frequency, avoiding increased hardware costs and extended data windows.
It realizes the rapid and accurate measurement of the single-phase AC power grid frequency in an environment with serious harmonic pollution of the power grid, improves the response speed and accuracy, reduces the hardware cost, and has high practical value.
Smart Images

Figure CN118091247B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of power electronic device measurement and control, and in particular to a frequency measurement method and device for a single-phase AC power grid. Technical Background
[0002] Power electronic measurement and control devices, such as photovoltaic inverters and energy storage converters, need to quickly and accurately measure the grid frequency and determine whether the grid is abnormal through frequency changes, so as to make decisions on how to adjust the output power or even whether to exit the grid. The existing frequency measurement methods for single-phase systems are: (1) hardware interruption frequency measurement, which has high accuracy but increases costs; (2) calculating the frequency by measuring the time difference between adjacent zero-crossing points. This software frequency measurement method is greatly affected by harmonics, so a sufficiently long data window is required to calculate the average value to ensure accuracy, but it is still powerless when the grid harmonic pollution is large. (3) The method proposed in the announcement number "CN105044456B A method for measuring and tracking the instantaneous frequency of a power grid based on orthogonal subbands" measures the grid frequency by constructing sine and cosine digital filters to obtain two sine subband signals with a phase difference of 90°. Although the frequency measurement concept is similar to that of the present invention, its data window requires at least one power frequency cycle of 20ms, and requires a large number of trigonometric function operations, so the response speed will be relatively slow.
[0003] Therefore, the present invention provides a frequency measurement method and device for a single-phase AC power grid. Summary of the invention
[0004] The frequency measurement method and device of the single-phase AC power grid of the present invention does not need to increase any hardware cost, and does not need a zero-crossing detection algorithm and accumulation of data of a sufficiently long period, but only needs a maximum of three sampling points before and after to calculate the frequency in real time.
[0005] The present invention provides a frequency measurement method for a single-phase AC power grid, comprising:
[0006] Step 1: sampling the voltage / current of the single-phase AC power grid to be tested using a preset sampling interval to obtain a sampling signal of the power grid to be tested;
[0007] Step 2: filtering and integrating the sampled signal to generate corresponding in-frequency in-phase orthogonal signals and in-frequency non-in-phase orthogonal signals;
[0008] Step 3: Establish a synthetic vector according to the in-frequency and in-phase orthogonal signal and the in-frequency and non-in-phase orthogonal signal, and obtain a unit phase angle of the synthetic vector;
[0009] Step 4: Obtain the rotational angular velocity of the synthetic vector, and generate the frequency of the single-phase AC power grid to be tested in combination with the unit phase angle.
[0010] In one practicable manner,
[0011] The step 1 comprises:
[0012] Step 11: perform voltage sampling and current sampling on the single-phase AC power grid to be tested at a preset sampling interval to obtain corresponding voltage sampling results and current sampling results;
[0013] Step 12: respectively evaluating the integrity of the voltage sampling result and the current sampling result to obtain a first integrity corresponding to the voltage sampling result and a second integrity corresponding to the current sampling result;
[0014] Step 13: when the first integrity is greater than the second integrity, generating a sampling signal of the power grid to be measured according to the voltage sampling result; when the first integrity is less than the second integrity, generating a sampling signal of the power grid to be measured according to the current sampling result;
[0015] Step 14: when the first integrity is equal to the second integrity, generating a first sampling signal of the power grid to be measured according to the voltage sampling result, and generating a second sampling signal of the power grid to be measured according to the current sampling result;
[0016] Step 15: superimpose the first sampling signal and the second sampling signal, and generate a sampling signal of the power grid to be measured according to the superposition result.
[0017] In one practicable manner,
[0018] The step 2 comprises:
[0019] Step 21: parsing the sampled signal to obtain a signal value of the sampled signal, and performing a first-order low-pass filtering process on the signal value to obtain an original signal;
[0020] Step 22: performing second-order generalized integration processing on the original signal to generate corresponding in-frequency in-phase orthogonal signals and in-frequency non-in-phase orthogonal signals;
[0021] The same-frequency and same-phase orthogonal signal has the same frequency and phase angle as the original signal;
[0022] The frequency of the in-frequency non-in-phase orthogonal signal is the same as that of the original signal, and the phase angle difference between the in-frequency non-in-phase orthogonal signal and the original signal is 90°.
[0023] In one practicable manner,
[0024] The step 3 comprises:
[0025] Step 31: establishing a first orthogonal vector according to the in-phase and in-frequency orthogonal signals, establishing a second orthogonal vector according to the in-phase and in-frequency orthogonal signals, and establishing a composite vector according to the first orthogonal vector and the second orthogonal vector;
[0026] Step 32: using a preset inverse tangent function to establish an angle analysis model, and inputting the synthesized vector into the angle analysis model to obtain a corresponding vector to be analyzed;
[0027] Step 33: Run the angle analysis model to obtain the angle analysis model, and obtain the vector angles corresponding to the vector to be analyzed at different sampling intervals;
[0028] Step 34: Establishing a unit phase angle corresponding to the synthetic vector in each of the preset sampling intervals according to the angle difference between adjacent vector angles.
[0029] In one practicable manner,
[0030] The step 4 comprises:
[0031] Step 41: obtaining a vector angle corresponding to the synthesized vector, and projecting the synthesized vector and the synthesized vector into a preset coordinate system based on the vector angle to obtain a virtual vector;
[0032] Step 42: establishing the rotation angular velocity of the synthetic vector corresponding to the different sampling intervals according to the vector angles corresponding to the virtual vector in the different sampling intervals;
[0033] Step 43: establishing a vector frequency corresponding to the synthetic vector at different sampling intervals according to the rotation angular velocity and unit phase angle corresponding to the synthetic vector at each sampling interval;
[0034] Step 44: obtaining frequencies corresponding to different sampling intervals of the single-phase AC power grid to be measured according to the vector frequencies corresponding to different sampling intervals of the synthetic vector.
[0035] In one practicable manner,
[0036] The step 15 comprises:
[0037] Step 151: dividing the first sampling signal into a plurality of first sub-signals based on the preset sampling interval, dividing the second sampling signal into a plurality of second sub-signals, and performing time domain analysis on each of the first sub-signal and the second sub-signal to obtain corresponding first time domain sub-signals and second time domain sub-signals;
[0038] Step 152: establishing a sampling time axis based on the preset sampling interval, respectively obtaining a first sampling value corresponding to each of the first time domain sub-signals and respectively obtaining a second sampling value corresponding to each of the second time domain sub-signals, and respectively inputting the first sampling value and the second sampling value into a corresponding first placement area and a second placement area in the sampling time axis to obtain a sampling value axis;
[0039] Step 153: parsing the sampling value axis to obtain the sampling ratio corresponding to each of the preset sampling intervals, obtaining the discreteness between each of the sampling ratios, and obtaining the target sampling ratio with a high discreteness and a preset discreteness threshold;
[0040] Step 154: Perform an abnormal analysis on the target first sub-signal and the target second sub-signal corresponding to the target sampling ratio, and according to the analysis results, remove the abnormal sub-signals with abnormal characteristics to obtain the corresponding first normal sub-signal and second normal sub-signal, and generate a sampling signal of the power grid to be measured according to the first normal sub-signal and the second normal sub-signal.
[0041] In one practicable manner,
[0042] The step 15 comprises:
[0043] Step 1541: establishing a first sampling waveform according to the first sub-signal, establishing a second sampling waveform according to the second sub-signal, searching the first waveform value corresponding to the target sampling ratio in the first sampling waveform, and searching the second waveform value corresponding to the target sampling ratio in the second sampling waveform;
[0044] Step 1542: obtaining a first waveform difference between the first waveform value and an adjacent first waveform value, and obtaining a second waveform difference between the second waveform value and an adjacent second waveform value, and when the first waveform difference is greater than the first waveform difference, establishing an abnormal feature for the first waveform value, otherwise, establishing an abnormal feature for the second waveform value;
[0045] Step 1543: Eliminate abnormal sub-signals with abnormal characteristics, count the number of first signals corresponding to the first normal sub-signals to generate a first signal group and the number of second signals corresponding to the second normal sub-signals to generate a second signal group, obtain the signal group corresponding to the high signal number as the basic signal group, and obtain the signal group corresponding to the low signal number as the compensation signal group;
[0046] Step 1544: Obtain the null value preset sampling interval corresponding to the signal null value contained in the basic signal group, search the compensation value corresponding to the control preset sampling interval in the compensation signal group, input the compensation value into the corresponding signal null value, and generate a sampling signal of the power grid to be measured.
[0047] The present invention provides a frequency measuring device for a single-phase AC power grid, comprising:
[0048] A signal sampling module, used to perform voltage / current sampling on the single-phase AC power grid to be tested using a preset sampling interval to obtain a sampling signal of the power grid to be tested;
[0049] A signal processing module, used for filtering and integrating the sampled signal to generate corresponding in-frequency in-phase orthogonal signals and in-frequency non-in-phase orthogonal signals;
[0050] A vector analysis module, used to establish a synthetic vector according to the in-frequency and in-phase orthogonal signal and the in-frequency and non-in-phase orthogonal signal, and obtain a unit phase angle of the synthetic vector;
[0051] The frequency analysis module is used to obtain the rotation angular velocity of the synthetic vector and generate the frequency of the single-phase AC power grid to be tested in combination with the unit phase angle.
[0052] In one practicable manner,
[0053] The signal sampling module comprises:
[0054] The primary sampling unit is used to perform voltage sampling and current sampling on the single-phase AC power grid to be tested at a preset sampling interval to obtain corresponding voltage sampling results and current sampling results;
[0055] A sampling evaluation unit, used to evaluate the integrity of the voltage sampling result and the current sampling result respectively, to obtain a first integrity corresponding to the voltage sampling result and a second integrity corresponding to the current sampling result;
[0056] a first signal selection unit, configured to generate a sampling signal of the power grid to be measured according to the voltage sampling result when the first integrity is greater than the second integrity, and to generate a sampling signal of the power grid to be measured according to the current sampling result when the first integrity is less than the second integrity;
[0057] A second signal selection unit, configured to generate a first sampling signal of the power grid to be measured according to the voltage sampling result, and generate a second sampling signal of the power grid to be measured according to the current sampling result when the first integrity is equal to the second integrity;
[0058] A signal processing unit is used to superimpose the first sampling signal and the second sampling signal, and generate a sampling signal of the power grid to be measured according to the superposition result.
[0059] In one practicable manner,
[0060] The signal processing unit comprises:
[0061] A first processing sub-unit, configured to divide the first sampling signal into a plurality of first sub-signals and the second sampling signal into a plurality of second sub-signals based on the preset sampling interval, and respectively perform time domain analysis on each of the first sub-signal and the second sub-signal to obtain corresponding first time domain sub-signals and second time domain sub-signals;
[0062] a second processing sub-unit, configured to establish a sampling time axis based on the preset sampling interval, respectively obtain a first sampling value corresponding to each of the first time domain sub-signals and respectively obtain a second sampling value corresponding to each of the second time domain sub-signals, and respectively input the first sampling value and the second sampling value into a first placement area and a second placement area corresponding to the sampling time axis to obtain a sampling value axis;
[0063] The third processing subunit is used to analyze the sampling value axis, obtain the sampling ratio corresponding to each of the preset sampling intervals, obtain the discreteness between each of the sampling ratios, and obtain the target sampling ratio with a high discreteness and a preset discreteness threshold;
[0064] The fourth processing sub-unit is used to perform abnormal analysis on the target first sub-signal and the target second sub-signal corresponding to the target sampling ratio, eliminate the abnormal sub-signals with abnormal characteristics according to the analysis results to obtain the corresponding first normal sub-signal and second normal sub-signal, and generate the sampling signal of the power grid to be tested according to the first normal sub-signal and the second normal sub-signal.
[0065] The beneficial effects that can be achieved by the present invention are as follows: in order to achieve the purpose of quickly measuring the frequency of a single-phase AC power grid, the single-phase AC power grid to be measured is first sampled to generate a sampling signal, and then the sampling signal is filtered and integrated to obtain two orthogonal signals after processing, and the two orthogonal signals are further synthesized into a synthetic vector, thereby analyzing the unit phase angle and rotation angular velocity of the synthetic vector. Since the rotation angular velocity of the synthetic vector is the same as that of the single-phase AC power grid to be measured, the frequency of the single-phase AC power grid to be measured can be obtained by deduction. In this way, harmonic interference can be well filtered out and the measurement can be more accurate. The frequency measurement method of the present invention has high practical value in engineering applications, and can accurately and quickly obtain the frequency of the single-phase AC power grid in an environment where the harmonic pollution of the power grid is serious.
[0066] Other features and advantages of the present invention will be described in the following description, and partly become obvious from the description, or be understood by practicing the present invention. The purpose of the present invention and the structures specifically pointed out in the present application documents are realized and obtained.
[0067] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0069] Figure 1 Schematic diagram of the working process of the frequency measurement method of a single-phase AC power grid in an embodiment of the present invention;
[0070] Figure 2 Schematic diagram of the composition of a frequency measuring device for a single-phase AC power grid in an embodiment of the present invention. DETAILED DESCRIPTION
[0071] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0072] Example 1
[0073] This embodiment provides a frequency measurement method for a single-phase AC power grid, such as Figure 1 As shown, including:
[0074] Step 1: sampling the voltage / current of the single-phase AC power grid to be tested using a preset sampling interval to obtain a sampling signal of the power grid to be tested;
[0075] Step 2: filtering and integrating the sampled signal to generate corresponding in-frequency in-phase orthogonal signals and in-frequency non-in-phase orthogonal signals;
[0076] Step 3: Establish a synthetic vector according to the in-frequency and in-phase orthogonal signal and the in-frequency and non-in-phase orthogonal signal, and obtain a unit phase angle of the synthetic vector;
[0077] Step 4: Obtain the rotational angular velocity of the synthetic vector, and generate the frequency of the single-phase AC power grid to be tested in combination with the unit phase angle.
[0078] In this example, the preset sampling interval may be 1 / 20000 seconds;
[0079] In this example, when voltage sampling is performed on the single-phase AC power grid to be tested, the obtained sampling signal is a voltage signal, and when current sampling is performed on the single-phase AC power grid to be tested, the obtained sampling signal is a current signal;
[0080] In this example, the integrity evaluation represents the process of analyzing the integrity of the current sampling result and analyzing the integrity of the voltage sampling result;
[0081] In this example, the same-frequency, same-phase, orthogonal signal means a signal with the same frequency and phase as the single-phase AC power grid to be measured;
[0082] In this example, the same-frequency, non-co-phase orthogonal signal represents a signal with the same frequency as the single-phase AC power grid to be measured and a phase difference of 90°;
[0083] In this example, the composite vector represents a vector calculated based on the same-frequency and same-phase orthogonal signal and the same-frequency and non-in-phase orthogonal signal;
[0084] In this example, the angular velocity of the rotation is consistent with the single-phase AC power grid to be measured.
[0085] The working principle and beneficial effects of the above technical solution: In order to achieve the purpose of quickly measuring the frequency of a single-phase AC power grid, the single-phase AC power grid to be measured is first sampled to generate a sampling signal, and then the sampling signal is filtered and integrated. After processing, two orthogonal signals are obtained, and the two orthogonal signals are further synthesized into a synthetic vector, so as to analyze the unit phase angle and rotation angular velocity of the synthetic vector. Since the rotation angular velocity of the synthetic vector is the same as that of the single-phase AC power grid to be measured, the frequency of the single-phase AC power grid to be measured can be obtained by deduction. In this way, harmonic interference can be well filtered out and the measurement can be more accurate. The frequency measurement method of the present invention has high practical value in engineering applications, and can accurately and quickly obtain the frequency of the single-phase AC power grid in an environment where the harmonic pollution of the power grid is serious.
[0086] Example 2
[0087] On the basis of Embodiment 1, the frequency measurement method of the single-phase AC power grid, the step 1 comprises:
[0088] Step 11: perform voltage sampling and current sampling on the single-phase AC power grid to be tested at a preset sampling interval to obtain corresponding voltage sampling results and current sampling results;
[0089] Step 12: respectively evaluating the integrity of the voltage sampling result and the current sampling result to obtain a first integrity corresponding to the voltage sampling result and a second integrity corresponding to the current sampling result;
[0090] Step 13: when the first integrity is greater than the second integrity, generating a sampling signal of the power grid to be measured according to the voltage sampling result; when the first integrity is less than the second integrity, generating a sampling signal of the power grid to be measured according to the current sampling result;
[0091] Step 14: when the first integrity is equal to the second integrity, generating a first sampling signal of the power grid to be measured according to the voltage sampling result, and generating a second sampling signal of the power grid to be measured according to the current sampling result;
[0092] Step 15: superimpose the first sampling signal and the second sampling signal, and generate a sampling signal of the power grid to be measured according to the superposition result.
[0093] The working principle and beneficial effects of the above technical solution are as follows: in order to ensure the validity of the sampling signal, voltage sampling and current sampling are performed separately during sampling to obtain corresponding voltage sampling results and current sampling results, and then the voltage sampling results and current sampling results are evaluated for integrity respectively. According to the evaluation results, it is determined which sampling result corresponds to a higher integrity, and then a sampling signal is generated according to the sampling result with higher integrity. If the integrity of the two is consistent, the first sampling signal and the second sampling signal are superimposed, and finally a complete and accurate sampling signal is obtained to ensure the validity of subsequent measurement work.
[0094] Example 3
[0095] On the basis of Embodiment 1, the frequency measurement method of the single-phase AC power grid, the step 2 comprises:
[0096] Step 21: parsing the sampled signal to obtain a signal value of the sampled signal, and performing a first-order low-pass filtering process on the signal value to obtain an original signal;
[0097] Step 22: performing second-order generalized integration processing on the original signal to generate corresponding in-frequency in-phase orthogonal signals and in-frequency non-in-phase orthogonal signals;
[0098] The same-frequency and same-phase orthogonal signal has the same frequency and phase angle as the original signal;
[0099] The same-frequency non-in-phase orthogonal signal has the same frequency as the original signal, and the phase angle difference between the same-frequency non-in-phase orthogonal signal and the original signal is 90°;
[0100] In this example, when the sampling signal is a voltage signal, the signal value is voltage, and when the sampling signal is a current signal, the signal value is current;
[0101] In this example, the filtering process represents a first-order low-pass filtering process, and the filtering formula is: yn=yn-1+a(xn-yn-1), where a is the filtering coefficient. The first-order low-pass filtering process has a low delay and a fast response.
[0102] In this example, the integration process represents a second-order generalized integration process, which can produce a 90° phase shift on the input AC sinusoidal signal and obtain two orthogonal signals, which can not only achieve a 90° phase shift on the grid voltage or current signal, but also filter out high-order harmonics. The transfer function of SOGI is:
[0103] In-phase transfer function:
[0104] Orthogonal transfer function:
[0105] By bilinear transformation, the continuous function in s domain is converted into discrete function in z domain, and we get:
[0106] Discrete form of the in-phase function:
[0107] in,
[0108] Discrete form of orthogonal function:
[0109] in,
[0110] In addition, x = 2kwnTs, y = (wnTs)2
[0111] So we have the sequence equation:
[0112] y'(n)–a1*y'(n-1)–a2*y'(n-2)=b0*y(n)+b2*y(n-2)
[0113] qy'(n)–a1*qy'(n-1)–a2*qy'(n-2)=qb0*y(n)+qb1*y(n-1)+qb2*y(n-2)
[0114] Among them, yn represents the original function, y' represents the same-frequency and same-phase orthogonal signal, and qy' represents the same-frequency and non-co-phase orthogonal signal.
[0115] The working principle and beneficial effects of the above technical solution: using the first-order low-pass filter to process the signal value to obtain the original signal can effectively filter out the harmonic interference and make the measurement more accurate. Using the second-order generalized integral to process the original signal can obtain a pair of orthogonal signals, and only simple addition and subtraction are used, and the real-time performance is fully guaranteed.
[0116] Example 4
[0117] On the basis of Embodiment 1, the frequency measurement method of the single-phase AC power grid, the step 3 comprises:
[0118] Step 31: establishing a first orthogonal vector according to the in-phase and in-frequency orthogonal signals, establishing a second orthogonal vector according to the in-phase and in-frequency orthogonal signals, and establishing a composite vector according to the first orthogonal vector and the second orthogonal vector;
[0119] Step 32: using a preset inverse tangent function to establish an angle analysis model, and inputting the synthesized vector into the angle analysis model to obtain a corresponding vector to be analyzed;
[0120] Step 33: Run the angle analysis model to obtain the angle analysis model, and obtain the vector angles corresponding to the vector to be analyzed at different sampling intervals;
[0121] Step 34: Establishing a unit phase angle corresponding to the synthetic vector in each of the preset sampling intervals according to the angle difference between adjacent vector angles.
[0122] In this example, the first orthogonal vector represents a vector consistent with the orthogonal signal having the same frequency and phase, and the second orthogonal vector represents a vector consistent with the orthogonal signal having the same frequency and phase;
[0123] In this example, the rotation vector angle θ=arctan(qy' / y') of the orthogonal signal synthesis vector is calculated by the inverse tangent function. Although this step uses trigonometric function calculation, it only needs to be calculated once;
[0124] In this example, the unit phase angle Δθ=θn-θn-1 of the synthetic vector rotated within a sampling period Ts (Ts=1 / fs) is calculated by subtracting the previous rotation vector angle θn-1 from the current rotation vector angle θn.
[0125] The working principle and beneficial effects of the above technical solution are as follows: the unit phase angle and vector angle of the vector at different time intervals are analyzed by means of synthetic vectors, so as to facilitate the subsequent further analysis of the frequency of the single-phase AC power grid.
[0126] Example 5
[0127] On the basis of Embodiment 1, the frequency measurement method of the single-phase AC power grid, the step 4 comprises:
[0128] Step 41: obtaining a vector angle corresponding to the synthesized vector, and projecting the synthesized vector and the synthesized vector into a preset coordinate system based on the vector angle to obtain a virtual vector;
[0129] Step 42: establishing the rotation angular velocity of the synthetic vector corresponding to the different sampling intervals according to the vector angles corresponding to the virtual vector in the different sampling intervals;
[0130] Step 43: establishing a vector frequency corresponding to the synthetic vector at different sampling intervals according to the rotation angular velocity and unit phase angle corresponding to the synthetic vector at each sampling interval;
[0131] Step 44: obtaining frequencies corresponding to different sampling intervals of the single-phase AC power grid to be measured according to the vector frequencies corresponding to different sampling intervals of the synthetic vector.
[0132] In this example, the vector angle represents the angle corresponding to the resultant vector;
[0133] In this example, since w = dθ / dt, w = Δθ / Ts. It is also known that w = 2πf, so f = w / (2π) = Δθ / (2π*Ts). Since the angular velocity w of the vector synthesized by the orthogonal signals y' and qy' is consistent with the original signal, the frequency f of the synthesized vector derived from w through the formula is the frequency of the original sampling signal.
[0134] The working principle and beneficial effects of the above technical solution: In order to improve the effectiveness and accuracy of frequency detection, the vector angle of the synthetic vector is analyzed to interfere with determining its rotational angular velocity corresponding to different preset sampling intervals, and the frequency of the single-phase AC power grid to be tested at different time intervals is determined by physical deduction, which effectively reduces the detection error.
[0135] Example 6
[0136] On the basis of Embodiment 2, the frequency measurement method of the single-phase AC power grid, the step 15 comprises:
[0137] Step 151: dividing the first sampling signal into a plurality of first sub-signals based on the preset sampling interval, dividing the second sampling signal into a plurality of second sub-signals, and performing time domain analysis on each of the first sub-signal and the second sub-signal to obtain corresponding first time domain sub-signals and second time domain sub-signals;
[0138] Step 152: establishing a sampling time axis based on the preset sampling interval, respectively obtaining a first sampling value corresponding to each of the first time domain sub-signals and respectively obtaining a second sampling value corresponding to each of the second time domain sub-signals, and respectively inputting the first sampling value and the second sampling value into a corresponding first placement area and a second placement area in the sampling time axis to obtain a sampling value axis;
[0139] Step 153: parsing the sampling value axis to obtain the sampling ratio corresponding to each of the preset sampling intervals, obtaining the discreteness between each of the sampling ratios, and obtaining the target sampling ratio with a high discreteness and a preset discreteness threshold;
[0140] Step 154: Perform an abnormal analysis on the target first sub-signal and the target second sub-signal corresponding to the target sampling ratio, and according to the analysis results, remove the abnormal sub-signals with abnormal characteristics to obtain the corresponding first normal sub-signal and second normal sub-signal, and generate a sampling signal of the power grid to be measured according to the first normal sub-signal and the second normal sub-signal.
[0141] In this example, the purpose of time domain analysis is to obtain the trend characteristics of each sub-signal;
[0142] In this example, the time interval in the sampling time axis is consistent with the preset sampling interval;
[0143] In this example, the first sampling value represents the signal value of the first time-domain sub-signal, and the second sampling value represents the signal value of the second time-domain sub-signal;
[0144] In this example, the first placement area indicates an area for storing the first sampling value, and the second placement area indicates an area for storing the second sampling value, and when placing, each sampling value is associated with its time interval;
[0145] In this example, the sampling ratio represents the ratio between the first sampling value and the second sampling value corresponding to the same preset sampling interval;
[0146] In this example, the preset discrete threshold may be 0.5, which is the difference between the threshold and the other sampling ratios;
[0147] In this example, the target sampling ratio represents a sampling ratio that is too discrete from other sampling ratios, which may reflect that an abnormality has occurred in the first sampling value or the second sampling value corresponding to the preset sampling interval.
[0148] The working principle and beneficial effects of the above technical solution: In order to further ensure the validity and authenticity of the sampling signal, when the integrity of the voltage sampling result and the current sampling result are consistent, the first sampling signal and the second sampling signal are first divided using a preset sampling interval, and then a time domain analysis is performed to obtain the corresponding first time domain sub-signal and second time domain sub-signal, and the sampling value corresponding to each sub-signal is further determined, and then the sampling value is marked on the sampling time axis set in advance, and the sub-signal with abnormalities is determined according to the discrete degree between the sampling ratios corresponding to different time intervals. Finally, the abnormal sub-signal is determined and eliminated, and the remaining signals are superimposed, and finally the sampling signal of the power grid to be tested is obtained, achieving the purpose of eliminating abnormalities and accurate superposition.
[0149] Example 7
[0150] On the basis of Embodiment 6, the frequency measurement method of the single-phase AC power grid, the step 15 comprises:
[0151] Step 1541: establishing a first sampling waveform according to the first sub-signal, establishing a second sampling waveform according to the second sub-signal, searching the first waveform value corresponding to the target sampling ratio in the first sampling waveform, and searching the second waveform value corresponding to the target sampling ratio in the second sampling waveform;
[0152] Step 1542: obtaining a first waveform difference between the first waveform value and an adjacent first waveform value, and obtaining a second waveform difference between the second waveform value and an adjacent second waveform value, and when the first waveform difference is greater than the first waveform difference, establishing an abnormal feature for the first waveform value, otherwise, establishing an abnormal feature for the second waveform value;
[0153] Step 1543: Eliminate abnormal sub-signals with abnormal characteristics, count the number of first signals corresponding to the first normal sub-signals to generate a first signal group and the number of second signals corresponding to the second normal sub-signals to generate a second signal group, obtain the signal group corresponding to the high signal number as the basic signal group, and obtain the signal group corresponding to the low signal number as the compensation signal group;
[0154] Step 1544: Obtain the null value preset sampling interval corresponding to the signal null value contained in the basic signal group, search the compensation value corresponding to the control preset sampling interval in the compensation signal group, input the compensation value into the corresponding signal null value, and generate a sampling signal of the power grid to be measured.
[0155] In this example, the first waveform difference represents the difference between one waveform value and an adjacent waveform value;
[0156] In this example, the first signal group includes all first normal sub-signals, and the second signal group includes all second normal sub-signals;
[0157] In this example, the signal null value indicates that the sampling value at the signal position in the basic signal group is removed.
[0158] The working principle and beneficial effects of the above technical solution are as follows: in order to further improve the accuracy of the sampling signal, a sampling waveform is first established based on the sub-signal, and then the waveform value corresponding to the target sampling ratio is subtracted from the sampling waveform. The basic signal group and the compensation signal group are determined according to the number of waveform differences, and then the basic signal group is compensated using the compensation signal group. Finally, the corresponding sampling signal is produced, thereby improving the effectiveness of the sampling signal.
[0159] Example 8
[0160] This embodiment provides a frequency measurement device for a single-phase AC power grid, such as Figure 2 As shown, including:
[0161] A signal sampling module, used to perform voltage / current sampling on the single-phase AC power grid to be tested using a preset sampling interval to obtain a sampling signal of the power grid to be tested;
[0162] A signal processing module, used for filtering and integrating the sampled signal to generate corresponding in-frequency in-phase orthogonal signals and in-frequency non-in-phase orthogonal signals;
[0163] A vector analysis module, used to establish a synthetic vector according to the in-frequency and in-phase orthogonal signal and the in-frequency and non-in-phase orthogonal signal, and obtain a unit phase angle of the synthetic vector;
[0164] The frequency analysis module is used to obtain the rotation angular velocity of the synthetic vector and generate the frequency of the single-phase AC power grid to be tested in combination with the unit phase angle.
[0165] In this example, the preset sampling interval may be 1 minute;
[0166] In this example, when voltage sampling is performed on the single-phase AC power grid to be tested, the obtained sampling signal is a voltage signal, and when current sampling is performed on the single-phase AC power grid to be tested, the obtained sampling signal is a current signal;
[0167] In this example, the integrity evaluation represents the process of analyzing the integrity of the current sampling result and analyzing the integrity of the voltage sampling result;
[0168] In this example, the same-frequency, same-phase, orthogonal signal means a signal with the same frequency and phase as the single-phase AC power grid to be measured;
[0169] In this example, the same-frequency, non-co-phase orthogonal signal represents a signal with the same frequency as the single-phase AC power grid to be measured and a phase difference of 90°;
[0170] In this example, the composite vector represents a vector calculated based on the same-frequency and same-phase orthogonal signal and the same-frequency and non-in-phase orthogonal signal;
[0171] In this example, the angular velocity of the rotation is consistent with the single-phase AC power grid to be measured.
[0172] The working principle and beneficial effects of the above technical solution: In order to achieve the purpose of quickly measuring the frequency of a single-phase AC power grid, the single-phase AC power grid to be measured is first sampled to generate a sampling signal, and then the sampling signal is filtered and integrated. After processing, two orthogonal signals are obtained, and the two orthogonal signals are further synthesized into a synthetic vector, so as to analyze the unit phase angle and rotation angular velocity of the synthetic vector. Since the rotation angular velocity of the synthetic vector is the same as that of the single-phase AC power grid to be measured, the frequency of the single-phase AC power grid to be measured can be obtained by deduction. In this way, harmonic interference can be well filtered out and the measurement can be more accurate. The frequency measurement method of the present invention has high practical value in engineering applications, and can accurately and quickly obtain the frequency of the single-phase AC power grid in an environment where the harmonic pollution of the power grid is serious.
[0173] Example 9
[0174] On the basis of Embodiment 8, the frequency measurement device of the single-phase AC power grid and the signal sampling module include:
[0175] The primary sampling unit is used to perform voltage sampling and current sampling on the single-phase AC power grid to be tested at a preset sampling interval to obtain corresponding voltage sampling results and current sampling results;
[0176] A sampling evaluation unit, used to evaluate the integrity of the voltage sampling result and the current sampling result respectively, to obtain a first integrity corresponding to the voltage sampling result and a second integrity corresponding to the current sampling result;
[0177] a first signal selection unit, configured to generate a sampling signal of the power grid to be measured according to the voltage sampling result when the first integrity is greater than the second integrity, and to generate a sampling signal of the power grid to be measured according to the current sampling result when the first integrity is less than the second integrity;
[0178] A second signal selection unit, configured to generate a first sampling signal of the power grid to be measured according to the voltage sampling result, and generate a second sampling signal of the power grid to be measured according to the current sampling result when the first integrity is equal to the second integrity;
[0179] A signal processing unit is used to superimpose the first sampling signal and the second sampling signal, and generate a sampling signal of the power grid to be measured according to the superposition result.
[0180] The working principle and beneficial effects of the above technical solution are as follows: in order to ensure the validity of the sampling signal, voltage sampling and current sampling are performed separately during sampling to obtain corresponding voltage sampling results and current sampling results, and then the voltage sampling results and current sampling results are evaluated for integrity respectively. According to the evaluation results, it is determined which sampling result corresponds to a higher integrity, and then a sampling signal is generated according to the sampling result with higher integrity. If the integrity of the two is consistent, the first sampling signal and the second sampling signal are superimposed, and finally a complete and accurate sampling signal is obtained to ensure the validity of subsequent measurement work.
[0181] Example 10
[0182] On the basis of Embodiment 9, the frequency measuring device of the single-phase AC power grid, the signal processing unit, comprises:
[0183] A first processing sub-unit, configured to divide the first sampling signal into a plurality of first sub-signals and the second sampling signal into a plurality of second sub-signals based on the preset sampling interval, and respectively perform time domain analysis on each of the first sub-signal and the second sub-signal to obtain corresponding first time domain sub-signals and second time domain sub-signals;
[0184] a second processing sub-unit, configured to establish a sampling time axis based on the preset sampling interval, respectively obtain a first sampling value corresponding to each of the first time domain sub-signals and respectively obtain a second sampling value corresponding to each of the second time domain sub-signals, and respectively input the first sampling value and the second sampling value into a first placement area and a second placement area corresponding to the sampling time axis to obtain a sampling value axis;
[0185] The third processing subunit is used to analyze the sampling value axis, obtain the sampling ratio corresponding to each of the preset sampling intervals, obtain the discreteness between each of the sampling ratios, and obtain the target sampling ratio with a high discreteness and a preset discreteness threshold;
[0186] The fourth processing sub-unit is used to perform abnormal analysis on the target first sub-signal and the target second sub-signal corresponding to the target sampling ratio, eliminate the abnormal sub-signals with abnormal characteristics according to the analysis results to obtain the corresponding first normal sub-signal and second normal sub-signal, and generate the sampling signal of the power grid to be tested according to the first normal sub-signal and the second normal sub-signal.
[0187] In this example, the purpose of time domain analysis is to obtain the trend characteristics of each sub-signal;
[0188] In this example, the time interval in the sampling time axis is consistent with the preset sampling interval;
[0189] In this example, the first sampling value represents the signal value of the first time-domain sub-signal, and the second sampling value represents the signal value of the second time-domain sub-signal;
[0190] In this example, the first placement area indicates an area for storing the first sampling value, and the second placement area indicates an area for storing the second sampling value, and when placing, each sampling value is associated with its time interval;
[0191] In this example, the sampling ratio represents the ratio between the first sampling value and the second sampling value corresponding to the same preset sampling interval;
[0192] In this example, the preset discrete threshold may be 0.5, which is the difference between the threshold and the other sampling ratios;
[0193] In this example, the target sampling ratio represents a sampling ratio that is too discrete from other sampling ratios, which may reflect that an abnormality has occurred in the first sampling value or the second sampling value corresponding to the preset sampling interval.
[0194] The working principle and beneficial effects of the above technical solution: In order to further ensure the validity and authenticity of the sampling signal, when the integrity of the voltage sampling result and the current sampling result are consistent, the first sampling signal and the second sampling signal are first divided using a preset sampling interval, and then a time domain analysis is performed to obtain the corresponding first time domain sub-signal and second time domain sub-signal, and the sampling value corresponding to each sub-signal is further determined, and then the sampling value is marked on the sampling time axis set in advance, and the sub-signal with abnormalities is determined according to the discrete degree between the sampling ratios corresponding to different time intervals. Finally, the abnormal sub-signal is determined and eliminated, and the remaining signals are superimposed, and finally the sampling signal of the power grid to be tested is obtained, achieving the purpose of eliminating abnormalities and accurate superposition.
[0195] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A frequency measurement method for a single-phase AC power grid, characterized in that: include: Step 1: sampling the voltage / current of the single-phase AC power grid to be tested using a preset sampling interval to obtain a sampling signal of the power grid to be tested; Step 2: filtering and integrating the sampled signal to generate corresponding in-frequency in-phase orthogonal signals and in-frequency non-in-phase orthogonal signals; Step 3: Establish a synthetic vector according to the in-frequency and in-phase orthogonal signal and the in-frequency and non-in-phase orthogonal signal, and obtain a unit phase angle of the synthetic vector; Step 4: Obtain the rotational angular velocity of the synthetic vector, and generate the frequency of the single-phase AC power grid to be tested in combination with the unit phase angle; The step 1 comprises: Step 11: perform voltage sampling and current sampling on the single-phase AC power grid to be tested at a preset sampling interval to obtain corresponding voltage sampling results and current sampling results; Step 12: respectively evaluating the integrity of the voltage sampling result and the current sampling result to obtain a first integrity corresponding to the voltage sampling result and a second integrity corresponding to the current sampling result; Step 13: when the first integrity is greater than the second integrity, generating a sampling signal of the power grid to be measured according to the voltage sampling result; when the first integrity is less than the second integrity, generating a sampling signal of the power grid to be measured according to the current sampling result; Step 14: when the first integrity is equal to the second integrity, generating a first sampling signal of the power grid to be measured according to the voltage sampling result, and generating a second sampling signal of the power grid to be measured according to the current sampling result; Step 15: superimposing the first sampling signal and the second sampling signal, and generating a sampling signal of the power grid to be measured according to the superposition result; The step 15 comprises: Step 151: dividing the first sampling signal into a plurality of first sub-signals based on the preset sampling interval, dividing the second sampling signal into a plurality of second sub-signals, and performing time domain analysis on each of the first sub-signal and the second sub-signal to obtain corresponding first time domain sub-signals and second time domain sub-signals; Step 152: establishing a sampling time axis based on the preset sampling interval, respectively obtaining a first sampling value corresponding to each of the first time domain sub-signals and respectively obtaining a second sampling value corresponding to each of the second time domain sub-signals, and respectively inputting the first sampling value and the second sampling value into a corresponding first placement area and a second placement area in the sampling time axis to obtain a sampling value axis; Step 153: parsing the sampling value axis to obtain the sampling ratio corresponding to each of the preset sampling intervals, obtaining the discreteness between different sampling ratios, and obtaining a target sampling ratio whose discreteness is higher than a preset discreteness threshold; Step 154: Perform an abnormal analysis on the target first sub-signal and the target second sub-signal corresponding to the target sampling ratio, and according to the analysis results, remove the abnormal sub-signals with abnormal characteristics to obtain the corresponding first normal sub-signal and second normal sub-signal, and generate a sampling signal of the power grid to be measured according to the first normal sub-signal and the second normal sub-signal.
2. The frequency measurement method of a single-phase AC power grid according to claim 1, characterized in that: The step 2 comprises: Step 21: parsing the sampled signal to obtain a signal value of the sampled signal, and performing a first-order low-pass filtering process on the signal value to obtain an original signal; Step 22: performing second-order generalized integration processing on the original signal to generate corresponding in-frequency in-phase orthogonal signals and in-frequency non-in-phase orthogonal signals; The same-frequency and same-phase orthogonal signal has the same frequency and phase angle as the original signal; The frequency of the in-frequency non-in-phase orthogonal signal is the same as that of the original signal, and the phase angle difference between the in-frequency non-in-phase orthogonal signal and the original signal is 90°.
3. The frequency measurement method of a single-phase AC power grid according to claim 1, characterized in that: The step 3 comprises: Step 31: establishing a first orthogonal vector according to the in-phase and in-frequency orthogonal signals, establishing a second orthogonal vector according to the in-phase and in-frequency orthogonal signals, and establishing a composite vector according to the first orthogonal vector and the second orthogonal vector; Step 32: using a preset inverse tangent function to establish an angle analysis model, and inputting the synthesized vector into the angle analysis model to obtain a corresponding vector to be analyzed; Step 33: Run the angle analysis model to obtain the angle analysis model, and obtain the vector angles corresponding to the vector to be analyzed at different sampling intervals; Step 34: Establishing a unit phase angle corresponding to the synthetic vector in each of the preset sampling intervals according to the angle difference between adjacent vector angles.
4. The frequency measurement method of a single-phase AC power grid according to claim 1, characterized in that: The step 4 comprises: Step 41: obtaining a vector angle corresponding to the synthetic vector, and projecting the synthetic vector into a preset coordinate system based on the vector angle to obtain a virtual vector; Step 42: establishing the rotation angular velocity of the synthetic vector corresponding to different preset sampling intervals according to the vector angles corresponding to the virtual vector in different preset sampling intervals; Step 43: establishing a vector frequency corresponding to the synthetic vector at different preset sampling intervals according to the rotation angular velocity and unit phase angle corresponding to the synthetic vector at each preset sampling interval; Step 44: obtaining frequencies corresponding to different preset sampling intervals of the single-phase AC power grid to be measured according to the vector frequencies corresponding to the synthetic vectors at different preset sampling intervals.
5. The frequency measurement method of a single-phase AC power grid according to claim 1, characterized in that: The step 154 includes: Step 1541: establishing a first sampling waveform according to the first sub-signal, establishing a second sampling waveform according to the second sub-signal, searching the first waveform value corresponding to the target sampling ratio in the first sampling waveform, and searching the second waveform value corresponding to the target sampling ratio in the second sampling waveform; Step 1542: obtaining a first waveform difference between the first waveform value and an adjacent first waveform value, and obtaining a second waveform difference between the second waveform value and an adjacent second waveform value, and when the first waveform difference is greater than the first waveform difference, establishing an abnormal feature for the first waveform value, otherwise, establishing an abnormal feature for the second waveform value; Step 1543: Eliminate abnormal sub-signals with abnormal characteristics, count the number of first signals corresponding to the first normal sub-signals to generate a first signal group and the number of second signals corresponding to the second normal sub-signals to generate a second signal group, obtain the signal group corresponding to the high signal number as the basic signal group, and obtain the signal group corresponding to the low signal number as the compensation signal group; Step 1544: Obtain the null value preset sampling interval corresponding to the signal null value contained in the basic signal group, search the compensation value corresponding to the control preset sampling interval in the compensation signal group, input the compensation value into the corresponding signal null value, and generate a sampling signal of the power grid to be measured.
6. A frequency measuring device for a single-phase AC power grid, characterized in that: include: A signal sampling module, used to perform voltage / current sampling on the single-phase AC power grid to be tested using a preset sampling interval to obtain a sampling signal of the power grid to be tested; A signal processing module, used for filtering and integrating the sampled signal to generate corresponding in-frequency in-phase orthogonal signals and in-frequency non-in-phase orthogonal signals; A vector analysis module, used to establish a synthetic vector according to the same-frequency and same-phase orthogonal signal and the same-frequency and non-in-phase orthogonal signal, and obtain a unit phase angle of the synthetic vector; A frequency analysis module, used to obtain the rotational angular velocity of the synthetic vector and generate the frequency of the single-phase AC power grid to be tested in combination with the unit phase angle; The signal sampling module comprises: The primary sampling unit is used to perform voltage sampling and current sampling on the single-phase AC power grid to be tested at a preset sampling interval to obtain corresponding voltage sampling results and current sampling results; A sampling evaluation unit, used to evaluate the integrity of the voltage sampling result and the current sampling result respectively, to obtain a first integrity corresponding to the voltage sampling result and a second integrity corresponding to the current sampling result; a first signal selection unit, configured to generate a sampling signal of the power grid to be measured according to the voltage sampling result when the first integrity is greater than the second integrity, and to generate a sampling signal of the power grid to be measured according to the current sampling result when the first integrity is less than the second integrity; A second signal selection unit, configured to generate a first sampling signal of the power grid to be measured according to the voltage sampling result, and generate a second sampling signal of the power grid to be measured according to the current sampling result when the first integrity is equal to the second integrity; a signal processing unit, configured to superimpose the first sampling signal and the second sampling signal, and generate a sampling signal of the power grid to be measured according to the superposition result; The signal processing unit comprises: A first processing sub-unit, configured to divide the first sampling signal into a plurality of first sub-signals and the second sampling signal into a plurality of second sub-signals based on the preset sampling interval, and respectively perform time domain analysis on each of the first sub-signal and the second sub-signal to obtain corresponding first time domain sub-signals and second time domain sub-signals; a second processing sub-unit, configured to establish a sampling time axis based on the preset sampling interval, respectively obtain a first sampling value corresponding to each of the first time domain sub-signals and respectively obtain a second sampling value corresponding to each of the second time domain sub-signals, and respectively input the first sampling value and the second sampling value into a first placement area and a second placement area corresponding to the sampling time axis to obtain a sampling value axis; A third processing subunit is used to analyze the sampling value axis, obtain the sampling ratio corresponding to each of the preset sampling intervals, obtain the discreteness between different sampling ratios, and obtain a target sampling ratio whose discreteness is higher than a preset discreteness threshold; The fourth processing sub-unit is used to perform abnormal analysis on the target first sub-signal and the target second sub-signal corresponding to the target sampling ratio, eliminate the abnormal sub-signals with abnormal characteristics according to the analysis results to obtain the corresponding first normal sub-signal and second normal sub-signal, and generate the sampling signal of the power grid to be tested according to the first normal sub-signal and the second normal sub-signal.
