Zero-crossing detection method and system
By sampling the mains information, performing sinusoidal AC signal processing, and setting confirmation conditions, it solves the problem of repeated zero-crossings caused by high hardware costs and mains zero-crossing distortion in the existing technology, and achieves efficient and reliable zero-crossing detection.
Patent Information
- Application Number
- CN202410789274.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-19
AI Technical Summary
In the prior art, zero-crossing detection is implemented by adding a hardware zero-crossing capture module, which increases the hardware cost, and when the mains zero-crossing point is distorted, repeated zero-crossing points may occur, affecting detection accuracy.
Obtain mains information through sampling, generate sinusoidal AC signals and perform change processing, set the first confirmation condition and second confirmation condition, determine whether the mains is a reliable zero-crossing signal, use orthogonal fiction and PARK transformation to obtain phase information, and combine Mains power information is used to determine.
It avoids repeated zero-crossing judgments caused by the distortion of the mains zero-crossing point, reduces hardware costs, improves detection reliability and efficiency, and does not affect the zero-crossing soft start judgment.
Smart Images

Figure CN118376835B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of zero-crossing detection, and in particular relates to a zero-crossing detection method and system. Background Art
[0002] With the development of technology and the continuous pursuit of power density, in PWM converters, the implementation of soft-start switching usually requires detecting the zero-crossing point of the current. The zero-crossing soft-start strategy is an important control strategy. Its purpose is to reduce the current impact through soft start when the current passes through the zero point to avoid damage to the power supply and load.
[0003] Reliable zero-crossing detection is of great significance for achieving accurate current control and efficient energy conversion. Inaccurate zero-crossing detection will firstly lead to errors in the switching of the switch state, thus affecting the accuracy of current control. Secondly, it will lead to errors in the switching of the switch state, thus affecting the efficiency of energy conversion.
[0004] Currently, the more commonly used zero-crossing detection methods include adding a hardware zero-crossing capture module (increasing hardware costs) and software sampling of AC voltage to achieve zero-crossing detection. However, when the zero-crossing point of the mains is distorted, repeated zero-crossings may occur, thus affecting the detection accuracy. Summary of the invention
[0005] The purpose of the present invention is to provide a zero-crossing detection method, which aims to solve the technical problem that in the prior art, zero-crossing detection is achieved by adding a hardware zero-crossing capture module (increasing hardware cost) and software sampling AC voltage. However, when the zero-crossing point of the mains is distorted, repeated zero-crossings may occur, thereby affecting the detection accuracy.
[0006] The present invention is implemented in this way: a zero-crossing detection method, the zero-crossing detection method comprising the following steps:
[0007] S1, generating a sinusoidal AC signal according to the mains power information obtained by sampling;
[0008] S2, performing a change process on the sinusoidal AC signal to obtain phase information;
[0009] S3, setting a first confirmation condition and a second confirmation condition according to the mains information and the phase information respectively;
[0010] S4. If the current mains power meets both the first confirmation condition and the second confirmation condition, it is determined that the current mains power is a reliable zero-crossing signal.
[0011] A further technical solution of the present invention is: the step S1 includes the following steps:
[0012] S11, converting the sampled city power information into a digital signal by using a digital analog method;
[0013] S12, performing orthogonal simulation on the digital signal to obtain a sinusoidal AC signal and .
[0014] A further technical solution of the present invention is: the step S2 includes the following steps:
[0015] S21, performing PARK transformation on the sinusoidal AC signal to obtain a DC signal;
[0016] S22, performing two-stage operation transformation processing on the DC signal to obtain phase information.
[0017] A further technical solution of the present invention is: the step S22 includes the following steps:
[0018] S221, the DC signal is processed by phase detection calculation to obtain an angular frequency difference ;
[0019] S222: Calculate and convert the angular frequency difference to obtain the mains angle .
[0020] A further technical solution of the present invention is: in the step S3, when setting the first confirmation condition and the second confirmation condition, a first preset voltage and a second preset voltage for determining the first confirmation condition are set, and a first model and a second model satisfying the second confirmation condition are set;
[0021] Determine whether the voltage of the mains power information is greater than the first preset voltage or less than the second preset voltage, if the voltage of the mains power information is greater than the first preset voltage, record it as a first mains power state, if the voltage of the mains power information is less than the second preset voltage, record it as a second mains power state;
[0022] Determine whether the phase information satisfies the first model or the second model, if the phase information satisfies the first model, record it as the third mains power state, if the phase information satisfies the second model, record it as the fourth mains power state;
[0023] The first mains power state and the second mains power state constitute the first confirmation condition, and the third mains power state and the fourth mains power state constitute the second confirmation condition.
[0024] A further technical solution of the present invention is: in step S4, it is determined that the current reliable zero-crossing signal of the mains power includes
[0025] When the mains power information and the phase information satisfy the first mains power state and the third mains power state, the current mains power is a reliable zero-crossing signal; or
[0026] When the mains power information and the phase information satisfy the second mains power state and the third mains power state, the current mains power is a reliable zero-crossing signal.
[0027] A further technical solution of the present invention is: the first model is a positive axis crossing negative axis model, and the second model is a negative axis crossing positive axis model.
[0028] A further technical solution of the present invention is: the second confirmation condition is the third mains power state and the first mains power state is equal to 1, and the currently recorded AC voltage is a reliable positive cycle; or
[0029] The second confirmation condition is that the fourth mains power state and the second mains power state are equal to 0, and the currently recorded AC voltage is a reliable negative cycle.
[0030] A further technical solution of the present invention is: in step S12, the digital signal orthogonal imaginary obtains a sinusoidal AC signal by calculating a function and , functional form:
[0031]
[0032]
[0033] in, k is the proportionality coefficient, ω n is the angular frequency, V ac is the mains voltage, S For the frequency domain.
[0034] Another object of the present invention is to provide a zero-crossing detection system for executing the zero-crossing detection method, the zero-crossing detection system comprising
[0035] An orthogonal signal acquisition module is used to generate a sinusoidal AC signal according to the mains power information acquired by sampling;
[0036] A phase information acquisition module, used for performing a change process on the sinusoidal AC signal to obtain phase information;
[0037] A condition setting module, used to set the first confirmation condition and the second confirmation condition for the mains power information and the phase information respectively;
[0038] A zero-crossing judgment module, used for judging that the current mains power is a reliable zero-crossing signal if the current mains power meets both the first confirmation condition and the second confirmation condition;
[0039] The orthogonal signal acquisition module includes
[0040] A signal conversion unit, used for converting the sampled city power information into a digital signal by using a digital analog method;
[0041] A calculation unit, used to perform orthogonal imaginary operation on the digital signal to obtain a sinusoidal AC signal and ;
[0042] The phase information acquisition module includes
[0043] A DC acquisition unit, used for performing PARK transformation on the sinusoidal AC signal to obtain a DC signal;
[0044] A secondary operation unit, used for performing a two-stage operation transformation process on the DC signal to obtain phase information;
[0045] The secondary operation unit includes
[0046] An angular frequency difference calculation unit is used to calculate and process the DC signal through phase detection to obtain an angular frequency difference ;
[0047] A mains angle calculation unit is used to calculate and convert the mains angle according to the angular frequency difference. ;
[0048] When setting the first confirmation condition and the second confirmation condition, the condition setting module sets a first preset voltage and a second preset voltage for determining the first confirmation condition, and a first model and a second model for satisfying the second confirmation condition;
[0049] Determine whether the voltage of the mains power information is greater than the first preset voltage or less than the second preset voltage, if the voltage of the mains power information is greater than the first preset voltage, record it as a first mains power state, if the voltage of the mains power information is less than the second preset voltage, record it as a second mains power state;
[0050] Determine whether the phase information satisfies the first model or the second model, if the phase information satisfies the first model, record it as the third mains power state, if the phase information satisfies the second model, record it as the fourth mains power state;
[0051] Wherein, the first mains power state and the mains power state constitute the first confirmation condition, and the third mains power state and the fourth mains power state constitute the second confirmation condition;
[0052] The zero-crossing judgment module determines that the current reliable zero-crossing signal of the mains power includes
[0053] When the mains power information and the phase information satisfy the first mains power state and the third mains power state, the current mains power is a reliable zero-crossing signal; or
[0054] When the mains power information and the phase information satisfy the second mains power state and the third mains power state, the current mains power is a reliable zero-crossing signal;
[0055] The first model is a positive axis crossing negative axis model, and the second model is a negative axis crossing positive axis model;
[0056] The second confirmation condition is that the third mains power state and the first mains power state are equal to 1, and the currently recorded AC voltage is a reliable positive cycle; or
[0057] The second confirmation condition is that the fourth mains power state and the second mains power state are equal to 0, and the currently recorded AC voltage is a reliable negative cycle;
[0058] The digital signal in the calculation unit is orthogonal to obtain a sinusoidal AC signal by calculating a function and , functional form:
[0059]
[0060]
[0061] in, k is the proportionality coefficient, ω n is the angular frequency, V ac is the mains voltage, S For the frequency domain.
[0062] The beneficial effects of the present invention are as follows: this zero-crossing detection method will not cause repeated zero-crossing judgments due to zero-crossing point distortion of the AC mains, will not affect the zero-crossing soft start judgment, will not increase the THD value, will not make the PF value worse, will reduce hardware costs, and increase judgment reliability. In addition, the detection method is simple and the detection efficiency is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 It is a flow chart of a zero-crossing detection method provided by an embodiment of the present invention.
[0064] Figure 2 The phase of the zero-crossing detection method provided by the embodiment of the present invention is the same as the mains reference Figure 1 ;
[0065] Figure 3 is a reliable area reference diagram of the zero-crossing detection method provided by an embodiment of the present invention;
[0066] Figure 4is a frequency domain and time domain relationship diagram of the zero-crossing detection method provided by an embodiment of the present invention;
[0067] Figure 5 is the orthogonal signal closed-loop transfer function of the zero-crossing detection method provided by the embodiment of the present invention. Figure 1 ;
[0068] Figure 6 is the orthogonal signal closed-loop transfer function of the zero-crossing detection method provided by the embodiment of the present invention. Figure 2 ;
[0069] Figure 7 The zero-crossing detection method provided in the embodiment of the present invention calculates the mains power Voltage Angle Schematic diagram.
[0070] Figure 8 4 is a block diagram of a zero-crossing detection system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0071] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0072] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.
[0073] like Figure 1-7 As shown, a flowchart of a zero-crossing detection method provided by the present invention is described in detail as follows:
[0074] The basic principle of this zero-crossing detection method: Mains power After the voltage is acquired by the sampling circuit processor, the algorithm creates a static vertical AC signal , Through a closed-loop system, frequency synchronization is achieved through a phase detector and a voltage-controlled oscillator, and then the phase information is used to achieve a reliable sinusoidal signal synchronized with the mains. This signal is used as the second confirmation condition for reliable zero-crossing detection as a redundant judgment to increase reliability. Combined with the actual mains AC sampling zero-crossing first confirmation condition, when the first confirmation condition and the second confirmation condition simultaneously meet the zero-crossing condition, it is considered to be a reliable zero-crossing signal.
[0075] Step S1, generating a sinusoidal AC signal based on the AC power information obtained by sampling; the AC power information directly obtained by sampling the input AC power includes but is not limited to related information such as voltage, current and frequency, and then the AC power related information directly obtained by sampling is processed differently to obtain its corresponding different parameters, so as to meet the realization of functions in subsequent detection.
[0076] In the process of generating a sinusoidal AC signal from the sampled AC information, firstly, the sampled AC information is converted from an analog signal to a digital signal by a digital analog method; secondly, the converted digital signal is converted into a sinusoidal AC signal by orthogonal simulation. and .
[0077] Specifically, in this application, the mains The voltage is converted into a digital signal in the form of analog voltage by a sampling circuit processor; the sampling circuit processor is a DSP or ARM; the mains The voltage is calculated using the following formula:
[0078] ;
[0079] in, is the actual mains voltage calculated by the sampling circuit processor Voltage, The digital signal obtained by the sampling circuit processor, is the sampling proportional gain.
[0080] The actual mains electricity ac Voltage V ac After orthogonal simulation, a sinusoidal AC signal is obtained and , where the orthogonal imaginary calculation function is as follows:
[0081] ;
[0082] ;
[0083] in, is the frequency domain, is the proportional coefficient, the value is 1, is the angular frequency.
[0084] In the frequency domain, Figure 4 The coordinate system of time domain and frequency domain is shown. The frequency domain is obtained by Laplace transformation of time domain t, which is more concrete. ,in, is the imaginary part, is the angular velocity, For time.
[0085] is the angular frequency. The electrical angle change of alternating current is 2π radians per cycle. The frequency is 50Hz, so the relationship between angular frequency and frequency period is: ω=2π / T=2πf.
[0086] The value of Figure 5-6 As shown, since the frequency of the power grid is not always 50HZ, there are deviations in the stability of the power grid in different regions. When the power grid stability is worse, for example, it fluctuates from 45Hz to 55Hz, The larger the value, the larger the frequency change that can be covered, but the corresponding response speed is slower. The smaller the value, the smaller the frequency change that can be covered, but the response speed increases. =3 corresponds Figure 5 The curve of the upper left coordinate system. =0.2 corresponds to Figure 5 The curve of the upper left coordinate system, and the other values correspond to the corresponding curves.
[0087] Step S2: performing a change process on the obtained sinusoidal AC signal to obtain phase information;
[0088] Furthermore, in the process of changing the obtained sinusoidal AC signal to obtain phase information, first, the rotating coordinate system is obtained by using Park transformation , Value; secondly, the DC signal is transformed by two-level operations to obtain phase information. , The value is calculated by the following formula:
[0089] ;
[0090] ;
[0091] in, For the mains Voltage synchronization angle.
[0092] Specifically, calculate the mains electricity Voltage Angle ; obtained by the following formula:
[0093] ;
[0094] ;
[0095] ;
[0096] in, is the angular velocity difference, , is the control coefficient, and its values are 0.5558773, 0.55492419, is the angular velocity, is the initial angular velocity, , is the mains frequency, and θ is the mains phase.
[0097] Step S3, respectively setting the first confirmation condition and the second confirmation condition according to the mains information and the phase information; wherein the mains information includes but is not limited to information such as voltage, current and frequency; using the mains calculated in step S2 Voltage Angle Calculate the mains power at this time The second confirmation condition of the angle is obtained by the following formula:
[0098] ;
[0099] ;
[0100] in, The city power recorded at the last moment Voltage angle, For the current mains Voltage angle;
[0101] The positive cycle crosses the negative axis: that is, the AC sine function of the mains AC crosses from the positive half cycle to the negative half cycle. It is necessary to meet three preset conditions in sequence before the positive cycle crosses the negative axis, that is, the first model. The three preset conditions are the first preset condition, the second preset condition and the third preset condition. The following is a concrete description of the first model. It is worth noting that the data listed in the following description are only exemplary. This scheme does not limit the specific values. In the process of the AC sinusoidal function of the current mains AC changing from the peak to the trough, first, it is determined Is it less than 0.03, that is, the first preset condition, 0.03 is the example value, if so, let the AC state State = NegCross1, and trigger the next preset condition; if it is detected If it is greater than or equal to 0.03, retest; if it satisfies State=NegCross1, then continue to detect within the preset time Is it less than 0, that is, the second preset condition, 0 is the example value, if so, then update the AC state, let State = NegCross2, and trigger the next preset condition, if If it is greater than or equal to 0, it returns to the first preset condition of the test. State = NegCross2, then continue to detect within the preset time Is it less than -0.03, that is, the third preset condition, -0.03 is the example value, if so, then update the AC state, let State = NegCross3, so far, the AC power meets the first model condition, that is, the positive cycle crosses the negative axis; if it is greater than or equal to -0.03, then return to and re-test the first preset condition. The first preset condition, the second preset condition and the third preset condition are as follows:
[0102] <0.03, State = NegCross1;
[0103] <0, State = NegCross2;
[0104] <-0.03, State = NegCross3;
[0105] Negative cycle crossing the positive axis: that is, the process of the sine function of the AC power passing from the negative half cycle to the positive half cycle. The second model is the one that meets the three preset conditions in sequence and meets the negative cycle crossing the positive axis. The three preset conditions are the first preset condition, the second preset condition and the third preset condition. The following is a concrete description of the second model. It is worth noting that the data listed in the following description are only exemplary, and this scheme does not limit the specific values. In the process of the current AC sine function changing from the trough to the peak, first, it is determined Is it greater than -0.03, that is, the first preset condition, -0.03 is the example value. If so, let the AC state State = PosCross1, and trigger the next preset condition; if If it is less than or equal to -0.03, re-test; if it satisfies State = PosCross1, continue testing within the preset time Is it greater than 0, that is, the fifth preset condition, 0 is the example value, if so, then update the AC state, let State = PosCross2, and trigger the next preset condition, if If it is less than or equal to 0, it returns to the first preset condition for detection. If it is met, it will continue to detect within the preset time. Is it greater than 0.03? If so, update the AC state and set State = PosCross3. At this point, the AC meets the second model condition, that is, the negative axis crosses the positive axis. If it is less than or equal to 0.03, the fourth preset condition is returned to be retested. The fourth preset condition, the fifth preset condition and the sixth preset condition are as follows:
[0106] >-0.03, State = PosCross1;
[0107] >0, Stat e = PosCross2;
[0108] >0.03, State = PosCross3;
[0109] As the second confirmation condition.
[0110] It is worth noting that since the AC power of the power grid is not a perfect sine function, its expression is only presented as a sine function within the overall range, and the overall waveform is consistent with the changes of the sine function waveform, but there is an oscillation phenomenon in the local band, which is affected by the stability of the power grid. If the oscillation band occurs when the city power crosses the negative axis from the positive cycle or crosses the positive axis from the negative cycle, a false zero crossing phenomenon will occur, that is, repeated zero crossing.
[0111] Determine the actual sampling mains The positive and negative cycle of the voltage is used as the first confirmation condition; it is obtained by the following formula:
[0112] ;
[0113] like( ),but =1 is positive week;
[0114] like( ),but =0 is a negative cycle;
[0115] in, Record the actual mains power for the last moment Voltage direction, Record the mains power for the current moment Voltage direction, f is voltage, and the unit of voltage is V;
[0116] As the first confirmation condition.
[0117] When setting the first confirmation condition and the second confirmation condition, a first preset voltage and a second preset voltage for determining the first confirmation condition are set, the first preset voltage (1.5f) of the first confirmation condition corresponds to the second model, and the second preset voltage (-1.5V) of the first confirmation condition corresponds to the first model;
[0118] Determine whether the voltage in the mains power information is greater than a first preset voltage or less than a second preset voltage, if the voltage in the mains power information is greater than the first preset voltage, record it as a first mains power state, if the voltage in the mains power information is less than the second preset voltage, record it as a second mains power state;
[0119] Determine whether the phase information satisfies the first model or the second model, if the phase information satisfies the first model, record it as the third mains state, if the phase information satisfies the second model, record it as the third mains state;
[0120] The first mains power state and the second mains power state constitute a first confirmation condition, and the third mains power state and the fourth mains power state constitute a second confirmation condition.
[0121] The first model is a positive axis crossing negative axis model, and the second model is a negative axis crossing positive axis model.
[0122] Step S4: The sampled AC voltage satisfies both the first confirmation condition and the second confirmation condition and is determined to be a reliable zero-crossing signal; the AC voltage is determined to be a reliable zero-crossing signal based on the second confirmation condition and the first confirmation condition. The voltage can cross zero reliably; it is determined by the following formula:
[0123] when and =1, mains electricity The voltage is reliably positive;
[0124] when and =0, mains electricity The voltage is reliably negative.
[0125] In judging whether the mains power is reliable, the zero-crossing signal includes
[0126] When the mains power information and the phase information satisfy the first mains power state and the fourth mains power state, the mains power is a reliable zero-crossing signal; or
[0127] When the mains power information and the phase information satisfy the second mains power state and the third mains power state, the mains power is a reliable zero-crossing signal.
[0128] This zero-crossing detection method will not cause repeated zero-crossing judgments due to AC mains zero-crossing distortion, will not affect zero-crossing soft-start judgments, will not increase THD values, will not deteriorate PF values, will reduce hardware costs, and increase judgment reliability. In addition, the detection method is simple and efficient.
[0129] like Figure 8 As shown, another object of the present invention is to provide a zero-crossing detection system for executing the zero-crossing detection method, the zero-crossing detection system includes
[0130] An orthogonal signal acquisition module is used to generate a sinusoidal AC signal according to the mains power information acquired by sampling;
[0131] A phase information acquisition module is used to obtain phase information by performing a change process on the sinusoidal AC signal;
[0132] A condition setting module, used to set the mains information as the first confirmation condition and the phase information as the second confirmation condition;
[0133] A zero-crossing judgment module, used for sampling an AC voltage and determining that the AC voltage satisfies a first confirmation condition and a second confirmation condition at the same time as a reliable zero-crossing signal;
[0134] The orthogonal signal acquisition module includes
[0135] A signal conversion unit, used to determine the city power information and convert the analog signal into a digital signal through a digital analog method;
[0136] A calculation unit used to obtain a sinusoidal AC signal by performing orthogonal simulation on the digital signal and ;
[0137] The phase information acquisition module includes
[0138] A DC acquisition unit, used for performing PARK transformation on a sinusoidal AC signal to obtain a DC signal;
[0139] A secondary operation unit, used for performing two-stage operation transformation processing on the DC signal to obtain phase information;
[0140] The secondary computing unit includes
[0141] The angular frequency difference calculation unit is used to obtain the angular frequency difference after the DC signal is processed by phase calculation. ;
[0142] The mains angle calculation unit is used to calculate and convert the mains angle according to the angular frequency difference ;
[0143] When setting the first confirmation condition and the second confirmation condition, the condition setting module sets the first preset voltage and the second preset voltage for determining the first confirmation condition, and the first model and the second model for satisfying the second confirmation condition;
[0144] Determine whether the voltage of the mains power information is greater than a first preset voltage or less than a second preset voltage, if the voltage of the mains power information is greater than the first preset voltage, record it as a first mains power state, if the voltage of the mains power information is less than the second preset voltage, record it as a second mains power state;
[0145] Determine whether the phase information satisfies the first model or the second model, if the phase information satisfies the first model, record it as the third mains state, if the phase information satisfies the second model, record it as the fourth mains state;
[0146] The first mains power state and the second mains power state constitute the first confirmation condition, and the third mains power state and the fourth mains power state constitute the second confirmation condition;
[0147] The zero-crossing judgment module determines whether the mains power is reliable. The zero-crossing signal includes
[0148] When the mains power information and the phase information satisfy the first mains power state and the third mains power state, the mains power is a reliable zero-crossing signal; or
[0149] When the mains power information and the phase information satisfy the second mains power state and the third mains power state, the mains power is a reliable zero-crossing signal;
[0150] The first model is a positive cycle crossing the negative axis model, and the second model is a negative cycle crossing the positive axis model;
[0151] The second confirmation condition is that the third mains power state and the first mains power state is equal to 1, and the currently recorded AC voltage is a reliable positive cycle; or
[0152] The second confirmation condition is that the fourth mains power state and the second mains power state are equal to 0, and the currently recorded AC voltage is a reliable negative cycle;
[0153] The digital signal in the calculation unit is orthogonal to obtain a sinusoidal AC signal by calculating the function and , functional form:
[0154]
[0155]
[0156] in, k is the proportionality coefficient, ω n is the angular frequency, V ac is the mains voltage, S For the frequency domain.
[0157] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A zero-crossing detection method, characterized in that: The zero-crossing detection method comprises the following steps: S1, generating a sinusoidal AC signal according to the mains power information obtained by sampling; S2, performing a change process on the sinusoidal AC signal to obtain phase information; S3, setting a first confirmation condition and a second confirmation condition according to the mains information and the phase information respectively; S4, if the current mains power meets both the first confirmation condition and the second confirmation condition, it is determined that the current mains power is a reliable zero-crossing signal; In step S3, when setting the first confirmation condition and the second confirmation condition, a first preset voltage and a second preset voltage are set to determine the first confirmation condition, and a first model and a second model satisfying the second confirmation condition; Determine whether the voltage of the mains power information is greater than the first preset voltage or less than the second preset voltage, if the voltage of the mains power information is greater than the first preset voltage, record it as a first mains power state, if the voltage of the mains power information is less than the second preset voltage, record it as a second mains power state; Determine whether the phase information satisfies the first model or the second model, if the phase information satisfies the first model, record it as the third mains power state, if the phase information satisfies the second model, record it as the fourth mains power state; The first mains power state and the second mains power state constitute the first confirmation condition, and the third mains power state and the fourth mains power state constitute the second confirmation condition The first model is the process of the AC mains sinusoidal function crossing from the positive half cycle to the negative half cycle; the second model is the process of the AC mains sinusoidal function crossing from the negative half cycle to the positive half cycle.
2. The zero-crossing detection method according to claim 1, characterized in that: The step S1 includes the following steps: S11, converting the sampled city power information into a digital signal by using a digital analog method; S12, performing orthogonal simulation on the digital signal to obtain a sinusoidal AC signal and .
3. The zero-crossing detection method according to claim 2, characterized in that: The step S2 includes the following steps: S21, performing PARK transformation on the sinusoidal AC signal to obtain a DC signal; S22, performing two-stage operation transformation processing on the DC signal to obtain phase information.
4. The zero-crossing detection method according to claim 3, characterized in that: The step S22 includes the following steps: S221, the DC signal is processed by phase detection calculation to obtain an angular frequency difference ; S222: Calculate and convert the angular frequency difference to obtain the mains angle .
5. The zero-crossing detection method according to claim 4, characterized in that: In step S4, it is determined that the current reliable zero-crossing signal of the mains power includes When the mains power information and the phase information satisfy the first mains power state and the fourth mains power state, the current mains power is a reliable zero-crossing signal; or When the mains power information and the phase information satisfy the second mains power state and the third mains power state, the current mains power is a reliable zero-crossing signal.
6. The zero-crossing detection method according to claim 5, characterized in that: The first model is a positive axis crossing negative axis model, and the second model is a negative axis crossing positive axis model.
7. The zero-crossing detection method according to claim 6, characterized in that: The second confirmation condition is that the third mains power state and the first mains power state are equal to 1, and the currently recorded AC voltage is a reliable positive cycle; or The second confirmation condition is that the fourth mains power state and the second mains power state are equal to 0, and the currently recorded AC voltage is a reliable negative cycle.
8. The zero-crossing detection method according to claim 7, characterized in that: In step S12, the digital signal is orthogonal to obtain a sinusoidal AC signal by calculating a function. and , functional form: in, k is the proportionality coefficient, ω n is the angular frequency, V ac is the mains voltage, S For the frequency domain.
9. A zero-crossing detection system, used to execute the zero-crossing detection method according to any one of claims 1 to 8, characterized in that: The zero-crossing detection system comprises An orthogonal signal acquisition module is used to generate a sinusoidal AC signal according to the mains power information acquired by sampling; A phase information acquisition module, used for performing a change process on the sinusoidal AC signal to obtain phase information; A condition setting module, used to set the first confirmation condition and the second confirmation condition for the mains power information and the phase information respectively; A zero-crossing judgment module, used for judging that the current mains power is a reliable zero-crossing signal if the current mains power meets both the first confirmation condition and the second confirmation condition; The orthogonal signal acquisition module includes A signal conversion unit, used for converting the sampled city power information into a digital signal by using a digital analog method; A calculation unit, used to perform orthogonal imaginary operation on the digital signal to obtain a sinusoidal AC signal and ; The phase information acquisition module includes A DC acquisition unit, used for performing PARK transformation on the sinusoidal AC signal to obtain a DC signal; A secondary operation unit, used for performing a two-stage operation transformation process on the DC signal to obtain phase information; The secondary operation unit includes An angular frequency difference calculation unit is used to calculate and process the DC signal through phase detection to obtain an angular frequency difference ; A mains angle calculation unit is used to calculate and convert the mains angle according to the angular frequency difference. ; When setting the first confirmation condition and the second confirmation condition, the condition setting module sets a first preset voltage and a second preset voltage for determining the first confirmation condition, and a first model and a second model for satisfying the second confirmation condition; Determine whether the voltage of the mains power information is greater than the first preset voltage or less than the second preset voltage, if the voltage of the mains power information is greater than the first preset voltage, record it as a first mains power state, if the voltage of the mains power information is less than the second preset voltage, record it as a second mains power state; Determine whether the phase information satisfies the first model or the second model, if the phase information satisfies the first model, record it as the third mains power state, if the phase information satisfies the second model, record it as the fourth mains power state; Wherein, the first mains power state and the second mains power state constitute the first confirmation condition, and the third mains power state and the fourth mains power state constitute the second confirmation condition; The zero-crossing judgment module determines that the current reliable zero-crossing signal of the mains power includes When the mains power information and the phase information satisfy the first mains power state and the fourth mains power state, the current mains power is a reliable zero-crossing signal; or When the mains power information and the phase information satisfy the second mains power state and the third mains power state, the current mains power is a reliable zero-crossing signal; The first model is a positive axis crossing negative axis model, and the second model is a negative axis crossing positive axis model; The second confirmation condition is that the third mains power state and the first mains power state are equal to 1, and the currently recorded AC voltage is a reliable positive cycle; or The second confirmation condition is that the fourth mains power state and the second mains power state are equal to 0, and the currently recorded AC voltage is a reliable negative cycle; The digital signal in the calculation unit is orthogonal to obtain a sinusoidal AC signal by calculating a function and , functional form: in, k is the proportionality coefficient, ω n is the angular frequency, V ac is the mains voltage, S For the frequency domain.
Citation Information
Patent Citations
Zero-crossing-point accurate detection method for AC power-grid voltage signals
CN104090151A
Verification precision type zero-crossing detection method
CN111521862A
Zero point detection method, phase-change switching method, system and phase-change switching equipment
CN112946352A
Zero-cross detection method and intelligent switch with zero-cross detection function
CN113504406A
Power grid zero-crossing detection method and device based on alternating-current voltage sampling
CN113702693A
