CN107238750B - A kind of network wave method for detecting based on operational amplifier circuit - Google Patents

A kind of network wave method for detecting based on operational amplifier circuit Download PDF

Info

Publication number
CN107238750B
CN107238750B CN201710400358.7A CN201710400358A CN107238750B CN 107238750 B CN107238750 B CN 107238750B CN 201710400358 A CN201710400358 A CN 201710400358A CN 107238750 B CN107238750 B CN 107238750B
Authority
CN
China
Prior art keywords
sampling
value
operational amplifier
point
amplifier circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710400358.7A
Other languages
Chinese (zh)
Other versions
CN107238750A (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.)
Wotai Energy Co.,Ltd.
Original Assignee
NEOVOLTAIC ENERGY NANTONG 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 NEOVOLTAIC ENERGY NANTONG CO Ltd filed Critical NEOVOLTAIC ENERGY NANTONG CO Ltd
Priority to CN201710400358.7A priority Critical patent/CN107238750B/en
Publication of CN107238750A publication Critical patent/CN107238750A/en
Application granted granted Critical
Publication of CN107238750B publication Critical patent/CN107238750B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/25Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention discloses a kind of network wave method for detecting based on operational amplifier circuit, cooperate using a kind of circuit for detecting and detects, power grid sine wave is become into synchronous square wave using an operational amplifier circuit, to obtain grid cycle value, another operational amplifier circuit is recycled to compress power grid, it is sampled by the AD sample port of main control chip according to preset sampling number N, sampling period value is obtained simultaneously, square wave is captured by input capture interrupt circuit, then indicate that the moment is power grid zero crossing when there is rising edge, the sampled point at the moment is just sent into sampling window as first first sampling point by AD sample port, the subsequent sampling that N number of point is carried out according to sampling period value, and the sampling of each point covers previous sampling point value in sampling window, this operation may insure in sampling window each time Periodic waveform starting point be zero crossing, and sampled point quantity is always N in sampling window, and waveform synchronizes always.

Description

A kind of network wave method for detecting based on operational amplifier circuit
Technical field
The present invention relates to network wave detecting more particularly to a kind of network wave method for detecting based on operational amplifier circuit.
Background technique
In recent years, increasingly mature with household energy-storage system technology, there is cleaning, convenient, intelligentized electric power to be sent into Huge numbers of families.But it is different user and is in different power grid environments, the good job of power grid quality has also directly influenced energy storage Whether system can bring clean, the healthy energy to user.For example the increase of mains by harmonics content will will lead to the electrical equipment longevity Life shorten, or even damage, network loss increase, system occur harmonic resonance a possibility that increase, while may cause relay protection and A series of problems, such as being disturbed, is not allowed and is communicated to automatic device malfunction, instrument instruction and watt metering.If power grid quality is very Difference, and user is mounted with household energy-storage system, damages the electrical equipment lost of life even because of power grid quality difference, energy storage system System also collapses therewith, causes irremediable loss, so needing a kind of safe and reliable, automation network wave detecting side Method monitors the health index of power grid.
Power grid has the multiple parameters such as voltage, electric current, frequency, power, but the calculating of these parameters is needed to network wave It can just be obtained after carrying out the acquisition of a cycle.
Summary of the invention
To overcome the shortcomings of existing technologies, the present invention provides a kind of network wave method for detecting based on operational amplifier circuit, By the setting to first sampling point in sampling window, so that sampling point value is accurate in sampling window, sampling number is fixed and wave Just as step, so that power grid can judge grid health index 1/5 period.
Present invention discloses a kind of network wave circuit for detecting, including main control chip MCU, AD to sample operational amplifier circuit connection master The AD sample port of chip MCU is controlled, input capture operational amplifier circuit connects the port I/O of main control chip MCU, and wherein AD samples amplifier Circuit connection power grid, realizes the compression to network wave, and input capture operational amplifier circuit tie point net is formed synchronous with network wave Square wave.
A kind of network wave method for detecting based on operational amplifier circuit, including following content:
A, it is connect using input capture operational amplifier circuit with power grid, forms the square wave synchronous with network wave, sampled using AD Operational amplifier circuit is connect with power grid, forms the sine wave that and amplitude synchronous with network wave reduces;
B, input capture operational amplifier circuit is connected using the port I/O of main control chip, opens the input capture in main control chip It interrupts, the square wave that detection input capture operational amplifier circuit is formed simultaneously calculates acquisition square-wave cycle T;
C, operational amplifier circuit is sampled using the AD sample port connection AD of main control chip, according to sampling period t to network voltage It is sampled, wherein AD sampling period t=T/N, N is the sampling number in preset a cycle;
D, instantaneous electricity of the special memory block as sampling window to sampled point N number of in a cycle is set in main control chip Pressure value umIt is stored, wherein instantaneous voltage value um=ADData register value*ADAccuracy value*ADReference voltage value* L, m=1 ~ N, L indicate operational amplifier circuit Ratio value, is 1:100, which calculates storage in sampling when carrying out AD sampling;
E, it is calculated by the instantaneous voltage value that step d is obtained and obtains average value, and obtain instantaneous voltage value offset u0=, it is 0, and obtain virtual voltage according to the instantaneous voltage value offset that A, which indicates the average voltage under reference waveform, Value us=um-u0
F, set the memory range of special memory block as a cycle, inside can only store N number of sample amplitude when reproduced value, be The starting point for ensuring special memory block is grid cycle zero crossing, has been arranged in input capture interruption and has deposited trigger point, the triggering Point is the rising edge of square wave, when input capture interruption detects rising edge, then it represents that the moment is storage trigger point, from the moment The sampled value of each sampled point started is stored to special memory block, forms the electricity of N number of sampled point an of grid cycle Pressure value;
G, as power grid changes, the correspondence that N number of sampled value in subsequent cycle is covered one by one in original special memory block is adopted The sampled value of sampling point;
H, analytical cycle is set as T/5, when carrying out new round periodic sampling, when sampling number proceeds to N/5 from 1, Sampling point value progress virtual value calculating to 1/5 period, acquisition virtual value u=, by having for 1/5 period Valid value is compared with standard value, and is judged whether in deviation range, so as to detect power grid quality in advance.
A kind of disclosed network wave method for detecting based on operational amplifier circuit, will realize that 1/5 period can Power grid quality health is judged, the maximum difficult point of power grid quality, which is how to guarantee sampling window, to be judged for 1/5 period Interior starting sample point is the zero crossing of grid cycle, guarantees that sampling point value is accurate in sampling window, and quantity is certain and synchronous waveform, For this difficult point, present invention employs a kind of cooperations of circuit for detecting to detect, wherein using an operational amplifier circuit that power grid is sinusoidal Wave becomes synchronous square wave, to obtain grid cycle value, recycles another operational amplifier circuit to compress power grid, passes through master The AD sample port of control chip is sampled according to preset sampling number N, while obtaining sampling period value, passes through input capture Interrupt circuit captures square wave, then indicates that the moment is power grid zero crossing when there is rising edge, AD sample port just will The sampled point feeding sampling window at the moment is subsequent to carry out N number of point according to sampling period value as first first sampling point Sampling, and the sampling of each point covers previous sampling point value in sampling window, this operation may insure to sample Periodic waveform starting point in window each time is zero crossing, and sampled point quantity is always N in sampling window, and waveform begins It is synchronous eventually.
Have on this basis by the virtual value of the sampling number to 1/5 period 1/5 period corresponding with reference waveform Valid value is compared, so that it may make power grid quality judgement, be judged without carrying out whole cycle acquisition operation.
Compared with prior art, a kind of network wave method for detecting and method based on operational amplifier circuit of the invention, has Following usefulness:
May be implemented for 1/5 period quickly detects power grid quality, for the power grid of 50Hz, can quickly detect within 4ms Electric network fault out sets sampling window, passes through the control to first sampling point, it is ensured that it is zero crossing, is subsequent sampling operation Reliable guarantee is provided, power grid offset can be calculated automatically in sampling, it is ensured that the precision of the instantaneous voltage of acquisition, for 1/ The operation of 5 period power grid virtual values uses root mean square calculation, reduces the influence of small burr in power grid.
Detailed description of the invention
Fig. 1 is the schematic diagram of disclosed network wave circuit for detecting.
Specific embodiment
Below in conjunction with attached drawing of the invention, clear, complete description is carried out to the technical solution of the embodiment of the present invention.
As shown in Figure 1, a kind of disclosed network wave circuit for detecting, present invention discloses a kind of network waves Circuit for detecting, including main control chip MCU, AD sample the AD sample port of operational amplifier circuit connection main control chip MCU, input capture fortune The port I/O of circuit connection main control chip MCU is put, wherein AD samples operational amplifier circuit and connects power grid, realizes the pressure to network wave Contracting, input capture operational amplifier circuit tie point net form the square wave synchronous with network wave.
A kind of network wave method for detecting based on operational amplifier circuit, including following content:
A, it is connect using input capture operational amplifier circuit with power grid, forms the square wave synchronous with network wave, sampled using AD Operational amplifier circuit is connect with power grid, forms the sine wave that and amplitude synchronous with network wave reduces;
B, input capture operational amplifier circuit is connected using the port I/O of main control chip, opens the input capture in main control chip It interrupts, the square wave that detection input capture operational amplifier circuit is formed simultaneously calculates acquisition square-wave cycle T;
C, operational amplifier circuit is sampled using the AD sample port connection AD of main control chip, according to sampling period t to network voltage It is sampled, wherein AD sampling period t=T/N, N is the sampling number in preset a cycle;
D, instantaneous electricity of the special memory block as sampling window to sampled point N number of in a cycle is set in main control chip Pressure value umIt is stored, wherein instantaneous voltage value um=ADData register value*ADAccuracy value*ADReference voltage value* L, m=1 ~ N, L indicate operational amplifier circuit Ratio value, is 1:100, which calculates storage in sampling when carrying out AD sampling;
E, it is calculated by the instantaneous voltage value that step d is obtained and obtains average value, and obtain instantaneous voltage value offset u0=, it is 0, and obtain virtual voltage according to the instantaneous voltage value offset that A, which indicates the average voltage under reference waveform, Value us=um-u0
F, set the memory range of special memory block as a cycle, inside can only store N number of sample amplitude when reproduced value, be The starting point for ensuring special memory block is grid cycle zero crossing, has been arranged in input capture interruption and has deposited trigger point, the triggering Point is the rising edge of square wave, when input capture interruption detects rising edge, then it represents that the moment is storage trigger point, from the moment The sampled value of each sampled point started is stored to special memory block, forms the electricity of N number of sampled point an of grid cycle Pressure value;
G, as power grid changes, the correspondence that N number of sampled value in subsequent cycle is covered one by one in original special memory block is adopted The sampled value of sampling point;
G, analytical cycle is set as T/5, when carrying out new round periodic sampling, when sampling number proceeds to N/5 from 1, Sampling point value progress virtual value calculating to 1/5 period, acquisition virtual value u=, by having for 1/5 period Valid value is compared with standard value, and is judged whether in deviation range, so as to detect power grid quality in advance.
Technology contents and technical characteristic of the invention have revealed that as above, however those skilled in the art still may base Make various replacements and modification without departing substantially from spirit of that invention in announcement of the invention, therefore, the scope of the present invention is answered unlimited It in the revealed content of embodiment, and should include various without departing substantially from replacement and modification of the invention, and be present patent application right It is required that being covered.

Claims (1)

1. a kind of network wave method for detecting based on operational amplifier circuit, it is characterised in that include the following steps:
A, it is connect using input capture operational amplifier circuit with power grid, forms the square wave synchronous with network wave, sample amplifier using AD Circuit is connect with power grid, forms the sine wave that and amplitude synchronous with network wave reduces;
B, input capture operational amplifier circuit being connected using the port I/O of main control chip, the input capture opened in main control chip interrupts, The square wave of detection input capture operational amplifier circuit formation simultaneously calculates acquisition square-wave cycle T;
C, operational amplifier circuit is sampled using the AD sample port connection AD of main control chip, network voltage is carried out according to sampling period t Sampling, wherein AD sampling period t=T/N, N are the sampling number in preset a cycle;
D, instantaneous voltage value of the special memory block as sampling window to sampled point N number of in a cycle is set in main control chip umIt is stored, wherein instantaneous voltage value um=ADData register value*ADAccuracy value*ADReference voltage value* L, m=1~N, L indicate operational amplifier circuit Ratio value, is 1:100, which calculates storage in sampling when carrying out AD sampling;
E, it is calculated by the instantaneous voltage value that step d is obtained and obtains average value, and obtain instantaneous voltage value offsetA indicates the average voltage under reference waveform, is 0, and obtain reality according to the instantaneous voltage value offset Voltage value us=um-u0
F, set the memory range of special memory block as a cycle, inside can only store N number of sample amplitude when reproduced value, to ensure The starting point of special memory block is grid cycle zero crossing, has been arranged in input capture interruption and has deposited trigger point, which is The rising edge of square wave, when input capture interruption detects rising edge, then it represents that the moment is storage trigger point, from this moment The sampled value of each sampled point store to special memory block, form the voltage value of N number of sampled point an of grid cycle;
G, as power grid changes, N number of sampled value in subsequent cycle covers the correspondence sampled point in original special memory block one by one Sampled value;
H, analytical cycle is set as T/5, when carrying out new round periodic sampling, when sampling number proceeds to N/5 from 1, to 1/5 The sampling point value in period carries out virtual value calculating, obtains virtual valueBy the virtual value in 1/5 period It is compared, and judges whether in deviation range with standard value, so as to detect power grid quality in advance.
CN201710400358.7A 2017-05-31 2017-05-31 A kind of network wave method for detecting based on operational amplifier circuit Active CN107238750B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710400358.7A CN107238750B (en) 2017-05-31 2017-05-31 A kind of network wave method for detecting based on operational amplifier circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710400358.7A CN107238750B (en) 2017-05-31 2017-05-31 A kind of network wave method for detecting based on operational amplifier circuit

Publications (2)

Publication Number Publication Date
CN107238750A CN107238750A (en) 2017-10-10
CN107238750B true CN107238750B (en) 2019-11-26

Family

ID=59985738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710400358.7A Active CN107238750B (en) 2017-05-31 2017-05-31 A kind of network wave method for detecting based on operational amplifier circuit

Country Status (1)

Country Link
CN (1) CN107238750B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111585846A (en) * 2020-05-19 2020-08-25 浙江巨磁智能技术有限公司 Abnormity detection processing system and method for power supply network
CN114295936B (en) * 2021-12-31 2023-08-22 合肥联信电源有限公司 Power grid voltage detection system and method applied to static switch
CN114814343B (en) * 2022-04-06 2023-12-12 上海正泰智能科技有限公司 Method for detecting zero crossing point based on double waveform capture

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60244870A (en) * 1984-05-18 1985-12-04 Matsushita Electric Ind Co Ltd Arithmetic measuring method of alternating current signal
CN101482578A (en) * 2008-11-06 2009-07-15 丹东华通测控有限公司 Multifunctional electric energy meter
CN102244415A (en) * 2010-05-11 2011-11-16 北京亿旗创新科技发展有限公司 Intelligent relay protector of network
CN104535827A (en) * 2015-01-12 2015-04-22 航天科工深圳(集团)有限公司 Defective point removing method and system used in AD sampling

Also Published As

Publication number Publication date
CN107238750A (en) 2017-10-10

Similar Documents

Publication Publication Date Title
CN107238750B (en) A kind of network wave method for detecting based on operational amplifier circuit
CN105182229A (en) Electric power switch action time dynamic measurement method and application, and electric power switch AC zero crossing point accurate control method and application
CN102230948B (en) Active high voltage direct current switch oscillation loop parameter on-line measuring system and method thereof
CN109284933B (en) Electronic transformer state evaluation system and method based on mathematical statistics
CN104614608A (en) Detection device and method for low voltage parallel electric arc fault
CN103901388A (en) Parallel detection terminal device and detection method
CN206471834U (en) Distribution transforming three-phase imbalance governing system
CN108226645A (en) A kind of vacuum circuit breaker divide-shut brake coil direct current resistance m easurem ent device
CN205333777U (en) Phase to earth fault positioner
CN202975173U (en) Ground capacitance measuring instrument in transformer substation power distribution system
CN104991209A (en) Optical digital relay protection testing instrument detection method
CN203216993U (en) Power-grid harmonic real-time online monitor
CN202351348U (en) Intelligent monitoring instrument of transformer
CN207263829U (en) A kind of electric harmonic detector
CN208937682U (en) Lithium electricity energy storage backup power supply system high-voltage isulation detection circuit
CN104167811B (en) AC power power down changing method and switching circuit
CN103900777A (en) Strut type electronic current transformer one-time vibration detecting device and method
CN105203886A (en) Capacitive type current transformer online detection device and method
CN206696364U (en) A kind of power distribution network ferromagnetic resonance calculates analysis special purpose device with singlephase earth fault
CN201935981U (en) Fault detector for electric distribution network
CN205176158U (en) Electric capacity type current transformer on -line measuring device
CN212808479U (en) Electrified fault diagnosis device of low-voltage transformer area zero line
CN103389431A (en) Intelligent on-load comprehensive test device for transformer substation
CN206657074U (en) A kind of signal synchronizer for deformation of transformer winding on-line monitoring
CN101943718A (en) Phase sequence detection method and device of three-phase alternating current

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 226100 No.888, Jiuhua Road, high tech Zone, Nantong City, Jiangsu Province

Patentee after: Wotai Energy Co.,Ltd.

Address before: 226000 No. 888 Jiuhua Road, Tongzhou District, Nantong City, Jiangsu Province

Patentee before: NEOVOLTAIC ENERGY NANTONG Co.,Ltd.

CP03 Change of name, title or address