CN112394225B - Phase angle detection device and method - Google Patents

Phase angle detection device and method Download PDF

Info

Publication number
CN112394225B
CN112394225B CN202011062723.6A CN202011062723A CN112394225B CN 112394225 B CN112394225 B CN 112394225B CN 202011062723 A CN202011062723 A CN 202011062723A CN 112394225 B CN112394225 B CN 112394225B
Authority
CN
China
Prior art keywords
phase
counter
phase line
phase angle
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011062723.6A
Other languages
Chinese (zh)
Other versions
CN112394225A (en
Inventor
汪建波
赵法强
陈加文
董晓乐
张达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Power Supply Bureau Co Ltd
Original Assignee
Shenzhen Power Supply Bureau Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Power Supply Bureau Co Ltd filed Critical Shenzhen Power Supply Bureau Co Ltd
Priority to CN202011062723.6A priority Critical patent/CN112394225B/en
Publication of CN112394225A publication Critical patent/CN112394225A/en
Application granted granted Critical
Publication of CN112394225B publication Critical patent/CN112394225B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R25/00Arrangements for measuring phase angle between a voltage and a current or between voltages or currents
    • G01R25/005Circuits for comparing several input signals and for indicating the result of this comparison, e.g. equal, different, greater, smaller, or for passing one of the input signals as output signal

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring Phase Differences (AREA)

Abstract

The application relates to a phase angle detection device and a method, wherein the phase angle detection device comprises a processing circuit and a comparison circuit, and the processing circuit comprises a counter; the input end of the comparison circuit is connected with the output end of at least one three-phase line loop, and the output end of the comparison circuit is connected with the processing circuit; the comparison circuit is used for comparing the voltage output by each phase line of the three-phase line loop with the voltage of the comparison circuit to obtain a trigger signal, and outputting the trigger information to the processing circuit; the processing circuit is used for acquiring the value of the counter according to the trigger signal and calculating the phase angle difference of each phase line according to the value of the counter. By adopting the device, the accurate phase angle difference of each phase line of the multi-loop three-phase line can be obtained, whether the phase angles are in phase or not is judged, and the damage to the power grid or the increase of reactive power loss caused by judgment errors is avoided.

Description

Phase angle detection device and method
Technical Field
The present disclosure relates to the field of multi-phase line circuits, and in particular, to a phase angle detection apparatus and method.
Background
As the demand of people for electricity is larger and larger, the power system is more and more used in life, and the construction scale of the power grid is also continuously enlarged. In an electric power system, it is often necessary to perform grid-connected power transmission or loop-connected power transmission, and the electric power phase is a state reflecting alternating current.
Currently, the common nuclear phase method adopted by the power department is to measure the voltage between the phase lines on two loops, if no voltage or a small voltage is present, the phase is judged to be in phase, otherwise, the phase is not in phase.
However, the result of whether the phase is in phase or not obtained by the phase checking method is inaccurate, which easily causes damage to the power grid after closing or increases reactive power loss.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a phase angle detection device and method capable of accurately measuring an ac phase angle.
A phase angle detection apparatus comprising a processing circuit and a comparison circuit, the processing circuit comprising a counter; the input end of the comparison circuit is connected with the output end of at least one three-phase line loop, and the output end of the comparison circuit is connected with the processing circuit;
the comparison circuit is used for comparing the voltage output by each phase line of the three-phase line loop with the voltage of the comparison circuit to obtain a trigger signal, and outputting the trigger information to the processing circuit;
the processing circuit is used for acquiring the value of the counter according to the trigger signal and calculating the phase angle difference of each phase line according to the value of the counter.
In one embodiment, the comparison circuit comprises a plurality of comparators and filters corresponding to the comparators; the input end of each comparator is connected with one phase line of the three-phase line loop, and the output end of each comparator is connected with the input end of the filter; the output end of each filter is connected with an external interrupt interface of the processing circuit;
the comparator is used for comparing the voltage output by the phase line with the voltage of the comparator to obtain a voltage difference signal;
the filter is used for filtering the negative voltage difference signal to obtain the trigger signal.
In one embodiment, the comparator is an operational amplifier and the filter is a diode.
In one embodiment, the trigger signal is a high level signal; the processing circuit is configured to obtain a value of the counter according to the trigger signal, and calculate a phase angle difference of each phase line according to the value of the counter, and includes:
when the processing circuit detects that the signal of the external interrupt interface is converted from low level to high level, the value of the counter is obtained, and the actual phase angle of the target phase line corresponding to the external interrupt interface is calculated according to the value of the counter; and calculating the phase angle difference of the target phase line according to the actual phase angle and the basic phase angle of the target phase line.
In one embodiment, the processor is further configured to determine whether the phase lines are in phase according to the phase angle difference of the phase lines and a preset angle difference threshold.
In one embodiment, the processing circuit is a single chip microcomputer, and the counter is a 16-bit precision timing counter.
A phase angle detection method applied to the phase angle detection apparatus described in the above embodiment, the method comprising:
comparing the voltage output by each phase line of the three-phase line loop with the voltage of the comparison circuit to obtain a trigger signal;
and acquiring a value of a counter according to the trigger signal, and calculating the phase angle difference of each phase line according to the value of the counter.
In one embodiment, the comparing the voltage output by each phase line of the three-phase line loop with the voltage of the comparing circuit to obtain the trigger signal includes:
comparing the voltage output by each phase line of the three-phase line loop with the voltage of the comparison circuit to obtain a voltage difference signal;
and filtering the negative voltage difference signal to obtain the trigger signal.
In one embodiment, the trigger signal is a high level signal; the step of obtaining the value of the counter according to the trigger signal and calculating the phase angle difference of each phase line according to the value of the counter comprises the following steps:
when detecting that the signal of the external interrupt interface is converted from low level to high level, acquiring the value of the counter;
calculating the actual phase angle of the target phase line corresponding to the external interrupt interface according to the value of the counter;
and calculating the phase angle difference of the target phase line according to the actual phase angle and the basic phase angle of the target phase line.
In one embodiment, the method further comprises:
and judging whether the phase lines are in phase or not according to the phase angle difference of the phase lines and a preset angle difference threshold value.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of the above-described phase angle detection method.
According to the phase angle detection device and the phase angle detection method, the comparison circuit is used for comparing the voltage output by each phase line of the three-phase line loop with the voltage of the comparison circuit, so that a trigger signal is obtained, the trigger signal is output to the processing circuit, the processing circuit obtains the value of the counter according to the trigger signal, and the phase angle difference of each phase line is calculated according to the value of the counter. In this embodiment, the phase angle detection device may obtain the phase angle difference of each phase line, so as to further accurately determine whether each phase line is in phase according to the phase angle difference of each phase line, and the obtained in-phase result is accurate, so that the problem that damage is caused to the power grid after closing due to an error in-phase result, or reactive power loss is increased can be avoided.
Drawings
FIG. 1 is a block diagram of a phase angle detection apparatus in one embodiment;
FIG. 2 is a block diagram of a phase angle detection device in one embodiment;
FIG. 3 is a block diagram of a phase angle detection device in one embodiment;
FIG. 4 is a three-phase waveform of a three-phase circuit in one embodiment;
FIG. 5 is a schematic diagram of a four-circuit three-phase line configuration in one embodiment;
FIG. 6 is a flow chart of a phase angle detection method according to an embodiment;
FIG. 7 is a flowchart of a method for obtaining a trigger signal according to another embodiment;
fig. 8 is a flow chart of a phase angle detection method in an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Fig. 1 is a block diagram of a phase angle detecting device according to an embodiment of the present application, and as shown in fig. 1, the phase angle detecting device includes a processing circuit 11 and a comparing circuit 12, where the processing circuit 11 includes a counter 111; the input end of the comparison circuit 12 is connected with the output end of at least one three-phase line loop, and the output end of the comparison circuit 12 is connected with the processing circuit 11;
a comparison circuit 12 for comparing the voltage output from each phase line of the three-phase line circuit with the voltage of the comparison circuit itself to obtain a trigger signal and outputting the trigger information to the processing circuit;
the processing circuit 11 is configured to obtain a value of the counter according to the trigger signal, and calculate a phase angle difference of each phase line according to the value of the counter.
In this embodiment, the comparison circuit 12 is configured to obtain voltages output by each phase line in the three-phase line loop connected thereto, compare the voltages output by each phase line with the voltage of the comparison circuit itself, obtain a trigger signal, and transmit the trigger signal to the processing circuit. One three-phase line loop is connected with one comparison circuit, that is, the phase angle detection device can comprise a plurality of comparison circuits, and different comparison circuits acquire voltages output by phase lines in different three-phase line loops. For example, the phase angle detecting device may include 4 comparison circuits 12, each of which is connected to one three-phase line loop, and the 4 comparison circuits 12 may transmit the generated trigger signal to the processing circuit, that is, the processing circuit may calculate the phase angle differences of the 4 three-phase line loops at the same time.
The trigger signal is a signal generated by the comparison circuit 12 according to the voltage output by each phase line and the voltage of the comparison circuit itself, for example, the comparison circuit 12 subtracts the voltage of the comparison circuit itself from the voltage output by each phase line to obtain a voltage difference, and generates a trigger signal according to the voltage difference, for example, if the voltage difference is positive, a high-level signal is generated, and if the voltage difference is negative, a low-level signal is generated; alternatively, the comparator 12 outputs the trigger signal when the voltage difference is positive, and does not output the trigger signal when the voltage difference is negative.
Alternatively, the comparison circuit 12 may be implemented by an operational amplifier, or may be implemented by a voltage comparator, which is not limited in the embodiment of the present application.
In the present embodiment, the processing circuit 11 is configured to obtain a value of a counter according to the trigger signal, and calculate a phase angle difference of each phase line according to the value of the counter. When the processing circuit 11 is started, the counter starts to count at a preset frequency, and when the processing circuit 11 acquires the trigger signal, the counter is controlled to stop counting, the value of the counter is acquired, the counter is set to 0, and the counter starts to count again. The processing circuit can calculate the phase angle difference of the corresponding phase line according to the value of the counter.
Alternatively, the processing circuit 11 may be implemented by a single chip, or may be implemented by an FPGA chip or a DSP chip, which is not limited in the embodiment of the present application.
The phase angle detection device provided by the embodiment of the application comprises a processing circuit 11 and a comparison circuit 12, wherein the comparison circuit 12 compares the voltage output by each phase line of a three-phase line loop with the voltage of the comparison circuit, a trigger signal is obtained, the trigger signal is output to the processing circuit, the processing circuit obtains the value of a counter according to the trigger signal, and the phase angle difference of each phase line is calculated according to the value of the counter. In this embodiment, the phase angle detection device may obtain the phase angle difference of each phase line, so as to further accurately determine whether each phase line is in phase according to the phase angle difference of each phase line, and the obtained in-phase result is accurate, so that the problem that damage is caused to the power grid after closing due to an error in-phase result, or reactive power loss is increased can be avoided.
Fig. 2 is a block diagram of a phase angle detecting device according to an embodiment of the present application, in this embodiment, the comparing circuit 12 needs to compare the voltage output by each phase line of the three-phase line loop with the voltage of the comparing circuit itself to obtain a trigger signal, and as shown in fig. 2, the comparing circuit 12 includes a plurality of comparators 121 and filters 122 corresponding to the comparators; the input end of each comparator is connected with one phase line of the three-phase line loop, and the output end of each comparator is connected with the input end of the filter; the output end of each filter is connected with an external interrupt interface of the processing circuit 11;
the comparator 121 is configured to compare the voltage output by the phase line with the voltage of the comparator itself, so as to obtain a voltage difference signal;
the filter 122 is configured to filter the negative voltage difference signal to obtain a trigger signal.
Optionally, comparator 121 is an operational amplifier and filter 122 is a diode.
In this embodiment, the comparator 121 is configured to obtain the voltage output by each phase line in the three-phase line loop connected thereto, compare the voltage output by each phase line with the voltage of the comparison circuit itself, obtain a voltage difference signal, and transmit the signal to the filter. For example, when the voltage of the comparator connected to the a-phase line of the three-phase line circuit is 3V and the voltage output from the a-phase line is 3.5V, the comparator 121 subtracts the voltage 3V of the comparator from the voltage 3.5V output from the a-phase line, and the voltage difference signal is a forward voltage difference signal when the voltage difference is 0.5V; if the voltage of the comparator connected to the a-phase line of the three-phase line loop is 3V and the voltage output by the a-phase line is 2.5V, the comparator 121 subtracts the voltage of the comparator from the voltage output by the a-phase line by 3V and the voltage difference is-0.5V, and the voltage difference signal is a negative voltage difference signal. One comparator is connected to one phase line in the three-phase line loop, that is, one output end of the three-phase line loop is correspondingly connected to three comparators, and one comparison circuit 12 may include three comparators.
In this embodiment, the filter 122 is configured to filter out the negative voltage difference signal to obtain the trigger signal. Wherein a filter receives the voltage signal from a comparator, filters it, and transmits it to the processing circuit 11. For example, if the voltage difference is 0.5V, the voltage difference signal is a forward voltage difference signal, which the filter 122 delivers to the processing circuit; if the voltage difference is-0.5V, the voltage difference signal is a negative voltage difference signal, and the filter 122 intercepts the negative voltage difference signal, i.e., is not passed to the processing circuitry. The voltage output by a three-phase line loop needs 3 filters to be filtered, different filters respectively receive the voltage difference signals transmitted by the comparators connected with the filters, filter negative voltage difference signals to obtain trigger signals, and transmit the trigger signals to the processing circuit 11, that is, a comparison circuit 12 may include 3 filters.
The phase angle detection device provided by the embodiment of the application comprises a comparison circuit and a filter, wherein the comparison circuit comprises a comparator and a filter, and the comparator compares the voltage output by a phase line with the voltage of the comparator to obtain a voltage difference signal; the filter 122 filters the negative voltage difference signal to obtain a trigger signal. The trigger information is obtained by adopting the comparator and the filter, the circuit design and the connection mode are simple and feasible, the cost is low, the voltage output by the phase lines can be rapidly compared with the voltage of the comparator through the comparator, negative voltage difference signals are filtered through the filter, an effective trigger signal is obtained, and the processing circuit can rapidly and effectively judge whether the phase lines are in phase or not, so that a reliable in-phase result is obtained.
FIG. 3 is a block diagram of a phase angle detection device according to one embodiment of the present application, and as shown in FIG. 3, the phase angle detection device includes 4 comparison circuits, each of which includes 3 comparators 121 and 3 filters 122, an input terminal of each comparator is connected to one phase line of a three-phase line loop, and an output terminal of each comparator is connected to an input terminal of each filter; the output of each filter is connected to an external interrupt interface of the processing circuit 11.
In this embodiment, the comparison circuit 12 may compare the voltage output by each phase line in the three-phase line loop with the voltage of the comparison circuit itself to obtain a voltage difference signal, and transmit the voltage difference signal to the filter, the filter filters the negative voltage difference signal, and transmits the filtered signal to the processing circuit, the processing circuit 11 obtains the value of the counter according to the trigger signal, and calculates the phase angle difference of each phase line according to the value of the counter, so as to further accurately determine whether each phase line is in phase according to the phase angle difference of each phase line, and the obtained in-phase result is accurate, so that the problem that damage to the power grid after closing due to error in-phase result is avoided, or reactive loss is increased.
1-3, the trigger signal is a high signal; the processing circuit 11, configured to obtain a value of the counter 111 according to the trigger signal, and calculate a phase angle difference of each phase line according to the value of the counter, includes:
when the processing circuit 11 detects that the signal of the external interrupt interface is converted from low level to high level, the value of the counter is obtained, and the actual phase angle of the target phase line corresponding to the external interrupt interface is calculated according to the value of the counter; and calculating the phase angle difference of the target phase line according to the actual phase angle and the basic phase angle of the target phase line.
In this embodiment, the processing circuit 11 includes the counter 111, which can be preset to be 3600 times of the ac frequency, that is, 180000 times per second, so that the number of values of the counter 3600 is 10 times of one phase angle 360 degrees, and the detected phase angle can be accurate to 0.1 degrees, so that the accuracy of the phase angle detecting device is very high. When no signal is input to the external interrupt interface of the processing circuit, the signal is defaulted to be a low level signal, the processing circuit obtains a trigger signal converted from low level to high level through the external interrupt interface, the value of the counter is moved backwards along with time and accumulated, as shown in fig. 4, at the 0 position of the three-phase waveform diagram of the three-phase line loop, t0 is marked, the waveform of the phase A is changed from the negative half cycle to the positive half cycle, the level has an ascending delay, the value of the counter is reset to 0 when the corresponding pin of the processing circuit generates interrupt, at the moment, the count value t0 of the timer is recorded, the line connected to the pin is set to be the phase A, then the other phase lines connected to the timer also generate interrupt successively, because the t0 line is set to be the phase A, the interrupt is the interrupt of the next cycle of the phase A, the value of the counter is reset to 0 after the value of the counter is recorded, and the count is repeated from 0. The ABC three phases as in fig. 4 each record the values ta, tb and tc of the timer counter at the time of interruption. The processing circuit calculates the actual phase angle of the target phase line corresponding to the external interrupt interface according to the value of the counter.
Specifically, the phase angle phase difference of the three phases of alternating current is 120 degrees, and the phase angle calculation method of the three phases of ABC is as follows relative to t 0: a= (ta-t 0)/10; b= (tb-t 0)/10; c= (tc-t 0)/10. And calculating the phase angle difference of the target phase line according to the actual phase angle and the basic phase angle of the target phase line. Specifically, as shown in fig. 5, each phase line of the four three-phase line circuits is represented as a phase line: ax (x is 1,2,3, 4), B phase: bx (x is 1,2,3, 4), C phase: cx (x is 1,2,3, 4). The phase angle difference of the three phases of alternating current is 120 degrees, but when the phase angle is calculated, the basic phase angles of the three phases are 0 (360) degrees of an A phase line, 120 degrees of a B phase line, 240 degrees of a C phase line, and the phase angle difference value is calculated by the following steps: ax= (ta-t 0)/10-360; bx= (tb-t 0)/10-120; cx= (tc-t 0)/10-240.
Optionally, the processing circuit is a single chip microcomputer, and the counter is a 16-bit precision timing counter. The embodiment adopts the singlechip and the 16-bit precision timing counter to realize the processing circuit, the circuit is simple to realize, the operation process is simple, and the precision of the operation result of the processing circuit is ensured because the counter is the 16-bit precision timing counter.
In this embodiment, when the processing circuit detects that the signal of the external interrupt interface is converted from low level to high level, the actual phase angle of the target phase line corresponding to the external interrupt interface is calculated according to the value of the counter; and the phase angle difference of the target phase line is calculated according to the actual phase angle and the basic phase angle of the target phase line, so that whether the phase lines are in phase or not is accurately judged according to the phase angle difference of the phase lines, an accurate in-phase result is obtained, and the problem that the power grid is damaged after closing or reactive power loss is increased due to error in-phase result can be avoided. And the processing circuit is triggered to acquire the value of the counter in a high-low level conversion mode, so that the method is simple and effective, the logic control is very simple, and the hardware cost and the software cost are low.
Further, the processing circuit is further configured to determine whether the phase lines are in phase according to the phase angle difference of the phase lines and a preset angle difference threshold.
In this embodiment, the processing circuit compares the phase angle difference of each phase line with a preset angle difference threshold value, and determines whether each phase line is in phase according to the comparison result. The angle difference threshold may be an empirical value or a value obtained by multiple practical measurements, for example, the angle difference threshold may be 8 degrees, 9 degrees, 10 degrees, 11 degrees, etc., and may be set according to the actual scenario, which is not limited in this embodiment.
Alternatively, the phase angle difference of each phase line and the preset angle difference are within 10 degrees, and it may be determined that the phases are in phase. For example, if the phase angle difference of the a phase line is 11 degrees and the angle difference threshold is 10, judging that the a phase line is out of phase; or, if the phase angle difference of the phase A line is 7 degrees and the angle difference threshold value is 10, judging that the phase A line is in phase.
In this embodiment, the processing circuit determines whether the phase lines are in phase according to the phase angle difference of the phase lines and a preset angle difference threshold value, and obtains an accurate in-phase result by determining whether the phase lines are in phase, so that the problem that damage is caused to the power grid after closing due to error in the synchronous in-phase result, or reactive power loss is increased can be avoided.
In one embodiment, as shown in fig. 6, a phase angle detection method is provided, and the phase angle detection device in fig. 1 or fig. 2 is taken as an example to illustrate the method, and the method includes the following steps:
step S601, comparing the voltage output by each phase line of the three-phase line circuit with the voltage of the comparison circuit to obtain a trigger signal.
In this embodiment, as in the device of any one of fig. 1 to 5, the phase angle detection device includes a processing circuit and a comparing circuit, where the comparing circuit may obtain the voltage output by each phase line, and compare the voltage output by each phase line with the voltage of the comparing circuit to obtain the trigger signal. For example, the comparison circuit calculates the difference between the voltage output by each phase line and the voltage of the comparison circuit, and generates a trigger signal according to the difference; or the comparison circuit calculates the difference between the voltage output by each phase line and the voltage of the comparison circuit, and the obtained forward difference signal is used as a trigger signal.
Step S602, the value of the counter is obtained according to the trigger signal, and the phase angle difference of each phase line is calculated according to the value of the counter.
In this embodiment, when the processing circuit detects an external interrupt interface trigger signal, the value of the counter is obtained, and the actual phase angle of the target phase line corresponding to the external interrupt interface is calculated according to the value of the counter; and calculating the phase angle difference of the target phase line according to the actual phase angle and the basic phase angle of the target phase line. For example, when the processing circuit is started, the counter starts to count at a preset frequency, when the processing circuit acquires the trigger signal, the counter is controlled to stop counting, the value of the counter is acquired, the counter is set to 0, and the counter starts to count again. The processing circuit can calculate the phase angle difference of the corresponding phase line according to the value of the counter, and then calculate the phase angle difference of the target phase line.
According to the phase angle detection method, the voltage output by each phase line of the three-phase line loop is compared with the voltage of the comparison circuit, so that a trigger signal is obtained, the value of the counter is obtained according to the trigger signal, and the phase angle difference of each phase line can be obtained through calculation according to the value of the counter. In this embodiment, the phase angle detection method may accurately obtain the phase angle difference value of each phase line, so as to further accurately determine whether each phase line is in phase according to the phase angle difference value of each phase line, obtain a reliable in-phase result, and avoid the problem that damage is caused to the power grid after closing or reactive power loss is increased due to error in-phase result.
In one embodiment, as shown in fig. 7, step S601 "comparing the voltage output by each phase line of the three-phase line loop with the voltage of the comparison circuit itself to obtain the trigger signal" may include the following steps:
step S701, comparing the voltage output by each phase line of the three-phase line circuit with the voltage of the comparison circuit to obtain a voltage difference signal.
In this embodiment, the output end of the three-phase circuit is connected to the comparison circuit, and is compared with the voltage of the comparison circuit itself to obtain a voltage difference signal, and the voltage difference signal is transmitted to the filter. For example, the comparison circuit includes a comparator and a filter, the a-phase line of the three-phase line is connected to the input end of the comparator, the voltage of the comparator is 3V, the output voltage of the a-phase line is 3.5V, the comparator 121 subtracts the 3V from the 3.5V of the voltage of the comparator, the voltage difference is 0.5V, the voltage difference signal is a forward voltage difference signal, and a high level signal is output; if the voltage of the comparator connected to the a phase line of the three-phase line loop is 3V and the voltage output by the a phase line is 2.5V, the comparator 121 subtracts the voltage of the comparator from the voltage output by the a phase line by 3V, and the voltage difference is-0.5V, and the voltage difference signal is a negative voltage difference signal, and a low level signal is output.
Step S702, filtering the negative voltage difference signal to obtain the trigger signal.
In this embodiment, the filter filters out the negative voltage difference signal, i.e. the low level signal, to obtain the trigger signal and transmits it to the processing circuit. For example, if the voltage difference is 1V, the voltage difference signal is a forward voltage difference signal, and the filter transmits the forward voltage difference signal to the processing circuit; if the voltage difference is-1V, i.e., the voltage difference signal is a negative voltage difference signal, the filter intercepts the negative voltage difference signal, i.e., is not passed to the processing circuit.
According to the embodiment of the application, the voltage difference signal is obtained by comparing the voltage output by each phase line of the three-phase line loop with the voltage of the comparison circuit, the negative voltage difference signal is filtered, and the trigger signal is obtained. In this embodiment, the method of comparing the output voltage of the three-phase line loop with the comparison circuit is simple and convenient, and can provide an accurate comparison result, and meanwhile, the filter accurately filters out the negative voltage, and then outputs the positive trigger signal to the processing circuit, and the processing circuit obtains the value of the counter according to the trigger signal, and calculates the phase angle difference of each phase line according to the value of the counter. Therefore, whether the phase lines are in phase or not is further accurately judged according to the phase angle difference of the phase lines, a reliable in-phase result is obtained, and the problem that the power grid is damaged after closing or reactive power loss is increased due to the fact that the in-phase result is wrong is avoided.
Fig. 8 is a flowchart of a phase angle detection method according to an embodiment, where the phase angle detection device calculates a phase angle difference of each phase line. As shown in fig. 5, step S602 may include the steps of:
step S801, when detecting that the signal of the external interrupt interface is shifted from low level to high level, acquires the value of the counter.
In one embodiment, the count value of the counter at this time is obtained when the external interrupt interface of the processing circuit receives a forward voltage that transitions from a low level to a high level. Specifically, the counter may be preset to be 3600 times the ac frequency, i.e., 180000 counts per second, and 3600 values are counted by the counter to be 10 times of 360 degrees of a phase angle. When the processor starts to operate, the value of the counter moves backwards along with time, the count is accumulated, as shown in a three-phase waveform diagram of the three-phase line loop in fig. 4, the three-phase line loop is marked as t0 at the 0-bit position, at this time, the waveform of the A phase line of the three-phase line loop is changed from the negative half cycle to the positive half cycle, namely, the input signal is converted into the high level at the low level, and then an interrupt is generated at the corresponding pin of the processor. When the first interrupt of each synchronization is generated, the value of the counter is reset to 0, the count value t0 of the timer is recorded, the line connected to the pin is designated as an A phase line, then other connected phase lines also generate interrupts successively, because the t0 line is designated as the A phase line, the ta interrupt is the interrupt of the next period of the A phase line, the counter is reset to 0 after the value is recorded, and the counting is started from 0 repeatedly. The ABC three phase lines as in fig. 4 each record the counter values ta, tb and tc at the time of the interrupt.
And step S802, calculating the actual phase angle of the target phase line corresponding to the external interrupt interface according to the value of the counter.
In one embodiment, the angle calculation is performed based on a counter that obtains a count of each phase in the three-phase circuit when the trigger is interrupted. Specifically, for the a phase in the three-phase loop, when the first interruption occurs, the count value recorded by the counter is denoted as t0, then the count value when the next period occurs and the interruption occurs, then other connected phase lines also generate the interruption, the count value when the B phase generates the interruption is denoted as tb, the count value when the C phase generates the interruption is denoted as tc, and then the phase angle calculation method of the ABC three phases in the three-phase loop is as follows: a= (ta-t 0)/10; b= (tb-t 0)/10; c= (tc-t 0)/10.
Step S803, calculating a phase angle difference of the target phase line according to the actual phase angle and the base phase angle of the target phase line.
In one embodiment, as shown in fig. 5 for four-loop three-phase lines, ax (x is 1,2,3, 4), bx (x is 1,2,3, 4), and Cx (x is 1,2,3, 4) are each one of the phase lines of the four-loop three-phase circuit. The phase angles between the three phases of the three-phase circuit of the alternating current differ by 120 degrees, but when calculating the phase angle, the phase angles of the three basic phase angles corresponding to the three-phase circuit are 0 (360) degrees for the a phase line, 120 degrees for the B phase line, and 240 degrees for the C phase line, and the phase angle difference of the target phase line is calculated according to the actual phase angle and the basic phase angle of the target phase line. Specifically, the phase angle difference value calculating method comprises the following steps: ax= (ta-t 0)/10-360; bx= (tb-t 0)/10-120; cx= (tc-t 0)/10-240.
In this embodiment, the specific implementation manner of calculating the phase angle difference of each phase line by the phase angle detection device is as follows: when the processing circuit detects that the signal of the external interrupt interface is converted from low level to high level, calculating the actual phase angle of the target phase line corresponding to the external interrupt interface according to the value of the counter; and calculating the phase angle difference of the target phase line according to the actual phase angle and the basic phase angle of the target phase line. The method has the advantages that the processing circuit is triggered to acquire the value of the counter in a high-low level conversion mode, the method is simple and effective, the logic control is very simple, in addition, when the corresponding angles and angle differences of all phase lines of the three-phase line loop are calculated, the calculation mode is simple, the calculation result is accurate, the accuracy is high, a more reliable basis can be provided for judging whether all phase lines in the three-phase line loop are in phase, and the problem that the power grid is damaged after closing due to the error of the in-phase result or reactive power loss is increased is avoided.
Further, the method may further include: and judging whether the phase lines are in phase or not according to the phase angle difference of the phase lines and a preset angle difference threshold value.
In this embodiment, the processing circuit compares the phase angle difference of each phase line with a preset angle difference threshold value, and determines whether each phase line is in phase according to the comparison result. The angle difference threshold may be an empirical value or a value obtained by multiple practical measurements, for example, the angle difference threshold may be 8 degrees, 9 degrees, 10 degrees, 11 degrees, etc., and may be set according to the actual scenario, which is not limited in this embodiment.
Alternatively, the phase angle difference of each phase line and the preset angle difference are within 10 degrees, and it may be determined that the phases are in phase. For example, if the phase angle difference of the a phase line is 11 degrees and the angle difference threshold is 10, judging that the a phase line is out of phase; or, if the phase angle difference of the phase A line is 7 degrees and the angle difference threshold value is 10, judging that the phase A line is in phase.
In this embodiment, the processing circuit determines whether the phase lines are in phase according to the phase angle difference of the phase lines and a preset angle difference threshold value, and obtains an accurate in-phase result by determining whether the phase lines are in phase, so that the problem that damage is caused to the power grid after closing due to error in-phase results or reactive power loss is increased can be avoided.
It should be understood that, although the steps in the flowcharts of fig. 6-8 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 6-8 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
For a specific limitation of the phase angle detection device, reference may be made to the limitation of a phase angle detection method described above, and the description thereof will not be repeated here. Each of the modules in the above-described phase angle detection apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (11)

1. A phase angle detection device, characterized in that the phase angle detection device comprises a processing circuit and a comparison circuit, the processing circuit comprising a counter; the input end of the comparison circuit is connected with the output end of at least one three-phase line loop, and the output end of the comparison circuit is connected with the processing circuit; the comparison circuits are multiple, and different comparison circuits acquire voltages output by phase lines in different three-phase line loops; wherein a three-phase loop is connected to a said comparator circuit; one comparator in the comparison circuit is connected with one phase line in the three-phase line loop;
the comparison circuit is used for comparing the voltage output by each phase line of the three-phase line loop with the voltage of the comparison circuit to obtain a trigger signal, and outputting the trigger signal to the processing circuit; the trigger signal is a high level signal;
the processing circuit is used for acquiring the value of the counter according to the trigger signal and calculating the phase angle difference of each phase line according to the value of the counter; comprising the following steps: when the processing circuit detects that the signal of the external interrupt interface is converted from low level to high level, the value of the counter is obtained, and the actual phase angle of the target phase line corresponding to the external interrupt interface is calculated according to the value of the counter; and calculating the phase angle difference of the target phase line according to the actual phase angle and the basic phase angle of the target phase line.
2. The phase angle detection apparatus according to claim 1, wherein the comparison circuit includes a plurality of comparators and filters corresponding to the comparators; the input end of each comparator is connected with one phase line of the three-phase line loop, and the output end of each comparator is connected with the input end of the filter; the output end of each filter is connected with an external interrupt interface of the processing circuit;
the comparator is used for comparing the voltage output by the phase line with the voltage of the comparator to obtain a voltage difference signal;
the filter is used for filtering the negative voltage difference signal to obtain the trigger signal.
3. The phase angle detection apparatus according to claim 2, wherein the comparator is an operational amplifier, and the filter is a diode.
4. The phase angle detection apparatus according to claim 1, wherein the counter starts counting at a preset frequency at the time of the start of the processing circuit; the processing circuit is specifically configured to: when the trigger signal is acquired, controlling the counter to stop counting, and acquiring the value of the counter; and after the value of the counter is acquired, setting the counter to zero so that the counter restarts counting.
5. A phase angle detection apparatus according to any one of claims 1 to 3, wherein said processing circuit is further configured to determine whether or not the phase lines are in phase based on a phase angle difference of the phase lines and a preset angle difference threshold.
6. A phase angle detection apparatus according to any one of claims 1 to 3, wherein the processing circuit is a single chip microcomputer and the counter is a 16-bit precision timing counter.
7. A phase angle detection method, characterized in that the method is applied to the phase angle detection apparatus according to any one of claims 1 to 6, the method comprising:
comparing the voltage output by each phase line of the three-phase line loop with the voltage of the comparison circuit to obtain a trigger signal; the trigger signal is a high level signal;
acquiring a value of a counter according to the trigger signal, and calculating a phase angle difference of each phase line according to the value of the counter; comprising the following steps: when detecting that the signal of the external interrupt interface is converted from low level to high level, acquiring the value of the counter; calculating the actual phase angle of the target phase line corresponding to the external interrupt interface according to the value of the counter; and calculating the phase angle difference of the target phase line according to the actual phase angle and the basic phase angle of the target phase line.
8. The method of claim 7, wherein comparing the voltage output by each phase of the three-phase circuit with the voltage of the comparison circuit itself to obtain the trigger signal comprises:
comparing the voltage output by each phase line of the three-phase line loop with the voltage of the comparison circuit to obtain a voltage difference signal;
and filtering the negative voltage difference signal to obtain the trigger signal.
9. The method of claim 7, wherein the method further comprises:
when the processing circuit is started, the counter starts to count at a preset frequency;
when the trigger signal is acquired, controlling the counter to stop counting, and acquiring the value of the counter;
after the value of the counter is acquired, the counter is set to zero so that the counter restarts counting.
10. The method according to claim 7 or 8, characterized in that the method further comprises:
and judging whether the phase lines are in phase or not according to the phase angle difference of the phase lines and a preset angle difference threshold value.
11. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 7 to 10.
CN202011062723.6A 2020-09-30 2020-09-30 Phase angle detection device and method Active CN112394225B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011062723.6A CN112394225B (en) 2020-09-30 2020-09-30 Phase angle detection device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011062723.6A CN112394225B (en) 2020-09-30 2020-09-30 Phase angle detection device and method

Publications (2)

Publication Number Publication Date
CN112394225A CN112394225A (en) 2021-02-23
CN112394225B true CN112394225B (en) 2024-01-30

Family

ID=74595864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011062723.6A Active CN112394225B (en) 2020-09-30 2020-09-30 Phase angle detection device and method

Country Status (1)

Country Link
CN (1) CN112394225B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005151673A (en) * 2003-11-14 2005-06-09 Shinko Electric Co Ltd Method for detecting phase difference at synchronous turn-on in synchronous generator
CN1766662A (en) * 2005-09-20 2006-05-03 广州擎天实业有限公司 Phase sequence judging circuit for triphase AC power supply
CN1859007A (en) * 2006-03-27 2006-11-08 华为技术有限公司 Clock phase detecting device and method
CN104155521A (en) * 2013-05-15 2014-11-19 国家电网公司 Method and apparatus for determining phase difference
CN204556728U (en) * 2015-03-24 2015-08-12 威海海泰电子有限公司 A kind of power panel three-phase ac signal phase detection device
CN105467214A (en) * 2015-11-20 2016-04-06 珠海格力节能环保制冷技术研究中心有限公司 Voltage phase acquisition method and apparatus thereof
CN207730841U (en) * 2017-07-17 2018-08-14 国网江西省电力公司电力科学研究院 A kind of nuclear phase equipment of power circuit
CN207835067U (en) * 2017-12-21 2018-09-07 意鲁斯电气(北京)有限公司 A kind of reactive power compensation control system
CN111157807A (en) * 2020-01-07 2020-05-15 国网河南省电力公司鹤壁供电公司 Phase difference type high-voltage switch cabinet secondary nuclear phase tester

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005151673A (en) * 2003-11-14 2005-06-09 Shinko Electric Co Ltd Method for detecting phase difference at synchronous turn-on in synchronous generator
CN1766662A (en) * 2005-09-20 2006-05-03 广州擎天实业有限公司 Phase sequence judging circuit for triphase AC power supply
CN1859007A (en) * 2006-03-27 2006-11-08 华为技术有限公司 Clock phase detecting device and method
CN104155521A (en) * 2013-05-15 2014-11-19 国家电网公司 Method and apparatus for determining phase difference
CN204556728U (en) * 2015-03-24 2015-08-12 威海海泰电子有限公司 A kind of power panel three-phase ac signal phase detection device
CN105467214A (en) * 2015-11-20 2016-04-06 珠海格力节能环保制冷技术研究中心有限公司 Voltage phase acquisition method and apparatus thereof
CN207730841U (en) * 2017-07-17 2018-08-14 国网江西省电力公司电力科学研究院 A kind of nuclear phase equipment of power circuit
CN207835067U (en) * 2017-12-21 2018-09-07 意鲁斯电气(北京)有限公司 A kind of reactive power compensation control system
CN111157807A (en) * 2020-01-07 2020-05-15 国网河南省电力公司鹤壁供电公司 Phase difference type high-voltage switch cabinet secondary nuclear phase tester

Also Published As

Publication number Publication date
CN112394225A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
US8519745B2 (en) Methods and systems for detection of zero crossings in a signal
TWI568125B (en) Supplying-end module of induction type power supply system and voltage measurement method thereof
CN106569032B (en) A kind of detection method of signal frequency and duty ratio based on embedded microcontroller
CN104360144A (en) Method for determining zero crossing point of alternating current signal and system for determining zero crossing point of alternating current signal
CN103412200A (en) Three-phase alternating current phase sequence detection method and device
CN112394225B (en) Phase angle detection device and method
CN111756593B (en) Self-testing method and testing method for synchronization precision of time synchronization system
CN104237657B (en) Default phase inputting detecting method for three-phase inputting equipment
CN110208596B (en) Load current monitoring circuit and method
CN109085414B (en) Voltage detection method and device
KR20230008212A (en) Phase detection method and apparatus and device thereof
CN112098708B (en) Line voltage information detection circuit and detection method for secondary side PD controller
CN103647552A (en) Clock frequency detection circuit
CN104160385A (en) Input capture peripheral with gating logic
CN110784130B (en) Apparatus and method for rectifying resolver output signal
JP2008286561A (en) Noise removal circuit and its noise removal method
CN114355236A (en) Detection method and device for rectification inverter circuit and uninterruptible power supply
JP2008286673A (en) Power failure detection circuit, power failure detection method, and power supply system
CN104977479B (en) Three-phase electricity condition detection apparatus, method and electric system
JPH10117484A (en) Ac uninterruptive power circuit normally supplied with commercial power
CN102914703B (en) Phase sequence rapid measuring method based on instantaneous point
JP5077815B2 (en) Pulse input device
US9013172B2 (en) Apparatus and method for detecting frequency
CN113514711A (en) Phase sequence detection device and phase sequence detection method
CN103817404A (en) Manual electric arc welder three-phase electricity phase loss detection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant