CN104049143B - A kind of city's electric detection means and detection method - Google Patents
A kind of city's electric detection means and detection method Download PDFInfo
- Publication number
- CN104049143B CN104049143B CN201410277502.9A CN201410277502A CN104049143B CN 104049143 B CN104049143 B CN 104049143B CN 201410277502 A CN201410277502 A CN 201410277502A CN 104049143 B CN104049143 B CN 104049143B
- Authority
- CN
- China
- Prior art keywords
- comparator
- civil power
- resistance
- city
- detection method
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 51
- 230000000630 rising effect Effects 0.000 claims abstract description 8
- 238000007493 shaping process Methods 0.000 claims abstract description 4
- 230000005611 electricity Effects 0.000 claims description 4
- 238000010276 construction Methods 0.000 abstract 1
- 238000005406 washing Methods 0.000 description 4
- 238000001914 filtration Methods 0.000 description 2
- 239000003990 capacitor Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Manipulation Of Pulses (AREA)
- Measurement Of Current Or Voltage (AREA)
Abstract
The invention discloses a kind of city's electric detection means and its detection method, city's electric detection means includes, and by the diode D1 numbers of winning the confidence on civil power input N lines, comparator first input end is sent into after obtaining V1 through partial pressure after diode D1 half-wave shapings;The input of comparator second is setting comparison voltage V2, and the output signal of comparator output terminal gives MCU external interrupt mouthful;Work as V1>Then comparator exports low level during V2, otherwise exports high level.Civil power detection method includes, and recognizes mains frequency;Recognize rising edge to interrupt after generation and postpone the △ t times, so as to obtain the zero signal time;It is equal according to comparator output level upset point moment comparator input voltage, calculate current line voltage amplitude.The present invention can detect the frequency, zero point and voltage magnitude of current civil power simultaneously.The device circuit is simple in construction, and required component is few, and cost is low, and detection method is quick, accuracy is high.It is worthy of popularization.
Description
Technical field
The present invention relates to the detection technique of mains supply, more particularly to a kind of zero point of civil power, frequency and amplitude detection dress
Put and detection method.
Background technology
The dependence mains-supplied work of household electrical appliance, such as washing machine etc, to better conform to the fluctuation of civil power operating voltage,
Household electrical appliances generally require the detection for carrying out civil power zero passage and voltage magnitude.The city's electro-detection zero passage and voltage magnitude of in the market washing machine
Detection, is divided into zero cross detection circuit module more and voltage detection circuit module carries out independent detection process.So add hardware
Cost, takes extra processor port.
The content of the invention
The technical problems to be solved by the invention are to provide a kind of city's electric detection means and detection method, while realizing zero passage
And voltage magnitude detection.
In order to solve the above technical problems, the present invention provides a kind of city's electric detection means, including detection circuit and microprocessor
MCU, the detection circuit includes diode D1, resistance R1, R2, comparator;Pass through the diode D1 on civil power input N lines
The number of winning the confidence, sends into comparator first input end, comparator second is defeated after obtaining V1 through R1, R2 partial pressure after diode D1 half-wave shapings
It is setting comparison voltage V2 to enter end, and the output signal of comparator output terminal gives MCU external interrupt mouthful;The high level VCC
It is connected with L lines, after the N line numbers of winning the confidence after D1, R1, R2 with flowing into power supply, high level VCC with flowing into power supply after R3, R4;Work as V1
>Then comparator exports low level during V2, otherwise exports high level.
It is preferred that, the detection circuit also includes resistance R3, R4, and the V2 is R3 and R4 partial pressure.
It is further preferred that the detection circuit is pull-up resistor also including resistance R5, R5, R5 is connected to the comparator
Between output end and high level VCC.
It is furthermore preferred that the detection circuit also includes resistance R6 and electric capacity C1, the output signal of the comparator output terminal
Via the external interrupt mouthful that MCU is given after R6 and C1 filtering.
The civil power detection method of above-mentioned city's electric detection means, comprises the following steps:
The time interval of double trailing edge Port interrupts is recognized, i.e., current trailing edge, which is interrupted, to be produced to next trailing edge
The time interval of generation, is civil power cycle T, then half wave cycles are T/2;Mains frequency F is then F=1/T;
Recognize that current trailing edge interrupts the time interval interrupted with next rising edge, as comparator input voltage be higher than than
Compared with the time t that device sets voltageK;Due to the symmetry of civil power sinusoidal signal, then the delay △ t times are after rising edge interruption is produced
Civil power zero crossing time, then △ t=(T/2-tK)/2;So as to obtain the zero signal time;
Comparator output level upset point moment tR=(T/2-tK)/2, comparator input voltage is equal during the upset moment;Then
V1=V2;V1=Vm*sin (2 π ω T) * R2/ (R1+R2),
That is Vm=V2/ [sin (2 π ω T) * R2/ (R1+R2)], calculates current line voltage amplitude.
The V2=VCC*R3/ (R3+R4), then
Vm=VCC*R3/ (R3+R4)/[sin (2 π ω T) * R2/ (R1+R2)].
City's electric detection means and detection method that the present invention is provided, the frequency, zero point and electricity of current civil power can be detected simultaneously
Pressure amplitude value.Component needed for the device is few, and cost is low, and detection is quick, accuracy is high.It is worthy of popularization.
Brief description of the drawings
Technical scheme is further described in detail with reference to the accompanying drawings and detailed description.
Fig. 1 is the structure principle chart of city's electric detection means of the present invention.
Fig. 2 is the waveform analysis figure that three kinds of voltage civil powers pass through comparator.
Embodiment
Present embodiment is exemplified by applied to the detection of the civil power of washing machine.As shown in figure 1, city's electric detection means includes
Detect circuit and Micro-processor MCV, the detection circuit includes diode D1, resistance R1, R2, R3, R4, R5, R6, comparator and
Filter capacitor C1.By the diode D1 numbers of winning the confidence on civil power input N lines, through R1, R2 points after diode D1 half-wave shapings
Pressure obtains and comparator first input end is sent into after V1, and R1, R2 resistance value ensure the maximum input electricity of comparator first input end
Pressure is less than comparator operating voltage, and the input of comparator second is setting comparison voltage V2, and V2 is R3 and R4 partial pressure, comparator
The output signal of output end is via the external interrupt mouthful that MCU is given after R6 and C1 filtering, and R5 is pull-up resistor;VCC and L line phases
Connect, after the N line numbers of winning the confidence after D1, R1, R2 with flowing into power supply, high level VCC with flowing into power supply after R3, R4;Work as V1>During V2 then
Comparator exports low level, otherwise exports high level, and Vm is civil power crest voltage.
Input voltage V1=Vm*sin (2 π ω T) * R2/ (R1+R2), V2=5*R3/ (R3+ of comparator first input end
), R4 V1 is worked as>Then comparator exports low level during V2, otherwise exports high level, and Vm is civil power crest voltage.
The present invention by foregoing circuit produce compares output, by software scenario can obtain current civil power frequency, zero
Point and amplitude, are implemented as follows:
Mains frequency is recognized:As shown in Fig. 2 recognizing the time interval of double trailing edge Port interrupts by MCU, i.e.,
For civil power cycle T, as current trailing edge interrupts the time interval for producing and being produced to next trailing edge;Then half wave cycles are T/2;
Mains frequency F is then F=1/T.
City's electrical zero identification:Interrupted according to current trailing edge and determine that comparator is inputted with interval of next rising edge break period
Voltage sets the time t of voltage higher than comparatorK, sine curve 3, sine curve 2, sine curve 1 represent line voltage respectively
Vm from low to high, while also correspond to time t1, t2, t3 that comparator input voltage sets voltage higher than comparator respectively, and t1<
t2<t3.Due to civil power sinusoidal signal symmetry then rising edge interrupt produce after the delay △ t times be city's electrical zero, then △ t=
(T/2-t1)/2;So as to indirect gain zero signal, the triggering of performer is carried out.
Line voltage is recognized:Due to the symmetry of civil power sinusoidal signal, then in current trailing edge interruption and next rising edge
Disconnected upset point moment tR=(T/2-tK)/2;Comparator input voltage is equal when comparator output level is overturn, V1=V2;I.e.
V1=Vm*sin (2 π wT) * R2/ (R1+R2)=V2=5*R3/ (R3+R4),
That is Vm=5*R3/ (R3+R4)/[sin (2 π ω T) * R2/ (R1+R2)],
Current line voltage amplitude is calculated, so that it is determined that current voltage.
So, according to line voltage detection carry out voltage superelevation, it is ultralow report an error, and done washing according to the different adjustment of voltage section
Program makes laundry effect optimal, cleans than optimal.
It should be noted last that, above embodiment is merely illustrative of the technical solution of the present invention and unrestricted,
Although the present invention is described in detail with reference to preferred embodiment, it will be understood by those within the art that, can be right
Technical scheme is modified or equivalent substitution, and without departing from the spirit and scope of technical solution of the present invention, its is equal
It should cover among scope of the presently claimed invention.
Claims (4)
1. a kind of civil power detection method based on city's electric detection means, it is characterised in that city's electric detection means includes detection
Circuit and Micro-processor MCV, the detection circuit include diode D1, resistance R1, R2, resistance R3, R4, comparator;In civil power
Input on N lines by the diode D1 numbers of winning the confidence, sent into after obtaining V1 through resistance R1, R2 partial pressure after diode D1 half-wave shapings
Comparator first input end, the input of comparator second is setting comparison voltage V2, and the V2 is R3 and R4 partial pressure, comparator
The output signal of output end gives MCU external interrupt mouthful;High level VCC is connected with L lines, after the N line numbers of winning the confidence through diode D1,
Power supply is flowed into after resistance R1, R2, high level VCC with flowing into power supply after resistance R3, R4;Work as V1>Then comparator is exported during V2
Low level, otherwise output high level;
The civil power detection method comprises the following steps:
The time interval of double trailing edge Port interrupts is recognized, i.e., current trailing edge is interrupted to produce to next trailing edge and produced
Time interval, be civil power cycle T, then half wave cycles be T/2;Mains frequency F is then F=1/T;
Recognize that current trailing edge interrupts the time interval interrupted with next rising edge, as comparator input voltage is higher than comparator
Set the time t of voltageK;Due to the symmetry of civil power sinusoidal signal, then rising edge, which is interrupted, postpones the △ t times for civil power after generation
Zero crossing time, then △ t=(T/2-tK)/2;So as to obtain the zero signal time;
Comparator output level upset point moment tR=(T/2-tK)/2, comparator input voltage is equal during the upset moment;Then V1=
V2;V1=Vm*sin (2 π ω T) * R2/ (R1+R2),
That is Vm=V2/ [sin (2 π ω T) * R2/ (R1+R2)], calculates current line voltage amplitude.
2. the civil power detection method according to claim 1 based on city's electric detection means, it is characterised in that the detection electricity
Road also includes resistance R5, and resistance R5 is pull-up resistor, and resistance R5 is connected between the comparator output terminal and high level VCC.
3. the civil power detection method according to claim 1 based on city's electric detection means, it is characterised in that the detection electricity
Road also includes resistance R6 and electric capacity C1, and the output signal of the comparator output terminal is given after being filtered via resistance R6 and electric capacity C1
MCU external interrupt mouthful.
4. the civil power detection method according to claim 1 based on city's electric detection means, it is characterised in that the V2=
VCC*R3/ (R3+R4), then
Vm=VCC*R3/ (R3+R4)/[sin (2 π ω T) * R2/ (R1+R2)].
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410277502.9A CN104049143B (en) | 2014-06-19 | 2014-06-19 | A kind of city's electric detection means and detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410277502.9A CN104049143B (en) | 2014-06-19 | 2014-06-19 | A kind of city's electric detection means and detection method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104049143A CN104049143A (en) | 2014-09-17 |
CN104049143B true CN104049143B (en) | 2017-10-31 |
Family
ID=51502236
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410277502.9A Active CN104049143B (en) | 2014-06-19 | 2014-06-19 | A kind of city's electric detection means and detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104049143B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109917177B (en) * | 2019-04-12 | 2021-02-02 | 国网江苏省电力有限公司宿迁供电分公司 | Anti-interference zero-crossing detection circuit and detection method |
CN111366779A (en) * | 2020-04-24 | 2020-07-03 | 宁波奥克斯电气股份有限公司 | Voltage zero-crossing detection device and air conditioner |
CN112345812A (en) * | 2020-09-25 | 2021-02-09 | 华东光电集成器件研究所 | Amplifier signal amplitude-frequency detection circuit |
CN112305299B (en) * | 2020-10-19 | 2021-11-12 | 珠海格力电器股份有限公司 | Alternating current sampling device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202583311U (en) * | 2012-04-13 | 2012-12-05 | Tcl空调器(中山)有限公司 | Alternating current zero-crossing detection circuit |
CN203204062U (en) * | 2013-02-22 | 2013-09-18 | 九阳股份有限公司 | Comparator-based voltage signal detection circuit |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2767328B2 (en) * | 1991-07-12 | 1998-06-18 | ミヤチテクノス株式会社 | Resistance welding control device and resistance welding measuring device |
CN2445331Y (en) * | 2000-08-08 | 2001-08-29 | 张洪羿 | Actual effect kilo-watt-hour meter box for avoiding electric burglar |
CN2754253Y (en) * | 2004-06-23 | 2006-01-25 | 新疆新能源股份有限公司 | Silicon controlled rectifier charging circuit |
CN103389407A (en) * | 2013-07-29 | 2013-11-13 | Tcl空调器(中山)有限公司 | Mains supply detecting device |
CN204008849U (en) * | 2014-06-19 | 2014-12-10 | 合肥荣事达三洋电器股份有限公司 | A kind of city electric detection means |
-
2014
- 2014-06-19 CN CN201410277502.9A patent/CN104049143B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202583311U (en) * | 2012-04-13 | 2012-12-05 | Tcl空调器(中山)有限公司 | Alternating current zero-crossing detection circuit |
CN203204062U (en) * | 2013-02-22 | 2013-09-18 | 九阳股份有限公司 | Comparator-based voltage signal detection circuit |
Also Published As
Publication number | Publication date |
---|---|
CN104049143A (en) | 2014-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104049143B (en) | A kind of city's electric detection means and detection method | |
CN104868769B (en) | PWM carrier wave motor synchronizing control method based on voltage zero-crossing point of power grid and synchronous modulation | |
CN101871982B (en) | Method and circuit for detecting phase sequence and asymmetrical voltage of three phase current | |
CN202583311U (en) | Alternating current zero-crossing detection circuit | |
CN107957514B (en) | Zero-crossing detection device and method and electric appliance | |
CN103217572B (en) | Alternating current voltage and zero-crossing examination device and method thereof | |
CN103259487B (en) | The method of Frequency Converter Control motor and frequency converter | |
CN102841247A (en) | Detection method for grid frequency | |
CN105576453B (en) | A kind of intelligent and safe wiring board and its control method | |
CN106533151B (en) | The control method and device of partial PFC circuit, household electrical appliance | |
CN204008849U (en) | A kind of city electric detection means | |
CN104201938B (en) | Frequency converter soft start method based on CPLD | |
CN107807272A (en) | Single-phase alternating current zero cross detection circuit and detection method based on transformer isolation | |
CN103887978A (en) | Switch power source and switch power source integration circuit | |
CN105676049A (en) | Circuit for detecting poor grounding | |
CN206379719U (en) | Overcurrent protection peripheral circuit and electrical equipment | |
CN103376408B (en) | The test macro of PG motor and method of testing | |
CN203377584U (en) | Three-phase non-midline phase-lack, undervoltage and overvoltage protection circuit | |
CN205941675U (en) | Zero crossing point capturing device | |
CN103592511B (en) | A kind of circuit detecting ac power frequency | |
CN203551649U (en) | Real-time detection circuit for over-current protection of frequency converter | |
CN103018580B (en) | Method and device for detecting vector transformation of three-phase power phase sequence | |
CN106371026A (en) | Customized battery recognition method and system | |
CN103904921B (en) | Device controlling conversion of alternating current and direct current | |
CN103675672A (en) | Pressure switch state detection circuit, circuit board, and electric heating product with circuit board |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C53 | Correction of patent of invention or patent application | ||
CB02 | Change of applicant information |
Address after: 230088 Hefei high tech Industrial Development Zone, Anhui, No. L-2 Applicant after: Whirlpool (China) Limited by Share Ltd Address before: 230000 science and technology zone, Hefei, Anhui, No. 96 Applicant before: Hefei Rongshida Sanyo Electric Co., Ltd. |
|
COR | Change of bibliographic data |
Free format text: CORRECT: APPLICANT; FROM: HEFEI RONGSHIDA SANYO ELECTRIC CO., LTD. TO: WHIRLPOOL (CHINA) CO., LTD. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |