CN107329514B - A kind of periodic voltage or electric current quick sampling adjusting method - Google Patents
A kind of periodic voltage or electric current quick sampling adjusting method Download PDFInfo
- Publication number
- CN107329514B CN107329514B CN201710507455.6A CN201710507455A CN107329514B CN 107329514 B CN107329514 B CN 107329514B CN 201710507455 A CN201710507455 A CN 201710507455A CN 107329514 B CN107329514 B CN 107329514B
- Authority
- CN
- China
- Prior art keywords
- voltage
- sampling
- sampled
- microcontroller
- electric current
- 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
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05F—SYSTEMS FOR REGULATING ELECTRIC OR MAGNETIC VARIABLES
- G05F1/00—Automatic systems in which deviations of an electric quantity from one or more predetermined values are detected at the output of the system and fed back to a device within the system to restore the detected quantity to its predetermined value or values, i.e. retroactive systems
- G05F1/10—Regulating voltage or current
- G05F1/46—Regulating voltage or current wherein the variable actually regulated by the final control device is dc
- G05F1/56—Regulating voltage or current wherein the variable actually regulated by the final control device is dc using semiconductor devices in series with the load as final control devices
- G05F1/561—Voltage to current converters
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Automation & Control Theory (AREA)
- Measurement Of Current Or Voltage (AREA)
- Control Of Voltage And Current In General (AREA)
- Control Of Electrical Variables (AREA)
Abstract
The invention belongs to electroporation fields, it is related to a kind of periodic voltage or electric current quick sampling adjusting method, for the periodic voltage or current waveform of power-supply system output, take the mode for rolling and replacing and updating sampled point, m sampling feedback is carried out within an output voltage period, keep feedback more accurate, the sampled result in a complete output voltage period can be analyzed, and the data of any time sampled point are individually analyzed;And regulating time is increased to the sampling period from the period of voltage and current by rolling to replace, the speed multiple of raising is m times, according to the needs of circuit governing speed, by the number for improving sampled point m, you can improve sample rate.
Description
Technical field:
The invention belongs to electroporation fields, are related to a kind of sample detecting method, especially a kind of periodic voltage or electricity
Flow quick sampling adjusting method.
Background technology:
In the switch power supply system with output periodic voltage or electric current, the existing method of sampling is generally root mean square
Method or multiple averaging method carry out multiple repairing weld to voltage or electric current in one cycle and calculate its virtual value or average
Value carries out according to the value that is calculated of sampling and after setting value corresponding control.This sampling adjustment method changes in load
Performance is good when slowly or being basically unchanged, but when dynamic load random mutation, system output voltage or current value will occur
Prodigious fluctuation, just to the sampling of output end voltage or electric current, more stringent requirements are proposed for this, it is necessary to enable sampled signal and
When rapidly and accurately feed back to microcontroller, to carry out dynamic monitoring and control.And the existing method of sampling generally according to one or
Person's multiple output periods determine sampled result, are difficult to the current shape of the in-situ analysis system of timely fast accurate in this way
State, it is difficult to it meets the requirements, gently can then make load supplying interval, it is heavy then power supply apparatus can be caused to damage.Therefore, there is an urgent need to seek
A kind of effectively periodic voltage or electric current quick sampling adjusting method.
Invention content:
The purpose of the present invention is to overcome the defects in the prior art, seeks a kind of periodic voltage of design offer or electric current
Quick sampling adjusting method, using roll replace and update sampled point by the way of, in conjunction with different wave virtual value or average value
Computational methods real-time and accurately calculate the virtual value or average value of periodic voltage or electric current, are rapidly adjusted to circuit
Section.
To achieve the goals above, the detailed process of property performance period voltage or electric current quick sampling adjusting of the invention includes
Following steps:
(1) first start microcontroller and initialize microcontroller, the periodic voltage or electricity exported according to power-supply system
Wave characteristics are flowed, set the period as T, voltage magnitude Uo, voltage effective value Urms;
(2) periodic voltage or current waveform are sampled:According to aromatic sampling thheorem, m is sampled in a cycle T
A, first sampling point is set as any time, and the time interval between each two sampled point is T/m, between the arrival sampling time
Every rear, acquisition sampled voltage simultaneously stores, and m sampled point is initialized in microcontroller and sampled voltage is stored in array Usam=
[u1,u2,u3,…,u20,…um];
(3) voltage effective value calculates:Acquiring virtual value according to root mean square calculation method is:By calculating
Voltage effective value Urms feeds back to microcontroller and circuit is adjusted, and by calculating process voltage squared andStorage
To utemp;
(4) be arranged one roll mark r=1, by calculating process voltage squared andSubtract ur 2And store to
utemp, when next sampling interval T/m arrives, sample a new electrical voltage point and be saved in ur, this stylish quadratic sum is
utempAdd ur 2And it stores to utemp, acquiring the currently active value using root mean square algorithm isAnd by the voltage of calculating
Virtual value Urms feeds back to microcontroller and circuit is adjusted, and often executes a root mean square algorithm, rolls mark r from increasing 1, works as r
When higher than m, r becomes 1, and so on, it repeats the above steps, whether monitoring power-supply system current time is abnormal, if abnormal straight
Current system conditions are adjusted in the reversed microcontroller that is fed to, and execution cycle property voltage or electric current quick sampling are adjusted.
The periodic voltage or current waveform of power-supply system output of the present invention include sinusoidal unidirectional pulse wave, unidirectional three
Angle wave and unidirectional trapezoidal wave.
Compared with prior art, the present invention for the periodic voltage or current waveform of power-supply system output, rolling is taken
The mode for replacing and updating sampled point, m sampling feedback is carried out within an output voltage period, keeps feedback more accurate, this
Kind method can not only analyze the sampled result in a complete output voltage period, and can be sampled to any time
The data of point are individually analyzed;Regulating time is increased to the sampling period from the period of voltage and current by rolling to replace,
The speed multiple of raising is m times, according to the needs of circuit governing speed, by the number for improving sampled point m, you can improve sampling
Speed.
Description of the drawings:
Fig. 1 is the operation principle schematic process flow diagram of the present invention.
Fig. 2 is the sampling adjustment schematic diagram of sinusoidal unidirectional voltage pulsating wave of the present invention.
Specific implementation mode:
Technical scheme of the present invention is described in more detail by way of example and in conjunction with the accompanying drawings.
The detailed process that the present embodiment property voltage performance period or electric current quick sampling are adjusted includes the following steps:
(1) first start microcontroller and initialize microcontroller, the periodic voltage or electricity exported according to power-supply system
Wave characteristics are flowed, set the period as T, voltage magnitude Uo, voltage effective value Urms;
(2) periodic voltage or current waveform are sampled:According to aromatic sampling thheorem, m is sampled in a cycle T
A, first sampling point is set as any time, and the time interval between each two sampled point is T/m, between the arrival sampling time
Every rear, acquisition sampled voltage simultaneously stores, and m sampled point is initialized in microcontroller and sampled voltage is stored in array Usam=
[u1,u2,u3,…,u20,…um];
(3) voltage effective value calculates:Acquiring virtual value according to root mean square calculation method is:By calculating
Voltage effective value Urms feeds back to microcontroller and circuit is adjusted, and by calculating process voltage squared andStorage
To utemp;
(4) be arranged one roll mark r=1, by calculating process voltage squared andSubtract ur 2And store to
utemp, when next sampling interval T/m arrives, sample a new electrical voltage point and be saved in ur, this stylish quadratic sum is
utempAdd ur 2And it stores to utemp, acquiring the currently active value using root mean square algorithm isAnd by the voltage of calculating
Virtual value Urms feeds back to microcontroller and circuit is adjusted, and often executes a root mean square algorithm, rolls mark r from increasing 1, works as r
When higher than m, r becomes 1, and so on, it repeats the above steps, whether monitoring power-supply system current time is abnormal, if abnormal straight
Current system conditions are adjusted in the reversed microcontroller that is fed to, and execution cycle property voltage or electric current quick sampling are adjusted.
Embodiment 1:
By taking sinusoidal unidirectional voltage pulsating wave as an example, specific sampling adjustment process is the present embodiment:
(1) according to sinusoidal unidirectional voltage pulsating wave the characteristics of, if the period of sinusoidal unidirectional voltage pulsating wave is T, voltage amplitude
Value is Uo, and virtual value Urms, wherein T are 10ms, and Uo 310V, Urms 220V, sampled voltage 310V correspond to 3V, 220V pairs
Answer 2.13V;
(2) sinusoidal unidirectional voltage pulsating wave is sampled:According to aromatic sampling thheorem, sampled in a cycle 10ms
M point, wherein m are 20, and first sampling point can be arranged at any time, and the time interval between each two sampled point is T/m
=500us initializes 20 sampled points and composition voltage array Usam=[u1, u2, u3 ..., u20] in microcontroller;
(3) voltage effective value calculates:Can acquire virtual value according to root mean square calculation method is:It will calculate
Voltage effective value Urms feed back to microcontroller, be compared operation with reference value 2.13V, according to operation result to circuit carry out
Adjust and by calculating process voltage squared andIt stores to utemp;
(4) be arranged one roll mark r=1, by calculating process voltage squared andSubtract ur 2And store to
utemp, when next sampling interval 500us arrives, sample a new electrical voltage point and be saved in ur, this stylish quadratic sum is
utemp+ur 2And it stores to utemp, can acquire the currently active value using root mean square algorithm isAnd by the electricity of calculating
It is pressed with valid value Urms and feeds back to microcontroller and circuit is adjusted, often execute a root mean square algorithm, roll mark r from increasing 1, when
When r is higher than 20, r becomes 1, and so on, it repeats the above steps, system current time can be monitored so whether extremely, if
Exception can be directly fed back to microcontroller and current system conditions are adjusted.
Claims (2)
1. a kind of periodic voltage or electric current quick sampling adjusting method, it is characterised in that detailed process includes the following steps:
(1) first start microcontroller and initialize microcontroller, the periodic voltage or current wave exported according to power-supply system
Shape feature, sets the period as T, voltage magnitude Uo, voltage effective value Urms;
(2) periodic voltage or current waveform are sampled:According to aromatic sampling thheorem, m are sampled in a cycle T
Point, first sampling point are set as any time, and the time interval between each two sampled point is T/m, reaches sampling time interval
Afterwards, it acquires sampled voltage and stores, m sampled point is initialized in microcontroller and sampled voltage is stored in array Usam=
[u1,u2,u3,…,u20,…um];
(3) voltage effective value calculates:Acquiring virtual value according to root mean square calculation method is:By the voltage of calculating
Virtual value Urms feeds back to microcontroller and circuit is adjusted, and by calculating process voltage squared andStore to
utemp;
(4) be arranged one roll mark r=1, by calculating process voltage squared andSubtract ur 2And it stores to utemp, when
When next sampling interval T/m arrives, samples a new electrical voltage point and be saved in ur, this stylish quadratic sum is utempAdd ur 2
And it stores to utemp, acquiring the currently active value using root mean square algorithm isAnd by the voltage effective value of calculating
Urms feeds back to microcontroller and circuit is adjusted, and often executes a root mean square algorithm, rolls mark r from increasing 1, when r is higher than m
When, r becomes 1, and so on, it repeats the above steps, whether monitoring power-supply system current time is abnormal, if abnormal directly feed back
Current system conditions are adjusted to microcontroller, execution cycle property voltage or electric current quick sampling are adjusted.
2. periodic voltage or electric current quick sampling adjusting method according to claim 1, it is characterised in that the power supply system
The periodic voltage or current waveform of system output include sinusoidal unidirectional pulse wave, unidirectional triangular wave and unidirectional trapezoidal wave.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710507455.6A CN107329514B (en) | 2017-06-28 | 2017-06-28 | A kind of periodic voltage or electric current quick sampling adjusting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710507455.6A CN107329514B (en) | 2017-06-28 | 2017-06-28 | A kind of periodic voltage or electric current quick sampling adjusting method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107329514A CN107329514A (en) | 2017-11-07 |
CN107329514B true CN107329514B (en) | 2018-09-21 |
Family
ID=60197180
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710507455.6A Active CN107329514B (en) | 2017-06-28 | 2017-06-28 | A kind of periodic voltage or electric current quick sampling adjusting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107329514B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110568370A (en) * | 2019-08-20 | 2019-12-13 | 北京长城华冠汽车科技股份有限公司 | Voltage acquisition period adjusting method and device |
CN112147515B (en) * | 2020-09-29 | 2023-08-04 | 厦门金龙联合汽车工业有限公司 | New energy vehicle battery system power and internal resistance online estimation method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20080043088A (en) * | 2006-11-13 | 2008-05-16 | 한국에너지기술연구원 | A high power quality anti-islanding method using effective power variation |
CN102253283B (en) * | 2011-06-20 | 2015-09-23 | 山东电力集团公司临沂供电公司 | A kind of distributed micro-grid grid-connected island detection method based on Wavelet Packet Energy Spectrum |
CN103915818B (en) * | 2014-04-14 | 2017-01-11 | 河北工业大学 | Series connection fault electric arc detecting method and special device thereof |
CN104678265A (en) * | 2015-01-30 | 2015-06-03 | 广东雅达电子股份有限公司 | Detection device and detection method for series arc faults |
CN105954569A (en) * | 2016-06-07 | 2016-09-21 | 浙江腾腾电气有限公司 | Voltage effectiveness value sampling method applied to alternating-current voltage-stabilizing power supply |
-
2017
- 2017-06-28 CN CN201710507455.6A patent/CN107329514B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107329514A (en) | 2017-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107329514B (en) | A kind of periodic voltage or electric current quick sampling adjusting method | |
CN107133713A (en) | A kind of photovoltaic plant intelligently cleans the method for building up of decision system | |
EP2244348A3 (en) | Wind farm with multiple wind energy assemblies and method for regulating the feed-in from a wind farm | |
CN106771567B (en) | Dynamic harmonic electric energy metering method based on multi-resolution short-time Fourier transform | |
CN102797631B (en) | Method, system and device for carrying out online self-correcting on optimal gain of wind generating set | |
CN109001573B (en) | Method for determining short-circuit capacity of collector bus of wind power plant | |
CN103019902A (en) | Automatic testing device and automatic testing method of ARINC 429 bus signal performance parameters | |
CN106405280B (en) | A kind of intelligent substation on-line monitoring parameter trend method for early warning | |
CN105259414A (en) | Power grid impedance on-line detection method on the basis of inverter | |
CN106055019B (en) | The photovoltaic generating system of MPPT maximum power point tracking based on online soft sensor model | |
CN204151431U (en) | A kind of bus installs whippy structure anodic current measuring apparatus | |
CN106283120B (en) | Aluminum cell bus-bar current measuring device and anode current measuring system and method | |
CN105429169A (en) | Distributed power access control system and fault analysis method | |
CN116667537A (en) | Electric energy quality monitoring device | |
CN103257667A (en) | Photovoltaic system maximum power point tracking technique | |
CN114754476B (en) | Air conditioner wheeze control device and method and air conditioning system | |
CN105720634B (en) | A kind of the charge power current control method and system of self study | |
CN115309194A (en) | Method and device for improving generating capacity of photovoltaic tracking system | |
CN115632394A (en) | Photovoltaic power station transient model construction and parameter identification method based on PPO algorithm | |
CN204924228U (en) | Bridge camber measuring device | |
CN104931772A (en) | Method and system for voltage sag check based on digital morphological transform | |
CN204719428U (en) | Adaptive Fuzzy Control algorithm MPPT controller | |
CN204496034U (en) | A kind of ultra-high-tension power transmission line rainfall measurement mechanism | |
CN102937676A (en) | Method and system for implementing early warning of load harmonic injection pollution | |
CN108983045B (en) | Passive island detection method |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210715 Address after: 266603 Qingdao precision machinery manufacturing small enterprise Industrial Park, north of Beihuan Road, Jiangshan Town, Laixi City, Qingdao City, Shandong Province Patentee after: QINGDAO LDC TECHNOLOGY Co.,Ltd. Address before: 266061 Hongkong East Road, Laoshan District, Qingdao, Shandong Province, No. 7 Patentee before: QINGDAO University |
|
TR01 | Transfer of patent right |