CN103217572B - Alternating current voltage and zero-crossing examination device and method thereof - Google Patents

Alternating current voltage and zero-crossing examination device and method thereof Download PDF

Info

Publication number
CN103217572B
CN103217572B CN201310117752.1A CN201310117752A CN103217572B CN 103217572 B CN103217572 B CN 103217572B CN 201310117752 A CN201310117752 A CN 201310117752A CN 103217572 B CN103217572 B CN 103217572B
Authority
CN
China
Prior art keywords
wave
voltage
alternating current
input
zero
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.)
Expired - Fee Related
Application number
CN201310117752.1A
Other languages
Chinese (zh)
Other versions
CN103217572A (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 H&T Intelligent Control Co Ltd
Original Assignee
Shenzhen H&T Intelligent Control 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 H&T Intelligent Control Co Ltd filed Critical Shenzhen H&T Intelligent Control Co Ltd
Priority to CN201310117752.1A priority Critical patent/CN103217572B/en
Publication of CN103217572A publication Critical patent/CN103217572A/en
Application granted granted Critical
Publication of CN103217572B publication Critical patent/CN103217572B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a kind of alternating current voltage and zero-crossing examination device and method thereof, and described alternating current voltage and zero-crossing examination method thereof comprise the voltage signal of Real-Time Monitoring input AC and obtain cycle of input AC electricity; Become from positive half-wave the zero crossing that negative half-wave or negative half-wave become positive half-wave according to cycle timing detecting input AC electricity; When described alternating current becomes negative half-wave from positive half-wave, within the time period of presetting, a high level is superposed to the negative half-wave of alternating current; When described alternating current from bear half-wave become positive half-wave time, preset time period in a low level is superposed to the positive half-wave of alternating current; AD sampling is carried out to the alternating voltage after superposition level; Magnitude of voltage calculating is carried out according to the alternating voltage sampled.The advantages such as the present invention can not only realize accurately detecting zero-crossing of alternating current and voltage simultaneously, but also has simplicity of design, with low cost.

Description

Alternating current voltage and zero-crossing examination device and method thereof
Technical field
The present invention relates to voltage detecting technical field, particularly relate to a kind of alternating current voltage and zero-crossing examination device and method thereof.
Background technology
In household electrical appliances and industrial control system, for realizing accurate control, often need voltage and the zero point of detecting AC power.And in traditional testing circuit, detect voltage generally by " dividing potential drop-rectification-filtering-A/D changes " several step; Detect zero point generally by realizing AC power " pressure limiting/current limliting-shaping-detection waveform edge ".There is following shortcoming in traditional circuit:
Voltage detecting poor real.
Need voltage detecting and zero passage detection two independently circuit unit, circuit is complicated.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of alternating current voltage and zero-crossing examination device and method thereof, is detected zero point, and improves voltage detecting real-time while being intended to realize accurately detecting alternating current voltage.
In order to achieve the above object, the present invention proposes a kind of alternating current voltage and zero-crossing examination device thereof, and described alternating current voltage and zero-crossing examination device thereof comprise the first detecting module, the second detecting module, control module, sampling module and processing module; Wherein,
First detecting module, for Real-Time Monitoring input AC electricity voltage signal and obtain cycle of input AC electricity;
Second detecting module, for becoming from positive half-wave the zero crossing that negative half-wave or negative half-wave become positive half-wave according to cycle timing detecting input AC electricity;
Control module, for when described alternating current becomes negative half-wave from positive half-wave, superposes a high level to the negative half-wave of alternating current within the time period of presetting; When described alternating current from bear half-wave become positive half-wave time, preset time period in a low level is superposed to the positive half-wave of alternating current;
Sampling module, for carrying out AD sampling to the alternating voltage after superposition level;
Processing module, carries out magnitude of voltage calculating for the alternating voltage sampled according to AD.
Preferably, also comprise: the first power supply, the first resistance, the second resistance, the first diode, the second diode and the first electric capacity; One end of described first resistance is connected with tested voltage end, and for inputting tested alternating voltage, the other end is connected with the input end of sampling module and is connected with the test side of the first detecting module; One end of described second resistance is connected with the connected node of the 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 the first power supply, and the anode of described first diode is connected with the connected node of the first resistance and sampling module; The negative electrode of described second diode is connected with the anode of the first diode, the plus earth of described second diode; One end of described first electric capacity is connected with the connected node of the first diode and the second diode, other end ground connection.
Preferably, described sampling module specifically comprises:
Sampling unit, for carrying out analog sampling to the alternating voltage after superposition level;
Analog to digital converter, for being converted to digital voltage signal by the analog voltage signal sampled.
Preferably, described processing module specifically comprises:
Processing unit, carries out magnitude of voltage calculating for being inputed to by the alternating voltage sampled in the voltage computing formula that pre-sets.
The present invention also proposes a kind of alternating current voltage and zero-crossing examination method thereof, said method comprising the steps of:
The voltage signal of Real-Time Monitoring input AC electricity also obtains cycle of input AC electricity;
Become from positive half-wave the zero crossing that negative half-wave or negative half-wave become positive half-wave according to cycle timing detecting input AC electricity;
When described alternating current becomes negative half-wave from positive half-wave, within the time period of presetting, a high level is superposed to the negative half-wave of alternating current; When described alternating current from bear half-wave become positive half-wave time, preset time period in a low level is superposed to the positive half-wave of alternating current;
AD sampling is carried out to the alternating voltage after superposition level;
Magnitude of voltage calculating is carried out according to the alternating voltage sampled.
Preferably, describedly become from positive half-wave the zero crossing that negative half-wave or negative half-wave become positive half-wave according to cycle timing detecting input AC electricity and specifically comprise:
Described input AC electricity is carried out clamper, converts low and high level to;
According to rising edge and the negative edge of the level after described cycle timing detecting clamper; Described rising edge is input AC electricity is become positive half-wave zero crossing from negative half-wave, and described negative edge is exchange input electricity is become negative half-wave zero crossing from positive half-wave.
Preferably, described to superposition level after alternating voltage carry out AD sampling specifically comprise:
Analog sampling is carried out to the alternating voltage after superposition level;
The analog voltage signal sampled is converted to digital voltage signal.
Preferably, the alternating voltage that described basis samples carries out magnitude of voltage calculating and specifically comprises:
The alternating voltage sampled is inputed in the voltage computing formula pre-set and carries out magnitude of voltage calculating.
The present invention is by the voltage signal of Real-Time Monitoring input AC and obtain cycle of input AC electricity; Become from positive half-wave the zero crossing that negative half-wave or negative half-wave become positive half-wave according to cycle timing detecting input AC electricity; When described alternating current becomes negative half-wave from positive half-wave, within the time period of presetting, a high level is superposed to the negative half-wave of alternating current; When described alternating current from bear half-wave become positive half-wave time, preset time period in a low level is superposed to the positive half-wave of alternating current; AD sampling is carried out to the alternating voltage after superposition level; Magnitude of voltage calculating is carried out according to the alternating voltage sampled.The present invention is detected zero point while can realizing accurately detecting alternating current voltage, and improves the real-time of voltage detecting.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of alternating current voltage of the present invention and zero-crossing examination device one embodiment thereof;
Fig. 2 is the electrical block diagram of alternating current voltage of the present invention and another embodiment of zero-crossing examination device thereof;
Fig. 3 is the structured flowchart of sampling module in Fig. 1 and Fig. 2;
Fig. 4 is the structured flowchart of processing module in Fig. 1 and Fig. 2;
Fig. 5 is the frequency detecting oscillogram that alternating current voltage of the present invention and zero-crossing examination device one embodiment thereof realize;
Fig. 6 be the voltage that realizes of alternating current voltage of the present invention and zero-crossing examination device 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 examination 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 examination method thereof.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Technical scheme of the present invention is further illustrated below in conjunction with Figure of description and specific embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit 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 examination device one embodiment thereof; Fig. 2 is the electrical block diagram of alternating current voltage of the present invention and another embodiment of zero-crossing examination device thereof; Fig. 3 is the structured flowchart of sampling module in Fig. 1 and Fig. 2; Fig. 4 is the structured flowchart of processing module in Fig. 1 and Fig. 2; As shown in Figure 1, Figure 2, shown in Fig. 3 and Fig. 4, the present invention proposes a kind of alternating current voltage and zero-crossing examination device thereof, and described alternating current voltage and zero-crossing examination device thereof comprise the first detecting module 10, second detecting module 20, control module 30, sampling module 40 and processing module 50; Wherein,
First detecting module 10, for Real-Time Monitoring input AC electricity voltage signal and obtain cycle of input AC electricity; First Real-Time Monitoring is carried out to input AC electricity in the present embodiment, in the process of monitoring, detect further the frequency of input ac voltage and cycle and obtain.
Second detecting module 20, for becoming from positive half-wave the zero crossing that negative half-wave or negative half-wave become positive half-wave according to cycle timing detecting input AC electricity;
In the present embodiment, arrange according to the cycle detected the zero crossing that alternating current is detected in reasonable time timing, this zero crossing comprises zero crossing when becoming negative half-wave from positive half-wave, and zero crossing when becoming positive half-wave from negative half-wave.Particularly, first clamper is carried out to input AC electricity, make it to be converted to level signal.When input AC electricity is positive half-wave, after clamper, obtain high level signal; When input AC electricity is for negative half-wave, after clamper, obtain low level signal.The time of the level state that detecting input AC electricity is formed after clamper was set according to the cycle, when detecting the level of input AC electricity after clamper and occurring negative edge (becoming low level from high level), then judge the zero crossing now being become negative half-wave as input AC electricity from positive half-wave; When detecting the level of input AC electricity after clamper and occurring rising edge (becoming high level from low level), then judge the zero crossing now being become positive half-wave as input AC electricity from negative half-wave.
Control module 30, for when described alternating current becomes negative half-wave from positive half-wave, superposes a high level to the negative half-wave of alternating current within the time period of presetting; When described alternating current from bear half-wave become positive half-wave time, preset time period in a low level is superposed to the positive half-wave of alternating current;
In the present embodiment, when there is negative edge in the level of input AC electricity after clamper, within the time period of presetting, a high level is superposed to the negative half-wave of alternating current, when there is rising edge in the level of input AC electricity after clamper, within the time period of presetting, a low level is superposed, like this for preparing to effective voltage by real-time sampling to the positive half-wave of alternating current.Wherein, the time period of presetting is traditionally arranged to be the time being less than half ac period, to prevent alternating current to be applied high level or alternating current when half wave direction positive half-wave changes and to be applied low level by positive half-wave by bearing when negative half-wave changes always always, thus affect the detection of crossover point signal; When preset time terminates, remove the low and high level of superposition, positive half-wave or negative half-wave is made to be applied the wave recovery of low and high level, and when detecting the level of input AC electricity after clamper and occurring the triggering of negative edge or rising edge, obtain zero crossing when negative edge or rising edge triggering, thus achieve the accurate detection to zero crossing.
It should be noted that when detecting that crossover point signal is in negative edge, voltage when being in negative half-wave is negative, is unfavorable for sampling, by superposing a high level to the negative half-wave of alternating current, enables to detect voltage when alternating current is in negative half-wave; When detecting that crossover point signal is in rising edge, for preventing level too high, being unfavorable for sampling, so by superposing the current potential that a low level drags down positive half-wave to the positive half-wave of alternating current, enabling to detect voltage when alternating current is in positive half-wave.
Sampling module 40, for carrying out AD sampling to the alternating voltage after superposition level; In the present embodiment, according to the difference of phase place, carry out AD sampling by the positive and negative half-wave of AD thief hatch to the alternating current after superposition varying level, the simulating signal sampled so directly can be converted to the digital signal that we need, and can reduce circuit cost.Wherein, the voltage due to negative half-wave is negative, is unfavorable for that AD samples, so by sampling effective voltage information to after negative half-wave superposition high level; When current potential due to positive half-wave is too high, be unfavorable for that AD samples equally, so superpose a low level to drag down the current potential of positive half-wave to the positive half-wave of alternating current, thus conveniently voltage AD sampled.
Processing module 50, for carrying out magnitude of voltage calculating according to the alternating voltage sampled.
In the present embodiment, inputed in the voltage computing formula pre-set by the voltage data that AD is sampled and carry out magnitude of voltage calculating, thus obtain the voltage of tested input AC electricity.
Apparatus of the present invention are by the voltage signal of the first detecting module 10 Real-Time Monitoring input AC and obtain cycle of input AC electricity; Second detecting module 20 becomes from positive half-wave the zero crossing that negative half-wave or negative half-wave become positive half-wave according to cycle timing detecting input AC electricity; Control module 30, when alternating current becomes negative half-wave from positive half-wave, superposes a high level to the negative half-wave of alternating current within the time period of presetting; When alternating current from bear half-wave become positive half-wave time, preset time period in a low level is superposed to the positive half-wave of alternating current; Sampling module 40 carries out AD sampling to the alternating voltage after superposition level, and then processing module 50 carries out magnitude of voltage calculating according to the alternating voltage sampled.Thus achieve the accurate detection achieving zero crossing while detecting the positive and negative half-wave voltage of alternating current in real time.
Above-mentionedly also to comprise: the first power supply VCC1, the first resistance R1, the second resistance R2, the first diode D1, the second diode D2 and the first electric capacity C1; One end of described first resistance R1 is connected with monitored voltage input end 100, and for inputting tested alternating voltage, the other end is connected with the input end of sampling module 40 and is connected with the test side I/O2 of the first detecting module 10; One end of described second resistance R2 is connected with the connected node of the first resistance R1 and sampling module 40, and the other end is connected with the control end I/O1 of control module 30; The negative electrode of described first diode D1 is connected with the first power supply VCC1, and the anode of described first diode D1 is connected with the connected node of the first resistance R1 and sampling module 40; The negative electrode of described second diode D2 is connected with the anode of the first diode D1, the plus earth of described second diode D2; One end of described first electric capacity C1 is connected with the connected node of the first diode D1 and the second diode D2, other end ground connection.In the present embodiment, first resistance R1 and the second resistance R2 is used for carrying out dividing potential drop to the alternating voltage of input, be preferably adjustable resistance, the first diode D1 and the second diode D2 forms clamping circuit and carries out clamper to the alternating voltage inputing to C point, makes it to be converted to level signal.When input AC electricity is positive half-wave, after clamper, C point is high level signal; When input AC electricity is for negative half-wave, after clamper, C point is low level signal.First electric capacity C1 is used for carrying out filtering to sampled voltage signal.
Above-mentioned sampling module 40 specifically comprises:
Sampling unit 401, for carrying out analog sampling to the alternating voltage after superposition level;
Analog to digital converter 402, for being converted to digital voltage signal by the analog voltage signal sampled.
In the present embodiment, first analog voltage signal sampling is carried out to the alternating voltage after superposition level, then the analog voltage signal sampled is carried out analog to digital conversion, convert the digital voltage signal of needs to, the voltage data obtained is inputed in the voltage computing formula pre-set again and carry out magnitude of voltage calculating, finally obtain the virtual voltage of tested input AC electricity.
Above-mentioned processing module 50 specifically comprises:
Processing unit 501, carries out magnitude of voltage calculating for being inputed to by the alternating voltage sampled in the voltage computing formula that pre-sets.In the present embodiment, by pre-setting relevant voltage computing formula, by the data of known needs input formula, when after the voltage data sampling input AC electricity, these data being inputed in this formula, namely can calculate the voltage of tested input AC electricity.
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 examination device one embodiment thereof; Fig. 2 is the electrical block diagram of alternating current voltage of the present invention and another embodiment of zero-crossing examination device thereof; Fig. 3 is the structured flowchart of sampling module in Fig. 1 and Fig. 2; Fig. 4 is the structured flowchart of processing module in Fig. 1 and Fig. 2; Fig. 5 is the frequency detecting oscillogram that alternating current voltage of the present invention and zero-crossing examination device one embodiment thereof realize; Fig. 6 be the voltage that realizes of alternating current voltage of the present invention and zero-crossing examination device one embodiment thereof and zero point oscillogram; As shown in Figure 1, Figure 2, shown in Fig. 3, Fig. 4, Fig. 5 and Fig. 6, circuit theory of the present invention is implemented as follows:
Detect and obtain frequency and the cycle of alternating current: described first detecting module 10 and the second detecting module 20 share test side I/O2 mouth, wherein, the first detecting module 10 obtains cycle of input AC electricity by the voltage signal of test side I/O2 Real-Time Monitoring input AC electricity.Particularly, one end of first resistance R1 is connected with monitored voltage end 100, A point is between the first resistance R1 and monitored voltage end 100, namely the voltage inputing to A point is the voltage that we need to detect, input to the alternating voltage of A point after the first resistance R1 dividing potential drop, and by after the clamping action of the first diode D1 and the second diode D2, in C point generation one and electrical network same cycle, dutycycle is the square wave of 50%, the now control end I/O1 of control module 30, the test side I/O2 of the first detecting module 10 and input end I/O3 of sampling module 40 is set to input port, control module 30 can detect the frequency of alternating current by control end I/O1 or test side I/O2, suppose that frequency is 1/T, then the cycle is T.Waveform A point, B point and C point being detected as shown in Figure 5, can arrange suitable time by described cycle T and realize timing detecting input AC electricity and become zero crossing when negative half-wave or negative half-wave become positive half-wave from positive half-wave.
Obtain the zero crossing of alternating current and voltage: the second detecting module 10 becomes zero crossing when negative half-wave or negative half-wave become positive half-wave according to cycle timing detecting input AC electricity from positive half-wave, when the test side I/O2 of the second detecting module 20 detects that negative edge appears in input AC electricity, the zero crossing that input AC electricity is in negative edge can be obtained, thus achieve the detection to negative edge zero crossing.And, after the test side I/O2 of the second detecting module 20 detects the negative edge of input AC electricity, described preset time is performed by timed sequence, within described preset time period, the control end I/O1 of control module 30 is set to delivery outlet, export the current potential that high level compensates B point, namely superpose a high level to the negative half-wave of alternating current, after superposition, the voltage of C point is suitable for sampling module 30AD and samples, and now the voltage of C point is:
Uc=Ua*R2/ (R1+R2)+Ub*R1/ (R1+R2), Ua are the alternating voltage of circuit A point, and Ub is the low and high level that the control end I/O1 of control module 30 exports; By choosing suitable resistance to the first resistance R1 and the second resistance R2, reach the object of optimum voltage waveform.Like this, detection alternating current being born to half-wave voltage is just achieved.When preset time terminates, the control end I/O1 of control module 30 is set to input port, input high-impedance state, namely the high level of the negative half-wave superposition to input AC electricity is removed, make the wave recovery of negative half-wave, the test side I/O2 of the second detecting module 20 is set to rising edge triggered interrupts simultaneously, wait for that input AC electricity is become the arrival of the zero crossing of positive half-wave from negative half-wave, when there being rising edge down trigger, can obtain by the test side I/O2 of the second detecting module 20 zero crossing that input AC electricity is in rising edge.Thus achieve and achieve detection to zero crossing detecting while half-wave voltage born by alternating current.Wherein, described preset time is be set to t (t<T/2) according to the cycle detected, zero crossing when negative half-wave or negative half-wave become positive half-wave is become from positive half-wave to realize timing detecting input AC electricity, and be applied high level when preventing input AC electricity from being changed by negative half wave direction positive half-wave or input AC electricity is applied low level by positive half-wave when negative half-wave changes always, thus affect the detection of zero crossing always.
After the second detecting module 20 detects the rising edge of input AC electricity, described preset time t is performed by timed sequence, within described preset time period, the control end I/O1 of control module 30 is set to delivery outlet, output low level is to B point, namely to the positive half-wave superposition low level of input AC electricity, now detect the positive half-wave voltage of alternating current, so the voltage of C point is: Uc=Ua*R2/ (R1+R2).Like this, the detection to alternating current positive half-wave voltage is just achieved.When preset time t terminates, the control end I/O1 of control module 30 is set to input port, input high-impedance state, namely the high level that the positive half-wave of input AC electricity is superposed is removed, make the wave recovery of positive half-wave, the test side I/O2 of the second detecting module 20 is set to the negative edge triggered interrupts of input AC electricity simultaneously, wait for that input AC electricity is become the arrival of the zero crossing of negative half-wave from positive half-wave, when there being negative edge down trigger, the zero crossing of negative edge can be got by the test side I/O2 of the second detecting module 20, thus realization achieves the detection to zero crossing when detecting alternating current positive half-wave voltage.Like this, move in circles, choose the suitable time according to the cycle, after detection positive half-wave or negative half-wave voltage, be detected zero point, thus realize alternating voltage and zero crossing real-time, accurately detect.The waveform of A point, B point and C point detected as shown in Figure 6.
In sum, the voltage of alternating current A point by carrying out AD sampling in real time to C point voltage, can obtain the voltage U c of C point, by computing, reaches the object detected alternating voltage Ua.
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 based on said apparatus realization and zero-crossing examination method thereof.With reference to the schematic flow sheet that Fig. 7 and Fig. 8, Fig. 7 are alternating current voltage of the present invention and zero-crossing examination 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 examination method thereof.The alternating current voltage that the present invention proposes and zero-crossing examination method thereof comprise the following steps:
The voltage signal of step S10, Real-Time Monitoring input AC electricity also obtains cycle of input AC electricity; First Real-Time Monitoring is carried out to input AC electricity in the present embodiment, in the process of monitoring, detect further the frequency of input ac voltage and cycle and obtain.
Step S20, become from positive half-wave the zero crossing that negative half-wave or negative half-wave become positive half-wave according to cycle timing detecting input AC electricity; In the present embodiment, arrange according to the cycle detected the zero crossing that alternating current is detected in reasonable time timing, this zero crossing comprises zero crossing when becoming negative half-wave from positive half-wave, and zero crossing when becoming positive half-wave from negative half-wave.Particularly, first clamper is carried out to input AC electricity, make it to be converted to level signal.When input AC electricity is positive half-wave, after clamper, obtain high level signal; When input AC electricity is for negative half-wave, after clamper, obtain low level signal.The time of the level state that detecting input AC electricity is formed after clamper was set according to the cycle, when detecting the level of input AC electricity after clamper and occurring negative edge (becoming low level from high level), then judge the zero crossing now being become negative half-wave as input AC electricity from positive half-wave; When detecting the level of input AC electricity after clamper and occurring rising edge (becoming high level from low level), then judge the zero crossing now being become positive half-wave as input AC electricity from negative half-wave.
Step S30, for when described alternating current becomes negative half-wave from positive half-wave, preset time period in a high level is superposed to the negative half-wave of alternating current; When described alternating current from bear half-wave become positive half-wave time, preset time period in a low level is superposed to the positive half-wave of alternating current;
In the present embodiment, when there is negative edge in the level of input AC electricity after clamper, within the time period of presetting, a high level is superposed to the negative half-wave of alternating current, when there is rising edge in the level of input AC electricity after clamper, within the time period of presetting, a low level is superposed, like this for preparing to effective voltage by real-time sampling to the positive half-wave of alternating current.Wherein, the time period of presetting is traditionally arranged to be the time being less than half ac period, to prevent alternating current to be applied high level or alternating current when half wave direction positive half-wave changes and to be applied low level by positive half-wave by bearing when negative half-wave changes always always, thus affect the detection of crossover point signal; When preset time terminates, remove the low and high level of superposition, positive half-wave or negative half-wave is made to be applied the wave recovery of low and high level, and when detecting the level of input AC electricity after clamper and occurring the triggering of negative edge or rising edge, obtain zero crossing when negative edge or rising edge triggering, thus achieve the accurate detection to zero crossing.
It should be noted that when detecting that crossover point signal is in negative edge, voltage when being in negative half-wave is negative, is unfavorable for sampling, by superposing a high level to the negative half-wave of alternating current, enables to detect voltage when alternating current is in negative half-wave; When detecting that crossover point signal is in rising edge, for preventing level too high, being unfavorable for sampling, so by superposing the current potential that a low level drags down positive half-wave to the positive half-wave of alternating current, enabling to detect voltage when alternating current is in positive half-wave.
Step S40, to superposition level after alternating voltage carry out AD sampling; In the present embodiment, according to the difference of phase place, carry out AD sampling by the positive and negative half-wave of AD thief hatch to the alternating current after superposition varying level, the simulating signal sampled so directly can be converted to the digital signal that we need, and can reduce circuit cost.Wherein, the voltage due to negative half-wave is negative, is unfavorable for that AD samples, so by sampling effective voltage information to after negative half-wave superposition high level; When current potential due to positive half-wave is too high, be unfavorable for that AD samples equally, so superpose a low level to drag down the current potential of positive half-wave to the positive half-wave of alternating current, thus conveniently voltage AD sampled.
The alternating voltage that step S50, basis sample carries out magnitude of voltage calculating.In the present embodiment, inputed in the voltage computing formula pre-set by the voltage data that AD is sampled and carry out magnitude of voltage calculating, thus obtain the voltage of tested input AC electricity.
The inventive method is by the voltage signal of Real-Time Monitoring input AC and obtain cycle of input AC electricity, becomes the zero crossing that negative half-wave or negative half-wave become positive half-wave according to cycle timing detecting input AC electricity from positive half-wave; When described alternating current becomes negative half-wave from positive half-wave, within the time period of presetting, a high level is superposed to the negative half-wave of alternating current; When described alternating current from bear half-wave become positive half-wave time, preset time period in a low level is superposed to the positive half-wave of alternating current; AD sampling is carried out to the alternating voltage after superposition level, then carries out magnitude of voltage calculating according to the alternating voltage sampled, thus achieve the accurate detection achieving zero crossing while detecting the positive and negative half-wave voltage of alternating current in real time.
Above-mentioned steps S20 specifically comprises:
Described input AC electricity is carried out clamper, converts low and high level to;
According to rising edge and the negative edge of the level after described cycle timing detecting clamper; Described rising edge is input AC electricity is become positive half-wave zero crossing from negative half-wave, and described negative edge is exchange input electricity is become negative half-wave zero crossing from positive half-wave.
In the present embodiment, first clamper is carried out to input AC electricity, make it to be converted to level signal.When input AC electricity is positive half-wave, after clamper, obtain high level signal; When input AC electricity is for negative half-wave, after clamper, obtain low level signal.The time of the level state that detecting input AC electricity is formed after clamper was set according to the cycle, when detecting the level of input AC electricity after clamper and occurring negative edge (becoming low level from high level), then judge the zero crossing now being become negative half-wave as input AC electricity from positive half-wave; When detecting the level of input AC electricity after clamper and occurring rising edge (becoming high level from low level), then judge the zero crossing now being become positive half-wave as input AC electricity from negative half-wave.
Above-mentioned steps S40 specifically comprises:
Step S401, to superposition level after alternating voltage carry out analog sampling;
Step S402, the analog voltage signal sampled is converted to digital voltage signal.
In the present embodiment, first analog voltage signal sampling is carried out to the alternating voltage after superposition level, then the analog voltage signal sampled is carried out analog to digital conversion, convert the digital voltage signal of needs to, the voltage data obtained is inputed in the voltage computing formula pre-set again and carry out magnitude of voltage calculating, finally obtain the virtual voltage of tested input AC electricity.
Above-mentioned steps S50 specifically comprises:
The alternating voltage sampled is inputed in the voltage computing formula pre-set and carries out magnitude of voltage calculating.In the present embodiment, by pre-setting relevant voltage computing formula, by the data of known needs input formula, when after the voltage data sampling input AC electricity, these data being inputed in this formula, namely can calculate the voltage of tested input AC electricity.
The foregoing is only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (8)

1. alternating current voltage and a zero-crossing examination device thereof, is characterized in that, described alternating current voltage and zero-crossing examination device thereof comprise the first detecting module, the second detecting module, control module, sampling module and processing module; Wherein,
First detecting module, for Real-Time Monitoring input AC electricity voltage signal and obtain cycle of input AC electricity;
Second detecting module, for becoming from positive half-wave the zero crossing that negative half-wave or negative half-wave become positive half-wave according to cycle timing detecting input AC electricity;
Control module, for when described alternating current becomes negative half-wave from positive half-wave, superposes a high level to the negative half-wave of alternating current within the time period of presetting; When described alternating current from bear half-wave become positive half-wave time, preset time period in a low level is superposed to the positive half-wave of alternating current;
Sampling module, for carrying out AD sampling to the alternating voltage after superposition level;
Processing module, for carrying out magnitude of voltage calculating according to the alternating voltage sampled.
2. alternating current voltage as claimed in claim 1 and zero-crossing examination device thereof, is characterized in that, also comprise: the first power supply, the first resistance, the second resistance, the first diode, the second diode and the first electric capacity; One end of described first resistance is connected with tested voltage end, and for inputting tested alternating voltage, the other end is connected with the input end of sampling module and is connected with the test side of the first detecting module; One end of described second resistance is connected with the connected node of the 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 the first power supply, and the anode of described first diode is connected with the connected node of the first resistance and sampling module; The negative electrode of described second diode is connected with the anode of the first diode, the plus earth of described second diode; One end of described first electric capacity is connected with the connected node of the first diode and the second diode, other end ground connection.
3. alternating current voltage as claimed in claim 1 and zero-crossing examination device thereof, it is characterized in that, described sampling module specifically comprises:
Sampling unit, for carrying out analog sampling to the alternating voltage after superposition level;
Analog to digital converter, for being converted to digital voltage signal by the analog voltage signal sampled.
4. alternating current voltage as claimed in claim 1 and zero-crossing examination device thereof, it is characterized in that, described processing module specifically comprises:
Processing unit, carries out magnitude of voltage calculating for being inputed to by the alternating voltage sampled in the voltage computing formula that pre-sets.
5. alternating current voltage and a zero-crossing examination method thereof, is characterized in that, said method comprising the steps of:
The voltage signal of Real-Time Monitoring input AC electricity also obtains cycle of input AC electricity;
Become from positive half-wave the zero crossing that negative half-wave or negative half-wave become positive half-wave according to cycle timing detecting input AC electricity;
When described alternating current becomes negative half-wave from positive half-wave, within the time period of presetting, a high level is superposed to the negative half-wave of alternating current; When described alternating current from bear half-wave become positive half-wave time, preset time period in a low level is superposed to the positive half-wave of alternating current;
AD sampling is carried out to the alternating voltage after superposition level;
Magnitude of voltage calculating is carried out according to the alternating voltage sampled.
6. alternating current voltage and zero-crossing examination method thereof as claimed in claim 5, is characterized in that, describedly becomes from positive half-wave the zero crossing that negative half-wave or negative half-wave become positive half-wave according to cycle timing detecting input AC electricity and specifically comprises:
Described input AC electricity is carried out clamper, converts low and high level to;
According to rising edge and the negative edge of the level after described cycle timing detecting clamper; Described rising edge is input AC electricity is become positive half-wave zero crossing from negative half-wave, and described negative edge is exchange input electricity is become negative half-wave zero crossing from positive half-wave.
7. alternating current voltage as claimed in claim 5 and zero-crossing examination method thereof, is characterized in that, describedly carries out AD sampling to the alternating voltage after superposition level and specifically comprise:
Analog sampling is carried out to the alternating voltage after superposition level;
The analog voltage signal sampled is converted to digital voltage signal.
8. alternating current voltage as claimed in claim 5 and zero-crossing examination 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 sampled is inputed in the voltage computing formula pre-set and carries out magnitude of voltage calculating.
CN201310117752.1A 2013-04-07 2013-04-07 Alternating current voltage and zero-crossing examination device and method thereof Expired - Fee Related CN103217572B (en)

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 CN103217572A (en) 2013-07-24
CN103217572B true 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)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109799384B (en) * 2017-11-16 2020-11-20 佛山市顺德区美的电热电器制造有限公司 Voltage zero-crossing detection method and device and cooking appliance
CN108037348B (en) * 2017-11-27 2020-04-14 深圳市锐钜科技有限公司 Single-phase alternating current zero-crossing detection method
CN108169546B (en) * 2017-12-29 2024-03-19 上海盐巴信息科技有限公司 Zero-crossing detection system of alternating current and electronic equipment with same
CN109668735B (en) * 2018-12-11 2021-08-03 中国航空工业集团公司西安航空计算技术研究所 Method, device and circuit for determining phase reference of engine rotor
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
CN110850151B (en) * 2019-11-04 2022-04-12 易事特集团股份有限公司 Zero-crossing determination method and zero-crossing determination device
CN114814343B (en) * 2022-04-06 2023-12-12 上海正泰智能科技有限公司 Method for detecting zero crossing point based on double waveform capture

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4109288A (en) * 1976-12-09 1978-08-22 Ncr Corporation Overload protection system
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8638105B2 (en) * 2010-11-09 2014-01-28 The Boeing Company Cell telemetry sample and hold amplifier

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4109288A (en) * 1976-12-09 1978-08-22 Ncr Corporation Overload protection system
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)

* Cited by examiner, † Cited by third party
Title
电网电压过零检测及倍频电路的研究与实现;王庆华等;《江苏技术师范学院学报》;20110630;第17卷(第6期);第47-51页 *

Also Published As

Publication number Publication date
CN103217572A (en) 2013-07-24

Similar Documents

Publication Publication Date Title
CN103217572B (en) Alternating current voltage and zero-crossing examination device and method thereof
CN105158592B (en) Three phase network impedance real-time detection method under power network asymmetrical
JP2017530672A (en) Grid tie inverter safety detection device and method
CN202583311U (en) Alternating current zero-crossing detection circuit
WO2013155844A1 (en) Three-phase ac phase-sequence detection method and device
CN101900751B (en) Detection method of real-time voltage vectors in energy feedback unit
CN104820127A (en) Metal oxide arrester resistance current extracting method and device
CN103439587A (en) Three-phase alternating current detecting method
CN101819261B (en) Three-phase source phase failure and power failure detection circuit
CN104267273A (en) Quick detection circuit and method for mains fluctuation
CN203799008U (en) Pillar type electronic current transformer primary vibration test data acquisition device
CN101713799A (en) Method for distinguishing three-phase alternating current phase sequences
CN104065070B (en) A kind of digital monocyclic phase method based on compensation of delay controls Active Power Filter-APF
CN107765084B (en) Universal voltage input power frequency signal frequency measurement system
CN201383000Y (en) Electric energy meter detecting device
CN102749523B (en) Direct-current ground resistance detection circuit applied to photovoltaic inverter system
CN202710661U (en) DC grounding resistor detection circuit applied to photovoltaic inverter system
CN204166058U (en) A kind of city electro-mechanical wave quick detection circuit
CN104280593A (en) Quick harmonic and reactive current detection method based on instantaneous reactive power theory
Zaro et al. Characterization of short-duration voltage events
CN103344894B (en) A kind of UHV (ultra-high voltage) operation signal acquiring system
CN203377584U (en) Three-phase non-midline phase-lack, undervoltage and overvoltage protection circuit
CN206114841U (en) Portable high -voltage inverter power unit comprehensive testing device
CN104660243A (en) Method and device for converting small-amplitude alternating-current signal into direct-current signal
CN104090162A (en) Method for measuring system voltage and current angles without voltage transformer

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