CN103217572A - Device and method for detecting voltage and zero crossing point of alternating current - Google Patents
Device and method for detecting voltage and zero crossing point of alternating current Download PDFInfo
- Publication number
- CN103217572A CN103217572A CN2013101177521A CN201310117752A CN103217572A CN 103217572 A CN103217572 A CN 103217572A CN 2013101177521 A CN2013101177521 A CN 2013101177521A CN 201310117752 A CN201310117752 A CN 201310117752A CN 103217572 A CN103217572 A CN 103217572A
- Authority
- CN
- China
- Prior art keywords
- wave
- voltage
- alternating current
- zero crossing
- input
- 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.)
- Granted
Links
Images
Abstract
The invention discloses a device and a method for detecting voltage and a zero crossing point of alternating current. The method for detecting the voltage and the zero crossing point of the alternating current comprises the steps of monitoring a voltage signal of input alternating current in real time and obtaining the period of the input alternating current; regularly detecting the zero crossing point that the input alternating current is changed from a positive half wave to a negative half wave or from a negative half wave to a positive half wave according to the period; overlapping a high level onto the negative half wave of the alternating current within a predetermined period during the change of the alternating current from the positive half wave to the negative half wave; overlapping a low level onto the positive half wave of the alternating current within a predetermined period during the change of the alternating current from the negative half wave to the positive half wave; carrying out AD (Analog-to- Dialog) sampling on the alternating current voltage overlapped with the level; and calculating a voltage value according to the sampled alternating current voltage. The device and the method for detecting the voltage and the zero crossing point of the alternating current not only can realize simultaneous precise detection on the zero crossing point and the voltage of the alternating current, but also has the advantages of simple design, low cost and the like.
Description
Technical field
The present invention relates to the voltage detecting technical field, relate in particular to a kind of alternating current voltage and zero crossing pick-up unit and method.
Background technology
In household electrical appliances and industrial control system,, often need to detect the voltage and the zero point of AC power for realizing accurate control.And in traditional testing circuit, detect voltage generally by " dividing potential drop-rectification-filtering-A/D conversion " several steps; It is general by AC power " pressure limiting/current limliting-shaping-detection waveform edge " is realized to detect zero point.There is following shortcoming in traditional circuit:
The voltage detecting real-time is poor.
Need independently circuit unit of two of voltage detecting and zero passage detection, the circuit complexity.
Summary of the invention
Fundamental purpose of the present invention provides a kind of alternating current voltage and zero crossing pick-up unit and method, detects zero crossing when being intended to realize accurately detect alternating current voltage, and improves the voltage detecting real-time.
In order to achieve the above object, the present invention proposes a kind of alternating current voltage and zero crossing pick-up unit thereof, and described alternating current voltage and zero crossing pick-up unit thereof comprise first detecting module, second detecting module, control module, sampling module and processing module; Wherein,
First detecting module, the cycle that is used for monitoring the voltage signal of input AC electricity in real time and obtains the input AC electricity;
Second detecting module is used for regularly detecting the input AC electricity according to the cycle and becomes the zero crossing that negative half-wave or negative half-wave become positive half-wave by positive half-wave;
Control module is used for when described alternating current is become negative half-wave by positive half-wave, in the default time period to high level of negative half-wave stack of alternating current; When described alternating current becomes positive half-wave by negative half-wave, in the default time period to low level of positive half-wave stack of alternating current;
Sampling module is used for the alternating voltage behind the stack level is carried out the AD sampling;
Processing module, the alternating voltage that is used for sampling according to AD are carried out magnitude of voltage and are calculated.
Preferably, also comprise: first power supply, first resistance, second resistance, first diode, second diode and first electric capacity; One end of described first resistance is connected with tested voltage end, is used to import tested alternating voltage, and the other end is connected with the input end of sampling module and is connected with the test side of first detecting module; One end of described second resistance is connected with the connected node of first resistance and sampling module, and the other end is connected with the control end of control module; The negative electrode of described first diode is connected with first power supply, and anode is connected with the connected node of first resistance and sampling module; The negative electrode of described second diode is connected plus earth with the anode of first diode; One end of described first electric capacity is connected other end ground connection with the connected node of first diode with second diode.
Preferably, described sampling module specifically comprises:
Sampling unit is used for the alternating voltage behind the stack level is carried out analog sampling;
Analog to digital converter, the analog voltage signal that is used for sampling is converted to digital voltage signal.
Preferably, described processing module specifically comprises:
Processing unit, the alternating voltage that is used for sampling input to the voltage computing formula that sets in advance and carry out magnitude of voltage calculating.
The present invention also proposes a kind of alternating current voltage and zero crossing detection method thereof, said method comprising the steps of:
Monitor the voltage signal of input AC electricity and the cycle of obtaining the input AC electricity in real time;
Regularly detect the input AC electricity according to the cycle and become the zero crossing that negative half-wave or negative half-wave become positive half-wave by positive half-wave;
When described alternating current is become negative half-wave by positive half-wave, in the default time period to high level of negative half-wave stack of alternating current; When described alternating current becomes positive half-wave by negative half-wave, in the default time period to low level of positive half-wave stack of alternating current;
Alternating voltage behind the stack level is carried out the AD sampling;
Carrying out magnitude of voltage according to the alternating voltage that samples calculates.
Preferably, describedly regularly detect the input AC electricity according to the cycle and become the zero crossing that negative half-wave or negative half-wave become positive half-wave by positive half-wave and specifically comprise:
Described input AC electricity is carried out clamper, convert high-low level to;
Regularly detect the rising edge and the negative edge of the level after the clamper according to the described cycle; To be the input AC electricity become the zero crossing of positive half-wave by negative half-wave to described rising edge, and described negative edge is for exchanging the input electricity is become negative half-wave by positive half-wave zero crossing.
Preferably, describedly the alternating voltage of stack behind the level carried out the AD sampling specifically comprise:
Alternating voltage behind the stack level is carried out analog sampling;
The analog voltage signal that samples is converted to digital voltage signal.
Preferably, the alternating voltage that samples of described basis carries out magnitude of voltage and calculates and specifically comprise:
The alternating voltage that samples inputed to carry out magnitude of voltage in the voltage computing formula that sets in advance and calculate.
The present invention is by the voltage signal of real-time monitoring input AC and the cycle of obtaining the input AC electricity; Regularly detect the input AC electricity according to the cycle and become the zero crossing that negative half-wave or negative half-wave become positive half-wave by positive half-wave; When described alternating current is become negative half-wave by positive half-wave, in the default time period to high level of negative half-wave stack of alternating current; When described alternating current becomes positive half-wave by negative half-wave, in the default time period to low level of positive half-wave stack of alternating current; Alternating voltage behind the stack level is carried out the AD sampling; Carrying out magnitude of voltage according to the alternating voltage that samples calculates.Detect zero crossing when the present invention can realize accurately detecting alternating current voltage, and improved the real-time of voltage detecting.
Description of drawings
Fig. 1 is the structured flowchart of alternating current voltage of the present invention and zero crossing pick-up unit one embodiment thereof;
Fig. 2 is the electrical block diagram of alternating current voltage of the present invention and another embodiment of zero crossing pick-up unit thereof;
Fig. 3 is the structured flowchart of sampling module among Fig. 1 and Fig. 2;
Fig. 4 is the structured flowchart of processing module among Fig. 1 and Fig. 2;
Fig. 5 is the frequency detecting oscillogram that alternating current voltage of the present invention and zero crossing pick-up unit one embodiment thereof realize;
Fig. 6 be the voltage realized of alternating current voltage of the present invention and zero crossing pick-up unit one embodiment thereof and zero point oscillogram;
Fig. 7 is the schematic flow sheet of alternating current voltage of the present invention and zero crossing detection method one embodiment thereof;
Fig. 8 is the schematic flow sheet of alternating current voltage of the present invention and another embodiment of zero crossing detection method thereof.
The realization of the object of the invention, functional characteristics and advantage will be in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Further specify technical scheme of the present invention below in conjunction with Figure of description and specific embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
With reference to Fig. 1, Fig. 2, Fig. 3 and Fig. 4.Fig. 1 is the structured flowchart of alternating current voltage of the present invention and zero crossing pick-up unit one embodiment thereof; Fig. 2 is the electrical block diagram of alternating current voltage of the present invention and another embodiment of zero crossing pick-up unit thereof; Fig. 3 is the structured flowchart of sampling module among Fig. 1 and Fig. 2; Fig. 4 is the structured flowchart of processing module among Fig. 1 and Fig. 2; As Fig. 1, Fig. 2, Fig. 3 and shown in Figure 4, the present invention proposes a kind of alternating current voltage and zero crossing pick-up unit thereof, and described alternating current voltage and zero crossing pick-up unit thereof comprise first detecting module 10, second detecting module 20, control module 30, sampling module 40 and processing module 50; Wherein,
Second detecting module 20 is used for regularly detecting the input AC electricity according to the cycle and becomes the zero crossing that negative half-wave or negative half-wave become positive half-wave by positive half-wave;
In the present embodiment, the zero crossing that reasonable time is regularly detected alternating current is set according to the detected cycle, this zero crossing comprises the zero crossing when becoming negative half-wave by positive half-wave, and the zero crossing when becoming positive half-wave by negative half-wave.Particularly, at first the input AC electricity is carried out clamper, make it to be converted to level signal.When the input AC electricity is positive half-wave, obtain high level signal after the clamper; When the input AC electricity is when bearing half-wave, to obtain low level signal after the clamper.The time of the level state that detecting input AC electricity forms after clamper was set according to the cycle, when detecting the level of input AC electricity after clamper when negative edge (becoming low level) occurring, then judge to become the zero crossing of negative half-wave this moment by positive half-wave for the input AC electricity by high level; When detecting the level of input AC electricity after clamper when rising edge (becoming high level) occurring, then judge to become the zero crossing of positive half-wave this moment by negative half-wave for the input AC electricity by low level.
In the present embodiment, when negative edge appears in the level of input AC electricity after clamper, in the default time period to high level of negative half-wave stack of alternating current, when rising edge appears in the level of input AC electricity after clamper, in the default time period to low level of positive half-wave stack of alternating current, like this for preparing to effective voltage by real-time sampling.Wherein, the default time period is traditionally arranged to be the time less than half ac period, preventing that alternating current is applied high level or alternating current by negative half-wave and is applied low level by positive half-wave when negative half-wave changes when positive half-wave changes always always, thereby influence the detection of crossover point signal; When preset time finishes, remove the high-low level of stack, the waveform that makes positive half-wave or negative half-wave be applied high-low level recovers, and when detecting the level of input AC electricity after clamper when the triggering of negative edge or rising edge occurring, zero crossing when obtaining negative edge or rising edge and triggering, thus realized accurate detection to zero crossing.
Should be noted that when detecting crossover point signal and be in negative edge the voltage when being in negative half-wave is unfavorable for sampling for negative,, enable to detect the voltage of alternating current when being in negative half-wave by high level of negative half-wave stack to alternating current; When detecting crossover point signal and be in rising edge, too high for preventing level, be unfavorable for sampling, so by low level of positive half-wave stack of alternating current being dragged down the current potential of positive half-wave, enable to detect alternating current the voltage when being in positive half-wave.
In the present embodiment, input to by the voltage data that AD is sampled and to carry out magnitude of voltage in the voltage computing formula that sets in advance and calculate, thereby obtain the voltage of tested input AC electricity.
Apparatus of the present invention are monitored the voltage signal of input AC and the cycle of obtaining the input AC electricity in real time by first detecting module 10; Second detecting module 20 is regularly detected the input AC electricity according to the cycle and is become the zero crossing that negative half-wave or negative half-wave become positive half-wave by positive half-wave; When control module 30 is become negative half-wave when alternating current by positive half-wave, in the default time period to high level of negative half-wave stack of alternating current; When alternating current becomes positive half-wave by negative half-wave, in the default time period to low level of positive half-wave stack of alternating current; Alternating voltage behind 40 pairs of stacks of sampling module level carries out the AD sampling, and processing module 50 is carried out magnitude of voltage calculating according to the alternating voltage that samples then.Thereby realized when detecting the positive and negative half-wave voltage of alternating current in real time, having realized the accurate detection of zero crossing.
Above-mentionedly also comprise: the first power supply VCC1, first resistance R 1, second resistance R 2, the first diode D1, the second diode D2 and first capacitor C 1; One end of described first resistance R 1 is connected with monitored voltage input end 200, is used to import tested alternating voltage, and the other end is connected with the input end of sampling module 30 and is connected with the test side I/O2 of first detecting module 20; One end of described second resistance R 2 is connected with the connected node of first resistance R 1 and sampling module 30, and the other end is connected with the control end I/O1 of control module 20; The negative electrode of the described first diode D1 is connected with the first power supply VCC1, and anode is connected with the connected node of first resistance R 1 and sampling module 30; The negative electrode of the described second diode D2 is connected plus earth with the anode of the first diode D1; One end of described first capacitor C 1 is connected other end ground connection with the connected node of the first diode D1 and the second diode D2.In the present embodiment, first resistance R 1 and second resistance R 2 are used for the alternating voltage of input is carried out dividing potential drop, be preferably adjustable resistance, the first diode D1 and the second diode D2 form clamping circuit the alternating voltage that inputs to C and order are carried out clamper, make it to be converted to level signal.When the input AC electricity was positive half-wave, the C point was a high level signal after the clamper; When the input AC electricity is that the C point is a low level signal after the clamper when bearing half-wave.First capacitor C 1 is used for the sampled voltage signal is carried out filtering.
Above-mentioned sampling module 40 specifically comprises:
Analog to digital converter 402, the analog voltage signal that is used for sampling is converted to digital voltage signal.
In the present embodiment, at first the alternating voltage behind the stack level is carried out the analog voltage signal sampling, then the analog voltage signal that samples is carried out analog to digital conversion, convert the digital voltage signal that needs to, again the voltage data that obtains is inputed to and carry out magnitude of voltage calculating in the voltage computing formula that sets in advance, finally obtain the virtual voltage of tested input AC electricity.
Above-mentioned processing module 50 specifically comprises:
In the lump with reference to Fig. 1, Fig. 2, Fig. 3, Fig. 4, Fig. 5 and Fig. 6.Fig. 1 is the structured flowchart of alternating current voltage of the present invention and zero crossing pick-up unit one embodiment thereof; Fig. 2 is the electrical block diagram of alternating current voltage of the present invention and another embodiment of zero crossing pick-up unit thereof; Fig. 3 is the structured flowchart of sampling module among Fig. 1 and Fig. 2; Fig. 4 is the structured flowchart of processing module among Fig. 1 and Fig. 2; Fig. 5 is the frequency detecting oscillogram that alternating current voltage of the present invention and zero crossing pick-up unit one embodiment thereof realize; Fig. 6 be the voltage realized of alternating current voltage of the present invention and zero crossing pick-up unit one embodiment thereof and zero point oscillogram; As Fig. 1, Fig. 2, Fig. 3, Fig. 4, Fig. 5 and shown in Figure 6, circuit theory of the present invention is implemented as follows:
Frequency and the cycle detecting and obtain alternating current: described first detecting module 10 and second detecting module, 20 shared test side I/O2 mouths, wherein, first detecting module 10 cycle of monitoring the voltage signal of input AC electricity in real time and obtaining the input AC electricity by test side I/O2.Particularly, one end of first resistance R 1 is connected with monitored voltage end 100, A o'clock between first resistance R 1 and monitored voltage end 100, promptly input to the voltage that voltage that A orders need detect for us, input to alternating voltage that A orders through first resistance R, 1 dividing potential drop after, and after the clamping action by the first diode D1 and the second diode D2, produce one and same cycle of electrical network at the C point, dutycycle is 50% square wave, this moment control module 30 control end I/O1, the test side I/O2 of first detecting module 10 and the input end I/O3 of sampling module 30 are made as the input port, control module 30 can detect the frequency of alternating current by control end I/O1 or test side I/O 2, suppose that frequency is 1/T, then the cycle is T.Detect waveform that A point, B point and C order as shown in Figure 5, the zero crossing of suitable time when realizing regularly detecting the input AC electricity and being become negative half-wave or negative half-wave and become positive half-wave by positive half-wave can be set by described period T.
Obtain the zero crossing and the voltage of alternating current: the zero crossing when second detecting module 10 was regularly detected the input AC electricity and become negative half-wave or negative half-wave and become positive half-wave by positive half-wave according to the cycle, when the test side I/O2 of second detecting module 20 detects the input AC electricity and negative edge occurs, can obtain the zero crossing that the input AC electricity is in negative edge, thereby realize detection the negative edge zero crossing.And, after the test side I/O2 of second detecting module 20 detects the negative edge of input AC electricity, carry out described preset time by timed sequence, control end I/O1 with control module 30 in described preset time section is changed to delivery outlet, the output high level compensates the current potential that B is ordered, promptly to high level of negative half-wave stack of alternating current, the voltage that C is ordered after the stack is suitable for sampling module 30AD sampling, and the voltage that this moment, C was ordered is:
Uc=Ua * R2/ (R1+R2)+Ub * R1/ (R1+R2), the alternating voltage that Ua is ordered for circuit A, Ub are the high-low level of control end I/O 1 output of control module 30; By first resistance R 1 and second resistance R 2 are chosen suitable resistance, reach the purpose of optimum voltage waveform.Like this, just realized detection to the negative half-wave voltage of alternating current.When preset time finishes, the control end I/O1 of control module 30 is changed to the input port, the input high-impedance state, promptly remove high level to the negative half-wave stack of input AC electricity, the waveform of negative half-wave is recovered, the test side I/O2 of second detecting module 20 is set to rising edge and triggers interruption simultaneously, wait for that the input AC electricity is become the arrival of the zero crossing of positive half-wave by negative half-wave, when the rising edge down trigger, the test side I/O2 by second detecting module 20 can obtain the zero crossing that the input AC electricity is in rising edge.Thereby realized when detecting the negative half-wave voltage of alternating current, having realized detection to zero crossing.Wherein, described preset time is for being set to t (t<T/2) according to the detected cycle, zero crossing when becoming negative half-wave or negative half-wave and become positive half-wave by positive half-wave to realize regularly detecting the input AC electricity, and prevent that the input AC electricity is applied high level by negative half-wave always when positive half-wave changes or the input AC electricity is applied low level by positive half-wave always when negative half-wave changes, thereby influence the detection of zero crossing.
After second detecting module 20 detects the rising edge of input AC electricity, carry out described preset time t by timed sequence, control end I/O1 with control module 30 in described preset time section is changed to delivery outlet, output low level is to the B point, promptly to the positive half-wave of input AC electricity stack low level, detect the positive half-wave voltage of alternating current this moment, and the C voltage of ordering is so: Uc=Ua * R2/ (R1+R2).Like this, just realized detection to alternating current positive half-wave voltage.When preset time t finishes, the control end I/O1 of control module 30 is changed to the input port, the input high-impedance state, promptly remove high level to the positive half-wave stack of input AC electricity, the waveform of positive half-wave is recovered, the test side I/O2 of second detecting module 20 is set to the negative edge triggering interruption of input AC electricity simultaneously, wait for that the input AC electricity is become the arrival of the zero crossing of negative half-wave by positive half-wave, when the negative edge down trigger, test side I/O2 by second detecting module 20 can get access to the zero crossing of negative edge, thereby is implemented in the detection that has realized when detecting alternating current positive half-wave voltage zero crossing.Like this, move in circles, choose the suitable time according to the cycle, after detecting positive half-wave or negative half-wave voltage, detect zero crossing, thus realize alternating voltage and zero crossing in real time, accurately detect.Detect waveform that A point, B point and C order as shown in Figure 6.
In sum, the voltage that alternating current A is ordered can be obtained the voltage U c that C is ordered by the C point voltage being carried out in real time the AD sampling, by computing, reaches the purpose that alternating voltage Ua is detected.
Specifically be calculated as follows, when the positive half-wave of alternating current, Ua=Uc * (R1+R2)/R2; When the negative half-wave of alternating current, Ua=Uc * (R1+R2)/R2-Ub * R1/R2.
The present invention also proposes a kind of alternating current voltage and zero crossing detection method thereof that realizes based on said apparatus.With reference to Fig. 7 and Fig. 8, Fig. 7 is the schematic flow sheet of alternating current voltage of the present invention and zero crossing detection method one embodiment thereof; Fig. 8 is the schematic flow sheet of alternating current voltage of the present invention and another embodiment of zero crossing detection method thereof.Alternating current voltage and zero crossing detection method thereof that the present invention proposes may further comprise the steps:
Step S10, the cycle of monitoring the voltage signal of input AC electricity and obtaining the input AC electricity in real time; At first the input AC electricity is monitored in real time in the present embodiment, in the process of monitoring, further detect the frequency and the cycle of input ac voltage and obtain.
Step S20, regularly detect the input AC electricity according to the cycle and become the zero crossing that negative half-wave or negative half-wave become positive half-wave by positive half-wave; In the present embodiment, the zero crossing that reasonable time is regularly detected alternating current is set according to the detected cycle, this zero crossing comprises the zero crossing when becoming negative half-wave by positive half-wave, and the zero crossing when becoming positive half-wave by negative half-wave.Particularly, at first the input AC electricity is carried out clamper, make it to be converted to level signal.When the input AC electricity is positive half-wave, obtain high level signal after the clamper; When the input AC electricity is when bearing half-wave, to obtain low level signal after the clamper.The time of the level state that detecting input AC electricity forms after clamper was set according to the cycle, when detecting the level of input AC electricity after clamper when negative edge (becoming low level) occurring, then judge to become the zero crossing of negative half-wave this moment by positive half-wave for the input AC electricity by high level; When detecting the level of input AC electricity after clamper when rising edge (becoming high level) occurring, then judge to become the zero crossing of positive half-wave this moment by negative half-wave for the input AC electricity by low level.
Step S30, be used for when described alternating current is become negative half-wave by positive half-wave, in the default time period to high level of negative half-wave stack of alternating current; When described alternating current becomes positive half-wave by negative half-wave, in the default time period to low level of positive half-wave stack of alternating current;
In the present embodiment, when negative edge appears in the level of input AC electricity after clamper, in the default time period to high level of negative half-wave stack of alternating current, when rising edge appears in the level of input AC electricity after clamper, in the default time period to low level of positive half-wave stack of alternating current, like this for preparing to effective voltage by real-time sampling.Wherein, the default time period is traditionally arranged to be the time less than half ac period, preventing that alternating current is applied high level or alternating current by negative half-wave and is applied low level by positive half-wave when negative half-wave changes when positive half-wave changes always always, thereby influence the detection of crossover point signal; When preset time finishes, remove the high-low level of stack, the waveform that makes positive half-wave or negative half-wave be applied high-low level recovers, and when detecting the level of input AC electricity after clamper when the triggering of negative edge or rising edge occurring, zero crossing when obtaining negative edge or rising edge and triggering, thus realized accurate detection to zero crossing.
Should be noted that when detecting crossover point signal and be in negative edge the voltage when being in negative half-wave is unfavorable for sampling for negative,, enable to detect the voltage of alternating current when being in negative half-wave by high level of negative half-wave stack to alternating current; When detecting crossover point signal and be in rising edge, too high for preventing level, be unfavorable for sampling, so by low level of positive half-wave stack of alternating current being dragged down the current potential of positive half-wave, enable to detect alternating current the voltage when being in positive half-wave.
Step S40, the alternating voltage of stack behind the level carried out the AD sampling; In the present embodiment, according to the difference of phase place, by the AD thief hatch the positive and negative half-wave of the alternating current of stack behind the varying level is carried out the AD sampling, the simulating signal that samples like this can directly be converted to the digital signal that we need, and can reduce circuit cost.Wherein, because the voltage of bearing half-wave is unfavorable for the AD sampling for negative, so by sampling effective voltage information behind the high level that negative half-wave is superposeed; Because when the current potential of positive half-wave is too high, be unfavorable for the AD sampling equally, thus low level of positive half-wave stack of alternating current is dragged down the current potential of positive half-wave, thus conveniently voltage AD is sampled.
The alternating voltage that step S50, basis sample carries out magnitude of voltage and calculates.In the present embodiment, input to by the voltage data that AD is sampled and to carry out magnitude of voltage in the voltage computing formula that sets in advance and calculate, thereby obtain the voltage of tested input AC electricity.
The inventive method is by the voltage signal of real-time monitoring input AC and the cycle of obtaining the input AC electricity, regularly detects the input AC electricity according to the cycle and becomes the zero crossing that negative half-wave or negative half-wave become positive half-wave by positive half-wave; When described alternating current is become negative half-wave by positive half-wave, in the default time period to high level of negative half-wave stack of alternating current; When described alternating current becomes positive half-wave by negative half-wave, in the default time period to low level of positive half-wave stack of alternating current; Alternating voltage behind the stack level is carried out the AD sampling, carry out magnitude of voltage calculating according to the alternating voltage that samples then, thereby realized when detecting the positive and negative half-wave voltage of alternating current in real time, having realized the accurate detection of zero crossing.
Above-mentioned steps S20 specifically comprises:
Described input AC electricity is carried out clamper, convert high-low level to;
Regularly detect the rising edge and the negative edge of the level after the clamper according to the described cycle; To be the input AC electricity become the zero crossing of positive half-wave by negative half-wave to described rising edge, and described negative edge is for exchanging the input electricity is become negative half-wave by positive half-wave zero crossing.
In the present embodiment, at first the input AC electricity is carried out clamper, make it to be converted to level signal.When the input AC electricity is positive half-wave, obtain high level signal after the clamper; When the input AC electricity is when bearing half-wave, to obtain low level signal after the clamper.The time of the level state that detecting input AC electricity forms after clamper was set according to the cycle, when detecting the level of input AC electricity after clamper when negative edge (becoming low level) occurring, then judge to become the zero crossing of negative half-wave this moment by positive half-wave for the input AC electricity by high level; When detecting the level of input AC electricity after clamper when rising edge (becoming high level) occurring, then judge to become the zero crossing of positive half-wave this moment by negative half-wave for the input AC electricity by low level.
Above-mentioned steps S40 specifically comprises:
Step S401, the alternating voltage of stack behind the level carried out analog sampling;
Step S402, the analog voltage signal that samples is converted to digital voltage signal.
In the present embodiment, at first the alternating voltage behind the stack level is carried out the analog voltage signal sampling, then the analog voltage signal that samples is carried out analog to digital conversion, convert the digital voltage signal that needs to, again the voltage data that obtains is inputed to and carry out magnitude of voltage calculating in the voltage computing formula that sets in advance, finally obtain the virtual voltage of tested input AC electricity.
Above-mentioned steps S50 specifically comprises:
The alternating voltage that samples inputed to carry out magnitude of voltage in the voltage computing formula that sets in advance and calculate.In the present embodiment, by setting in advance the relevant voltage computing formula, the data input formula with known needs behind the voltage data that samples the input AC electricity, inputs to these data in this formula, promptly can calculate the voltage of tested input AC electricity.
The above only is the preferred embodiments of the present invention; be not so limit claim of the present invention; every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to be done; or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.
Claims (8)
1. alternating current voltage and zero crossing pick-up unit thereof is characterized in that described alternating current voltage and zero crossing pick-up unit thereof comprise first detecting module, second detecting module, control module, sampling module and processing module; Wherein,
First detecting module, the cycle that is used for monitoring the voltage signal of input AC electricity in real time and obtains the input AC electricity;
Second detecting module is used for regularly detecting the input AC electricity according to the cycle and becomes the zero crossing that negative half-wave or negative half-wave become positive half-wave by positive half-wave;
Control module is used for when described alternating current is become negative half-wave by positive half-wave, in the default time period to high level of negative half-wave stack of alternating current; When described alternating current becomes positive half-wave by negative half-wave, in the default time period to low level of positive half-wave stack of alternating current;
Sampling module is used for the alternating voltage behind the stack level is carried out the AD sampling;
Processing module is used for carrying out magnitude of voltage according to the alternating voltage that samples and calculates.
2. alternating current voltage as claimed in claim 1 and zero crossing pick-up unit thereof is characterized in that, also comprise: first power supply, first resistance, second resistance, first diode, second diode and first electric capacity; One end of described first resistance is connected with tested voltage end, is used to import tested alternating voltage, and the other end is connected with the input end of sampling module and is connected with the test side of first detecting module; One end of described second resistance is connected with the connected node of first resistance and sampling module, and the other end is connected with the control end of control module; The negative electrode of described first diode is connected with first power supply, and anode is connected with the connected node of first resistance and sampling module; The negative electrode of described second diode is connected plus earth with the anode of first diode; One end of described first electric capacity is connected other end ground connection with the connected node of first diode with second diode.
3. alternating current voltage as claimed in claim 1 and zero crossing pick-up unit thereof is characterized in that, described sampling module specifically comprises:
Sampling unit is used for the alternating voltage behind the stack level is carried out analog sampling;
Analog to digital converter, the analog voltage signal that is used for sampling is converted to digital voltage signal.
4. alternating current voltage as claimed in claim 1 and zero crossing pick-up unit thereof is characterized in that, described processing module specifically comprises:
Processing unit, the alternating voltage that is used for sampling input to the voltage computing formula that sets in advance and carry out magnitude of voltage calculating.
5. alternating current voltage and zero crossing detection method thereof is characterized in that, said method comprising the steps of:
Monitor the voltage signal of input AC electricity and the cycle of obtaining the input AC electricity in real time;
Regularly detect the input AC electricity according to the cycle and become the zero crossing that negative half-wave or negative half-wave become positive half-wave by positive half-wave;
When described alternating current is become negative half-wave by positive half-wave, in the default time period to high level of negative half-wave stack of alternating current; When described alternating current becomes positive half-wave by negative half-wave, in the default time period to low level of positive half-wave stack of alternating current;
Alternating voltage behind the stack level is carried out the AD sampling;
Carrying out magnitude of voltage according to the alternating voltage that samples calculates.
6. as alternating current voltage and zero crossing detection method thereof as described in the claim 5, it is characterized in that, describedly regularly detect the input AC electricity according to the cycle and become the zero crossing that negative half-wave or negative half-wave become positive half-wave by positive half-wave and specifically comprise:
Described input AC electricity is carried out clamper, convert high-low level to;
Regularly detect the rising edge and the negative edge of the level after the clamper according to the described cycle; To be the input AC electricity become the zero crossing of positive half-wave by negative half-wave to described rising edge, and described negative edge is for exchanging the input electricity is become negative half-wave by positive half-wave zero crossing.
7. alternating current voltage as claimed in claim 5 and zero crossing detection method thereof is characterized in that, describedly the alternating voltage of stack behind the level carried out the AD sampling specifically comprise:
Alternating voltage behind the stack level is carried out analog sampling;
The analog voltage signal that samples is converted to digital voltage signal.
8. alternating current voltage as claimed in claim 5 and zero crossing detection method thereof is characterized in that, the alternating voltage that described basis samples carries out magnitude of voltage calculating and specifically comprises:
The alternating voltage that samples inputed to carry out magnitude of voltage in the voltage computing formula that sets in advance and calculate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310117752.1A CN103217572B (en) | 2013-04-07 | 2013-04-07 | Alternating current voltage and zero-crossing examination device and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310117752.1A CN103217572B (en) | 2013-04-07 | 2013-04-07 | Alternating current voltage and zero-crossing examination device and method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103217572A true CN103217572A (en) | 2013-07-24 |
CN103217572B CN103217572B (en) | 2015-09-23 |
Family
ID=48815536
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310117752.1A Expired - Fee Related CN103217572B (en) | 2013-04-07 | 2013-04-07 | Alternating current voltage and zero-crossing examination device and method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103217572B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106253789A (en) * | 2016-10-27 | 2016-12-21 | 深圳市复兴伟业技术有限公司 | The zero passage method of sampling of single phase induction motor inverse electromotive force |
CN106301468A (en) * | 2016-07-21 | 2017-01-04 | 华为技术有限公司 | Transtation mission circuit, reception circuit and serial signal transmission system |
CN108037348A (en) * | 2017-11-27 | 2018-05-15 | 深圳市锐钜科技有限公司 | Single-phase alternating current zero passage detection method |
CN108169546A (en) * | 2017-12-29 | 2018-06-15 | 上海盐巴信息科技有限公司 | A kind of zero-crossing detection system of alternating current and the electronic equipment with the system |
CN109668735A (en) * | 2018-12-11 | 2019-04-23 | 中国航空工业集团公司西安航空计算技术研究所 | A kind of engine rotor phase reference determines method, apparatus and circuit |
CN109799384A (en) * | 2017-11-16 | 2019-05-24 | 佛山市顺德区美的电热电器制造有限公司 | Voltage zero-cross detection method, device and cooking appliance |
CN110108928A (en) * | 2019-05-23 | 2019-08-09 | 九阳股份有限公司 | A kind of alternating voltage zero-crossing detection method based on ac voltage detection circuit |
CN110286262A (en) * | 2019-06-29 | 2019-09-27 | 苏州浪潮智能科技有限公司 | A kind of power-frequency voltage zero-crossing examination method and system |
CN110850151A (en) * | 2019-11-04 | 2020-02-28 | 易事特集团股份有限公司 | Zero-crossing determination method and zero-crossing determination device |
CN114814343A (en) * | 2022-04-06 | 2022-07-29 | 上海正泰智能科技有限公司 | Method for detecting zero crossing point based on dual waveform capture |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4109288A (en) * | 1976-12-09 | 1978-08-22 | Ncr Corporation | Overload protection system |
US20120112926A1 (en) * | 2010-11-09 | 2012-05-10 | Robert Matthew Martinelli | Cell telemetry sample and hold amplifier |
CN102707127A (en) * | 2012-05-29 | 2012-10-03 | 长沙奥托自动化技术有限公司 | Simplified type alternating-current zero-crossing detecting and amplitude value sampling unit |
CN202486205U (en) * | 2012-02-20 | 2012-10-10 | 深圳和而泰智能控制股份有限公司 | Voltage zero-crossing detection circuit and device |
CN102749498A (en) * | 2012-07-16 | 2012-10-24 | 成都芯源系统有限公司 | Alternating voltage detection circuit and method thereof and safety capacitor discharge circuit |
-
2013
- 2013-04-07 CN CN201310117752.1A patent/CN103217572B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4109288A (en) * | 1976-12-09 | 1978-08-22 | Ncr Corporation | Overload protection system |
US20120112926A1 (en) * | 2010-11-09 | 2012-05-10 | Robert Matthew Martinelli | Cell telemetry sample and hold amplifier |
CN202486205U (en) * | 2012-02-20 | 2012-10-10 | 深圳和而泰智能控制股份有限公司 | Voltage zero-crossing detection circuit and device |
CN102707127A (en) * | 2012-05-29 | 2012-10-03 | 长沙奥托自动化技术有限公司 | Simplified type alternating-current zero-crossing detecting and amplitude value sampling unit |
CN102749498A (en) * | 2012-07-16 | 2012-10-24 | 成都芯源系统有限公司 | Alternating voltage detection circuit and method thereof and safety capacitor discharge circuit |
Non-Patent Citations (1)
Title |
---|
王庆华等: "电网电压过零检测及倍频电路的研究与实现", 《江苏技术师范学院学报》, vol. 17, no. 6, 30 June 2011 (2011-06-30), pages 47 - 51 * |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106301468A (en) * | 2016-07-21 | 2017-01-04 | 华为技术有限公司 | Transtation mission circuit, reception circuit and serial signal transmission system |
CN106301468B (en) * | 2016-07-21 | 2019-05-28 | 华为技术有限公司 | Serial signal transmitting line receives circuit and Transmission system and method |
CN106253789B (en) * | 2016-10-27 | 2018-10-19 | 深圳市复兴伟业技术有限公司 | The zero passage method of sampling of single phase induction motor inverse electromotive force |
CN106253789A (en) * | 2016-10-27 | 2016-12-21 | 深圳市复兴伟业技术有限公司 | The zero passage method of sampling of single phase induction motor inverse electromotive force |
CN109799384B (en) * | 2017-11-16 | 2020-11-20 | 佛山市顺德区美的电热电器制造有限公司 | Voltage zero-crossing detection method and device and cooking appliance |
CN109799384A (en) * | 2017-11-16 | 2019-05-24 | 佛山市顺德区美的电热电器制造有限公司 | Voltage zero-cross detection method, device and cooking appliance |
CN108037348B (en) * | 2017-11-27 | 2020-04-14 | 深圳市锐钜科技有限公司 | Single-phase alternating current zero-crossing detection method |
CN108037348A (en) * | 2017-11-27 | 2018-05-15 | 深圳市锐钜科技有限公司 | Single-phase alternating current zero passage detection method |
CN108169546A (en) * | 2017-12-29 | 2018-06-15 | 上海盐巴信息科技有限公司 | A kind of zero-crossing detection system of alternating current and the electronic equipment with the system |
CN108169546B (en) * | 2017-12-29 | 2024-03-19 | 上海盐巴信息科技有限公司 | Zero-crossing detection system of alternating current and electronic equipment with same |
CN109668735A (en) * | 2018-12-11 | 2019-04-23 | 中国航空工业集团公司西安航空计算技术研究所 | A kind of engine rotor phase reference determines method, apparatus and circuit |
CN110108928A (en) * | 2019-05-23 | 2019-08-09 | 九阳股份有限公司 | A kind of alternating voltage zero-crossing detection method based on ac voltage detection circuit |
CN110108928B (en) * | 2019-05-23 | 2021-04-09 | 九阳股份有限公司 | Alternating voltage zero-crossing detection method based on alternating voltage detection circuit |
CN110286262B (en) * | 2019-06-29 | 2021-09-03 | 苏州浪潮智能科技有限公司 | Power frequency voltage zero crossing point detection method and system |
CN110286262A (en) * | 2019-06-29 | 2019-09-27 | 苏州浪潮智能科技有限公司 | A kind of power-frequency voltage zero-crossing examination method and system |
CN110850151A (en) * | 2019-11-04 | 2020-02-28 | 易事特集团股份有限公司 | Zero-crossing determination method and zero-crossing determination device |
CN114814343A (en) * | 2022-04-06 | 2022-07-29 | 上海正泰智能科技有限公司 | Method for detecting zero crossing point based on dual waveform capture |
CN114814343B (en) * | 2022-04-06 | 2023-12-12 | 上海正泰智能科技有限公司 | Method for detecting zero crossing point based on double waveform capture |
Also Published As
Publication number | Publication date |
---|---|
CN103217572B (en) | 2015-09-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103217572A (en) | Device and method for detecting voltage and zero crossing point of alternating current | |
CN103439587B (en) | The detection method of three-phase alternating current | |
CN103698695A (en) | Multifunctional electrical characteristic testing device and testing method for high-voltage circuit breaker | |
CN104267273B (en) | Quick detection circuit and method for mains fluctuation | |
CN105958621B (en) | One kind being used for capacitor group Bridge differential current protection out-of-balance current leveling method | |
CN203688638U (en) | Device for detecting resistive leakage current of metal oxide lightning arrester | |
CN109031083A (en) | MMC fault detection method based on Fast Fourier Transform (FFT) and sliding average value-based algorithm | |
CN101819261B (en) | Three-phase source phase failure and power failure detection circuit | |
CN101900751B (en) | Detection method of real-time voltage vectors in energy feedback unit | |
CN104820127A (en) | Metal oxide arrester resistance current extracting method and device | |
CN203799008U (en) | Pillar type electronic current transformer primary vibration test data acquisition device | |
CN203502555U (en) | Electrical characteristic detecting device for multifunctional high-voltage circuit breaker | |
CN102495264A (en) | Voltage dip duration detection method based on information entropy | |
CN107765084B (en) | Universal voltage input power frequency signal frequency measurement system | |
CN204166058U (en) | A kind of city electro-mechanical wave quick detection circuit | |
CN201383000Y (en) | Electric energy meter detecting device | |
CN107907763A (en) | The quick off-network detection method of energy storage inverter | |
CN205941675U (en) | Zero crossing point capturing device | |
CN100460883C (en) | Detection method for testing current in resistance property of lightning arrester | |
Zaro et al. | Characterization of short-duration voltage events | |
CN204287447U (en) | A kind of alternating current-direct current input detecting circuit | |
CN103344894B (en) | A kind of UHV (ultra-high voltage) operation signal acquiring system | |
CN104090162A (en) | Method for measuring system voltage and current angles without voltage transformer | |
CN102486491B (en) | Method and system for detecting unbalance of positive half cycle current and negative half cycle current of alternating current | |
CN203929854U (en) | Voltage magnitude testing circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150923 |
|
CF01 | Termination of patent right due to non-payment of annual fee |