Anti-interference method for judging the zero-crossing point of power grid voltage
By sampling the grid AC voltage at intervals and comparing it with the theoretical voltage value, the voltage zero-crossing point is determined, which solves the problem of inaccurate zero-crossing point determination when the power grid is unstable, improves the stability and reliability of system control, and prevents interference effects.
Patent Information
- Application Number
- CN202011131695.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-21
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-10-21
AI Technical Summary
When the power grid is unstable, inaccurate judgment of the AC zero-crossing point may lead to unstable system control, especially at the moment of heavy load startup or pulse interference.
The instantaneous voltage value of the alternating current of the power grid is sampled at fixed intervals, and the voltage zero-crossing point is determined based on the voltage instantaneous values of two adjacent samples. The theoretical voltage value is used for comparison, and the error range is set to ±10% to eliminate interference signals and ensure measurement. precise.
Effectively measure the true zero-crossing voltage, improve the stability and reliability of system control, and prevent interference effects.
Smart Images

Figure CN112362952B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of power grid power supply, and in particular relates to an anti-interference method for judging a zero-crossing point of a grid voltage. Background Art
[0002] At present, during the operation of the power frequency system of the power grid, when the power supply parameters of the power grid are known, the control system will collect the AC zero-crossing point of the power grid in order to achieve specific functions, such as driving the thyristor through chopping.
[0003] Although the AC zero-crossing point of the power grid is relatively easy to measure, if the power grid is unstable, such as when a heavy load is started or there is a pulse interference, if the authenticity of the measured zero-crossing point is not judged, it may cause system control instability. Summary of the invention
[0004] In order to solve the above problems, the present invention provides an anti-interference method for determining the zero-crossing point of the grid voltage, and effectively determines the true zero-crossing voltage, making the system control more stable and reliable and preventing interference.
[0005] The technical solution adopted by the present invention is:
[0006] An anti-interference method for determining a zero-crossing point of a power grid voltage comprises the following steps:
[0007] S1, system power-on initialization;
[0008] S2, sampling the instantaneous value of the voltage of the AC power grid at fixed intervals;
[0009] S3. Determine the voltage zero-crossing point according to the instantaneous voltage values of two consecutive samplings.
[0010] Preferably, in S2, the instantaneous voltage values of the two consecutive samplings are both the positive half-axis voltage of the AC power of the power grid.
[0011] Preferably, S3 specifically includes:
[0012] S31, the instantaneous voltage values of two consecutive samplings include an instantaneous voltage value greater than zero and an instantaneous voltage value equal to zero, and the instantaneous voltage value greater than zero is compared with the theoretical voltage value at the corresponding moment;
[0013] S32. When the error range of the comparison between the instantaneous voltage value greater than zero and the theoretical voltage value at the corresponding moment is less than or equal to the preset value, the instantaneous voltage value equal to zero is determined as the voltage zero-crossing point.
[0014] Preferably, the S31 is specifically:
[0015] If the instantaneous voltage value of the previous sampling is equal to zero, and the instantaneous voltage value of the next sampling is greater than zero, the instantaneous voltage value of the next sampling is compared with the theoretical voltage value at that moment;
[0016] If the instantaneous voltage value of the previous sampling is greater than zero and the instantaneous voltage value of the next sampling is equal to zero, the instantaneous voltage value of the previous sampling is compared with the theoretical voltage value at that moment.
[0017] Preferably, the S32 is specifically:
[0018] When the error range of the voltage instantaneous value sampled the next time compared with the theoretical voltage value at that moment is less than or equal to the preset value, it is determined that the voltage instantaneous value sampled the previous time is a true zero-crossing point;
[0019] When the error range between the instantaneous voltage value sampled at the previous time and the theoretical voltage value at the time is less than or equal to the preset value, it is determined that the instantaneous voltage value sampled at the next time is a true zero-crossing point.
[0020] Preferably, the preset value of the error range is ±10%.
[0021] Preferably, in S32, when the error range between the instantaneous voltage value greater than zero and the theoretical voltage value at the corresponding moment is greater than a preset value, it is determined to be an interference signal and the system does not process it.
[0022] Preferably, the calculation formula of the theoretical voltage value at the corresponding moment is:
[0023] U=Umax*sin(ωt+τu)
[0024] Among them, U is the instantaneous value of voltage, Umax is the peak value of the power grid, ω is the angular velocity, t is the time, and τu is the angular frequency.
[0025] Preferably, before S2, the step of: proportionally stepping down the grid voltage through a proportional step-down circuit and then transmitting the grid voltage to a voltage sampling AD port of a sampling chip for sampling.
[0026] Preferably, the proportional step-down circuit includes a circuit in which a diode D1, a first resistor R1, a second resistor R2, a third resistor R3 and a capacitor C1 are connected, wherein a diode D1, a first resistor R1 and a second resistor R2 are connected in series between the live line and the neutral line of the power grid in sequence, a common connection end between the first resistor R1 and the second resistor R2 is connected to one end of the third resistor R3, the other end of the third resistor R3 is connected to one end of the capacitor C1, the other end of the capacitor C1 is connected to the neutral line of the power grid, and the common connection end of the third resistor R3 and the capacitor C1 is connected to the voltage sampling AD port of the sampling chip.
[0027] Compared with the prior art, the anti-interference grid voltage zero-crossing judgment method of the present invention samples the instantaneous value of the grid alternating current voltage at fixed intervals, and determines the voltage zero-crossing point based on the instantaneous voltage values of two adjacent samples, thereby effectively determining the true zero-crossing voltage, making system control more stable and reliable, and preventing interference. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a flow chart of a method for determining a zero-crossing point of an anti-interference power grid voltage provided by an embodiment of the present invention;
[0029] Figure 2 It is a specific flow chart of a method for determining a zero-crossing point of an anti-interference power grid voltage provided by an embodiment of the present invention;
[0030] Figure 3 The invention discloses a step-down circuit diagram of an anti-interference method for judging the zero-crossing point of a power grid voltage provided by an embodiment of the invention. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0032] Example
[0033] The embodiment of the present invention provides an anti-interference method for determining the zero-crossing point of the grid voltage. Figure 1-2 As shown, the following steps are included:
[0034] S1, system power-on initialization;
[0035] S2, sampling the instantaneous value of the voltage of the AC power grid at fixed intervals;
[0036] S3. Determine the voltage zero-crossing point according to the instantaneous voltage values of two consecutive samplings.
[0037] In this way, through the system power-on initialization, the instantaneous value of the voltage of the grid AC power is sampled at fixed intervals, and the voltage zero-crossing point is determined based on the instantaneous voltage values of the two adjacent samples, thereby effectively determining the true zero-crossing voltage, making the system control more stable and reliable, and preventing interference.
[0038] The unit of fixed time is microsecond.
[0039] In S2, the instantaneous voltage values of the two previous and subsequent samplings are both the positive half-axis voltage of the AC power of the power grid.
[0040] In this way, the instantaneous voltage values obtained through the two previous and subsequent samplings are both the positive half-axis voltage of the AC power of the power grid, which facilitates subsequent judgment and calculation.
[0041] The S3 is specifically:
[0042] S31, the instantaneous voltage values of two consecutive samplings include an instantaneous voltage value greater than zero and an instantaneous voltage value equal to zero, and the instantaneous voltage value greater than zero is compared with the theoretical voltage value at the corresponding moment;
[0043] S32. When the error range of the comparison between the instantaneous voltage value greater than zero and the theoretical voltage value at the corresponding moment is less than or equal to the preset value, the instantaneous voltage value equal to zero is determined as the voltage zero-crossing point.
[0044] In this way, the instantaneous voltage values of the two previous and subsequent samples include an instantaneous voltage value greater than zero and an instantaneous voltage value equal to zero. The instantaneous voltage value greater than zero is compared with the theoretical voltage value at the corresponding moment. When the error range of the comparison between the instantaneous voltage value greater than zero and the theoretical voltage value at the corresponding moment is less than or equal to the preset value, it means that the instantaneous voltage value greater than zero is approximately equal to the theoretical voltage value at the corresponding moment, so that it can be determined that the instantaneous voltage value equal to zero is a true voltage zero crossing point, and the next step can be performed.
[0045] The S31 is specifically:
[0046] If the instantaneous voltage value of the previous sampling is equal to zero, and the instantaneous voltage value of the next sampling is greater than zero, the instantaneous voltage value of the next sampling is compared with the theoretical voltage value at that moment;
[0047] If the instantaneous voltage value of the previous sampling is greater than zero and the instantaneous voltage value of the next sampling is equal to zero, the instantaneous voltage value of the previous sampling is compared with the theoretical voltage value at that moment.
[0048] In this way, if the instantaneous voltage value of the previous sampling is equal to zero and the instantaneous voltage value of the next sampling is greater than zero, the instantaneous voltage value of the next sampling is compared with the theoretical voltage value at that moment; if the instantaneous voltage value of the previous sampling is greater than zero and the instantaneous voltage value of the next sampling is equal to zero, the instantaneous voltage value of the previous sampling is compared with the theoretical voltage value at that moment, thereby comparing the instantaneous voltage values greater than zero in the two previous and next samplings with the theoretical voltage values at their corresponding moments, so as to better confirm whether the instantaneous voltage value equal to zero is a true zero crossing point.
[0049] The S32 is specifically:
[0050] When the error range between the instantaneous voltage value sampled at the next sampling and the theoretical voltage value at that moment is less than or equal to the preset value, the instantaneous voltage value sampled at the previous sampling is determined to be the true voltage zero crossing point;
[0051] When the error range between the instantaneous voltage value sampled at the previous time and the theoretical voltage value at the time is less than or equal to the preset value, the instantaneous voltage value sampled at the next time is determined to be the voltage zero crossing point.
[0052] In this way, when the error range between the instantaneous voltage value sampled in the latter time and the theoretical voltage value at that moment is less than or equal to the preset value, it is determined that the instantaneous voltage value sampled in the previous time is the true voltage zero crossing point, and is the zero crossing point where the voltage passes through the negative half axis.
[0053] When the error range between the instantaneous voltage value sampled previously and the theoretical voltage value at that moment is less than or equal to the preset value, the instantaneous voltage value sampled later is determined to be the true voltage zero crossing point, and is the zero crossing point where the voltage crosses the positive half axis.
[0054] The preset value of the error range is ±10%.
[0055] Thus, the preset value of the error range is ±10%, that is, the comparison result of the instantaneous voltage value greater than zero and the theoretical voltage value at the corresponding moment is allowed to be within a certain error range, thereby eliminating human error or non-human error.
[0056] In the above S32, when the error range between the instantaneous voltage value greater than zero and the theoretical voltage value at the corresponding moment is greater than a preset value, it is determined to be an interference signal and the system does not process it.
[0057] In this way, when the error range of the comparison between the instantaneous voltage value greater than zero and the theoretical voltage value at the corresponding moment is greater than the preset value, it is proved that the instantaneous voltage value greater than zero is not the theoretical voltage value at the corresponding moment, and is an interference signal, and the system does not perform any processing.
[0058] The calculation formula of the theoretical voltage value at the corresponding moment is:
[0059] U=Umax*sin(ωt+τu)
[0060] Among them, U is the instantaneous value of voltage, Umax is the peak value of the power grid, ω is the angular velocity, t is the time, and τu is the angular frequency.
[0061] Thus, the present application adopts a sinusoidal AC voltage: U(t)=Umax*sin(ωt+τu), where U is the instantaneous value of voltage (V), Umax is the maximum value of voltage (V), and τu is the angular frequency (rad / s).
[0062] In my country's current system, the frequency of alternating current is 50 Hz, then the period T = 1 / f = 0.02s, the angular frequency ω = 2πf = 314 radians / second, the maximum voltage Umax = 220√2≈311 (V), and based on the characteristic parameters of the current power grid, the sinusoidal AC voltage function U(t) = 311*sin(314*t) is determined.
[0063] The step before S2 also includes the following steps: proportionally stepping down the grid voltage through a proportional step-down circuit and then transmitting the proportional step-down to the voltage sampling AD port of the sampling chip for sampling, so as to adapt to the withstand voltage value of the sampling chip.
[0064] In this way, by reducing the grid voltage by the inverse proportional coefficient 1 / K of the proportional step-down circuit, the rated voltage (eg, 220 V) can be reduced to a voltage range that the sampling chip can withstand (eg, within 5 V).
[0065] like Figure 3 As shown, the proportional step-down circuit includes a circuit in which a diode D1, a first resistor R1, a second resistor R2, a third resistor R3 and a capacitor C1 are connected, wherein a diode D1, a first resistor R1 and a second resistor R2 are connected in series between the live wire and the neutral wire of the power grid in sequence, a common connection end between the first resistor R1 and the second resistor R2 is connected to one end of the third resistor R3, the other end of the third resistor R3 is connected to one end of the capacitor C1, the other end of the capacitor C1 is connected to the neutral wire of the power grid, and a common connection end of the third resistor R3 and the capacitor C1 is connected to the voltage sampling AD port of the sampling chip.
[0066] In this way, the diode D1 is forward-conducted and reverse-cutoff, so that the live wire current of the power grid flows smoothly into the step-down circuit, and the first resistor R1 and the second resistor R2 form a voltage divider circuit, so that the voltage of the voltage sampling AD port is R2 / (R1+R2) times the live wire voltage of the power grid. The third resistor R3 is used as a current limiting resistor to prevent excessive current, and the capacitor C1 is used for filtering to prevent interference, so that the voltage is stepped down by the inverse proportional coefficient 1 / k of the step-down circuit to sample the voltage AD data value of the positive half axis.
[0067] The anti-interference grid voltage zero-crossing judgment method of the present invention samples the instantaneous value of the grid alternating current voltage at fixed intervals, and determines the voltage zero point based on the instantaneous voltage values of two adjacent samples, thereby effectively determining the true zero-crossing voltage, making the system control more stable and reliable, and preventing interference.
[0068] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for determining the zero-crossing point of a power grid voltage with an anti-interference feature, characterized in that: The steps include: S1, system power-on initialization; S2, sampling the instantaneous value of the voltage of the AC power grid at fixed intervals; S3, determining the voltage zero-crossing point according to the instantaneous voltage values of two consecutive samplings; The S3 is specifically: S31, the instantaneous voltage values of two consecutive samplings include an instantaneous voltage value greater than zero and an instantaneous voltage value equal to zero, and the instantaneous voltage value greater than zero is compared with the theoretical voltage value at the corresponding moment; S32, when the error range between the instantaneous voltage value sampled at the next sampling and the theoretical voltage value at that moment is less than or equal to the preset value, the instantaneous voltage value sampled at the previous sampling is determined to be the voltage zero crossing point; When the error range between the instantaneous voltage value sampled at the previous time and the theoretical voltage value at that time is less than or equal to the preset value, the instantaneous voltage value sampled at the next time is determined to be the voltage zero crossing point; The calculation formula of the theoretical voltage value at the corresponding moment is: U=Umax*sin(ωt+τu) Among them, U is the instantaneous value of voltage, Umax is the peak value of the power grid, ω is the angular velocity, t is the time, and τu is the angular frequency.
2. The anti-interference grid voltage zero-crossing judgment method according to claim 1 is characterized in that: In S2, the sampled instantaneous voltage values are all the positive half-axis voltages of the AC power of the power grid.
3. The anti-interference grid voltage zero-crossing judgment method according to claim 1 is characterized in that: The S31 is specifically: If the instantaneous voltage value of the previous sampling is equal to zero, and the instantaneous voltage value of the next sampling is greater than zero, the instantaneous voltage value of the next sampling is compared with the theoretical voltage value at that moment; If the instantaneous voltage value of the previous sampling is greater than zero and the instantaneous voltage value of the next sampling is equal to zero, the instantaneous voltage value of the previous sampling is compared with the theoretical voltage value at that moment.
4. The anti-interference grid voltage zero-crossing judgment method according to claim 3 is characterized in that: The preset value of the error range is ±10%.
5. The anti-interference grid voltage zero-crossing judgment method according to claim 1 is characterized in that: In the above S32, when the error range between the instantaneous voltage value greater than zero and the theoretical voltage value at the corresponding moment is greater than a preset value, it is determined to be an interference signal and the system does not process it.
6. The method for determining the zero-crossing point of the anti-interference power grid voltage according to any one of claims 1 to 3, characterized in that: The step before S2 also includes the following steps: proportionally stepping down the grid voltage through a proportional step-down circuit and then transmitting the grid voltage to a voltage sampling AD port of a sampling chip for sampling.
7. The anti-interference grid voltage zero-crossing judgment method according to claim 6 is characterized in that: The proportional step-down circuit includes a circuit in which a diode D1, a first resistor R1, a second resistor R2, a third resistor R3 and a capacitor C1 are connected, wherein a diode D1, a first resistor R1 and a second resistor R2 are connected in series between the live wire and the neutral wire of the power grid in sequence, a common connection end between the first resistor R1 and the second resistor R2 is connected to one end of the third resistor R3, the other end of the third resistor R3 is connected to one end of the capacitor C1, the other end of the capacitor C1 is connected to the neutral wire of the power grid, and a common connection end between the third resistor R3 and the capacitor C1 is connected to the voltage sampling AD port of the sampling chip.
Citation Information
Patent Citations
Electric voltage disturbance detecting method and device
CN101424709A
Electric power signal zero crossing point detection method
CN103197129A
Relevant sinusoidal signal detection method and device
CN104655905A
Anti-interference zero-crossing detection circuit and detection method
CN109917177A
Voltage drop detection method and system, readable storage medium and computer equipment
CN109946505A
