CN102346218B - Small-signal filtering algorithm used for wide-range energy meter - Google Patents

Small-signal filtering algorithm used for wide-range energy meter Download PDF

Info

Publication number
CN102346218B
CN102346218B CN 201010241299 CN201010241299A CN102346218B CN 102346218 B CN102346218 B CN 102346218B CN 201010241299 CN201010241299 CN 201010241299 CN 201010241299 A CN201010241299 A CN 201010241299A CN 102346218 B CN102346218 B CN 102346218B
Authority
CN
China
Prior art keywords
filtering
signal
data
filter factor
small
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
CN 201010241299
Other languages
Chinese (zh)
Other versions
CN102346218A (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.)
ZHUHAI ZHONGHUI MICROELECTRONICS CO Ltd
Original Assignee
ZHUHAI ZHONGHUI MICROELECTRONICS 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 ZHUHAI ZHONGHUI MICROELECTRONICS CO Ltd filed Critical ZHUHAI ZHONGHUI MICROELECTRONICS CO Ltd
Priority to CN 201010241299 priority Critical patent/CN102346218B/en
Publication of CN102346218A publication Critical patent/CN102346218A/en
Application granted granted Critical
Publication of CN102346218B publication Critical patent/CN102346218B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a small-signal filtering algorithm used for a wide-range energy meter, which aims at a working mode of a metering management main control unit (MCU) and a metering chip. The small-signal filtering algorithm comprises the following steps: (1) reading each piece of electricity parameter data from the metering chip at the fixed time interval by the metering management MCU; (2) judging whether an electricity parameter input signal is less than a small-signal judgment threshold value, and if yes, filtering the electricity parameter data by the following algorithm. Extremely small metering management MCU resource is occupied by the algorithm disclosed by the invention; all basic electricity parameter signals which are input to the metering management MCU from the metering chip are dynamically filtered; and the process of filtering can be dynamically implemented according to the small-signal vibration characteristic tendency. The small-signal filtering algorithm also can comprise a step of automatically regulating a filtering coefficient, and a filtering result is quickly followed up when the signal is quickly changed so as to ensure that the response sensitivity is prior. When a signal tends to be stable and fluctuates nearby a certain fixed numerical value, data stability is guaranteed to be prior.

Description

The small-signal filtering algorithm that is used for the wide region electric energy meter
Technical field
The present invention relates to the electric energy metrical field, be specifically related to the small-signal filtering algorithm for the wide region electric energy meter.
Background technology
Along with being in full swing of national intelligent grid construction, the increasing domestic consumer full electronic intelligent electric meter that all changed the outfit, the electronic type intelligent electric meter mostly adopts the mode of operation of computation chip+measuring control MCU at present, gather the electric parameter signal by computation chip, through inter-process with after calculating the result is exported to measuring control MCU.In order to guarantee to gather stability and the validity of signal, the way of traditional elimination undesired signal adds the filtering networking at the prime hardware circuit of computation chip often, by digital filtering algorithm sampled signal is carried out filtering in computation chip inside, but under the very faint situation of input signal, the inner A/D imbalance of computation chip, the filtering method that the factors such as instability of harassing excessive and the reference of computation chip own between voltage signal and channel current signal all will make traditional elimination disturb lost efficacy, cause exporting to the data instability of measuring control MCU, measuring accuracy is low.
Summary of the invention
The object of the present invention is to provide a kind of small-signal filtering algorithm that is applied to measuring control MCU, under the very faint situation of input signal, in order to remedy computation chip to gathering the inefficacy that signal filtering is handled, thereby the basic electrical quantity of assurance wide region intelligent electric meter is effectively stable, meets the need of market.
The implementation of the object of the invention is: a kind of small-signal filtering algorithm for the wide region electric energy meter adds the mode of operation of measuring control MCU at computation chip; It is characterized in that, comprising: (1) measuring control MCU reads each electric parameter data at Fixed Time Interval from computation chip; (2) whether judging the electric parameter input signal less than the small-signal decision threshold, is then to adopt following algorithm that the electric parameter data are carried out filtering:
Figure BDA0000023931910000011
N is the data point number that computation chip is sampled for each electric parameter in this Fixed Time Interval.
Algorithm of the present invention takies few measuring control MCU resource, real-time dynamicly all basic electric parameter signals (comprising voltage, electric current, power signal) that are input to measuring control MCU from computation chip is implemented filtering and handles.This algorithm can be according to the small signal variation qualitative tendency, and dynamic implementation filtering can also comprise the filter factor automatic setting procedure, and when signal changed fast, filtering was the result follow up fast, and is preferential to guarantee sensitivity; Tend towards stability at signal, when near a certain fixed numbers, shaking up and down, preferential to guarantee smoothness.
Description of drawings
The algorithm main program flow chart that Fig. 1 provides for embodiment.
Fig. 2 adjusts subroutine flow chart automatically for the filter factor that embodiment provides.
The filter factor that Fig. 3 provides for embodiment accelerates to improve subroutine flow chart.
Embodiment
As shown in Figure 1, measuring control MCU at interval reads each electric parameter data from computation chip at a fixed time, and when electric parameter input signal amplitude during less than certain threshold values, the electric parameter signal of measuring control MCU carries out dynamic filter to be handled.The present embodiment filtering algorithm by to current electric parameter data value and last time filtering output value be weighted, obtain effective filter value, make output to input retroactive effect be arranged.Concrete formula is:
Figure BDA0000023931910000021
Wherein N is the data point number that computation chip is sampled for each electric parameter in this Fixed Time Interval.
In the equation above, need carry out altogether taking advantage of/division arithmetic for four times.Do not take advantage of/single-chip microcomputer of divide instruction for some, need add with circulation/subtraction realizes taking advantage of/division arithmetic, through number repeatedly take advantage of/division arithmetic can reduce the efficient of system.Therefore, we need carry out computing optimization with above-mentioned formula for the arithmetic speed that improves single-chip microcomputer, and are as follows: when newly reading electric parameter data<filtering last time as a result the time, calculated by following formula: When newly reading electric parameter data>filtering last time as a result the time, calculated by following formula:
Figure BDA0000023931910000023
Like this, through only need carry out taking advantage of for twice after judgement/division arithmetic can finish, efficient is doubled, and has alleviated the wasting of resources of measuring control MCU on small-signal filtering is handled widely.
In addition, the filtering algorithm that present embodiment provides also has a characteristic: can adjust filter factor automatically according to the variation tendency of electric parameter signal.Make when data change fast filtering result can in time follow up (being that sensitivity is preferential); And data variation is more fast, and sensitivity should be more high.When data tend towards stability, and when a fixing point vibrates up and down, filtering result can tend to be steady (being that smoothness is preferential); After data stabilization, the filtering result can approach and finally equal sampled data (eliminate because of decimal give up the error of bringing).
As shown in Figure 2, the filter factor automatic setting procedure comprises: I. is double to read the electric parameter data, and the size of result value after more current electrical quantity numerical value and filtering last time; II. by size relatively the change direction of double data is judged, if the current electrical parameter values that reads for twice all is greater than or less than result value after filtering last time, then thought data variation direction unanimity twice, otherwise then be considered as inconsistent; III. according to twice conforming judged result of data variation direction, the self-adjusting principle of filter filter factor is as follows: a) when twice data variation direction is inconsistent, shake has been described, with the filter factor zero clearing, has ignored this new sampled value; B) when twice data variation direction is consistent, improve filter factor gradually, improve the power of this new sampled value.
Wherein, at above-mentioned b) during situation, when data variation very fast, namely after current electrical quantity numerical value and the filtering last time result's difference greater than one set disappear when trembling the reaction threshold values, accelerate to improve filter factor.As shown in Figure 3, be specially: i. judges whether twice data variation direction be consistent, is then to carry out ii and iii; Ii. judge this receive data and filtering last time as a result the absolute value of difference whether tremble the reaction threshold values greater than disappearing, be filter factor=last time filter factor+coefficient increment maximal value then, otherwise filter factor=last time filter factor+coefficient increment typical values; Iii. judge that filter factor whether more than or equal to the filter factor maximal value, is then to return after the filter factor zero clearing, otherwise directly returns.
Above embodiment only is fully open unrestricted the present invention.Be understandable that, initial filter coefficients in the algorithm of the present invention, the filter factor increment, largest filter coefficient increment, the parameters such as trembling the reaction threshold values that disappears can be imitated actual fruit for the filtering of small-signal according to computation chip, carry out reasonable disposition, the application space is very extensive, has very strong practical value.

Claims (3)

1. the small-signal filtering algorithm in the wide region electric energy meter adds the mode of operation of measuring control MCU at computation chip; It is characterized in that, comprising: (1) measuring control MCU reads each electric parameter data at Fixed Time Interval from computation chip; (2) whether judging the electric parameter input signal less than the small-signal decision threshold, is then to adopt following algorithm that the electric parameter data are carried out filtering:
Figure DEST_PATH_FDA00003105815200011
, N is the data point number that computation chip is sampled for each electric parameter in this Fixed Time Interval; (3) with the algorithm optimization in the step (2) be:
When newly reading electric parameter data<filtering last time as a result the time, calculated by following formula:
Figure DEST_PATH_FDA00003105815200012
Read the electric parameter data when newly〉filtering last time is as a result the time, calculated by following formula:
Figure DEST_PATH_FDA00003105815200013
, N is the data point number that computation chip is sampled for each electric parameter in this Fixed Time Interval.
2. the small-signal filtering algorithm in the wide region electric energy meter according to claim 1, it is characterized in that: in filtering, also comprise the filter factor automatic setting procedure, comprise: I. is double to read the electric parameter data, and the size of result value after more current electrical quantity numerical value and filtering last time; II. by size relatively the change direction of double data is judged, if the current electrical parameter values that reads for twice all is greater than or less than result value after filtering last time, then thought data variation direction unanimity twice, otherwise then be considered as inconsistent; III. according to twice conforming judged result of data variation direction, the self-adjusting principle of filter filter factor is as follows:
A) when twice data variation direction is inconsistent, illustrate that data have shake, with the filter factor zero clearing, ignore this new sampled value;
B) when twice data variation direction is consistent, then improve filter factor gradually, improve the power of this new sampled value.
3. the small-signal filtering algorithm in the wide region electric energy meter according to claim 2, it is characterized in that: at the self-adjusting b of filter factor) during situation, and then judge this receive data and filtering last time as a result the absolute value of difference whether tremble the reaction threshold values greater than disappearing of setting, be filter factor=last time filter factor+coefficient increment maximal value then, otherwise filter factor=last time filter factor+coefficient increment typical values; Judge that then filter factor whether more than or equal to the filter factor maximal value, is then to return after the filter factor zero clearing, otherwise directly returns.
CN 201010241299 2010-07-30 2010-07-30 Small-signal filtering algorithm used for wide-range energy meter Active CN102346218B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010241299 CN102346218B (en) 2010-07-30 2010-07-30 Small-signal filtering algorithm used for wide-range energy meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010241299 CN102346218B (en) 2010-07-30 2010-07-30 Small-signal filtering algorithm used for wide-range energy meter

Publications (2)

Publication Number Publication Date
CN102346218A CN102346218A (en) 2012-02-08
CN102346218B true CN102346218B (en) 2013-08-21

Family

ID=45545080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010241299 Active CN102346218B (en) 2010-07-30 2010-07-30 Small-signal filtering algorithm used for wide-range energy meter

Country Status (1)

Country Link
CN (1) CN102346218B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103869122B (en) * 2012-12-14 2018-04-24 北京普源精电科技有限公司 A kind of power supply and its method of work with triggering input function
CN105738686B (en) * 2016-04-12 2019-03-15 辽宁大学 A kind of electric current detecting method
CN113499538A (en) * 2016-08-01 2021-10-15 心脏器械股份有限公司 Heart rate determination based on VAD current waveform
CN106662463B (en) 2016-11-02 2019-11-12 深圳市汇顶科技股份有限公司 The detection method and its device of sensor noise floor
CN106768243B (en) * 2016-12-15 2019-03-05 芯海科技(深圳)股份有限公司 A kind of quick lock in accurate weight method
CN109738921B (en) * 2018-12-12 2021-03-26 东软集团股份有限公司 Filtering method and device for eliminating course jitter, storage medium and electronic equipment

Non-Patent Citations (8)

* Cited by examiner, † Cited by third party
Title
一种新的超稳定自适应IIR滤波算法;王继罗 等;《电子学报》;19890930;96-101 *
基于中值的自适应均值滤波算法;常瑞娜 等;《计算机工程与设计》;20080831;4257-4259 *
常瑞娜 等.基于中值的自适应均值滤波算法.《计算机工程与设计》.2008,4257-4259.
改进的自适应均值滤波算法及应用;赵建珍 等;《太原科技大学学报》;20100220;34-37 *
正余弦变换的数值滤波算法;王华军;《工程地球物理学报》;20040831;329-335 *
王华军.正余弦变换的数值滤波算法.《工程地球物理学报》.2004,329-335.
王继罗 等.一种新的超稳定自适应IIR滤波算法.《电子学报》.1989,96-101.
赵建珍 等.改进的自适应均值滤波算法及应用.《太原科技大学学报》.2010,34-37.

Also Published As

Publication number Publication date
CN102346218A (en) 2012-02-08

Similar Documents

Publication Publication Date Title
CN102346218B (en) Small-signal filtering algorithm used for wide-range energy meter
CN104571990A (en) Method and system for adjusting operating state of display screen
CN110165709A (en) Consider the virtual synchronous machine grid-connected inverting system stability method for improving of sampling time delay
CN109871949A (en) Convolutional neural networks accelerator and accelerated method
CN102426416B (en) Method and device for identifying frequency domain amplitude characteristic of control object
CN103683292A (en) Parallel type quasi-proportional resonance active power filter and control method thereof
CN110011295A (en) A kind of method for analyzing stability and system of distributed DC power grid
CN103280956B (en) Virtual vector optimizing and neutral-point potential balancing closed-loop control system of multilevel inverter
CN108493936A (en) The improved method of low-frequency oscillation of electric power system estimation based on subspace state space system identification
CN105633964A (en) APF current control method and system
CN102570879B (en) Parallel repetitive control system implemented based on FPGA (Field Programmable Gate Array)
JP6711417B2 (en) Automatic filtering method and device
CN111130123A (en) Self-adaptive control method of parallel active power filter
CN115437303B (en) Wisdom safety power consumption monitoring and control system
CN2836339Y (en) Pulse generator
CN103560656A (en) Method for reducing output current harmonics of single-phase photovoltaic grid-connected inverter
CN104410093A (en) Charge state control method of energy storage battery
CN103606940A (en) Distributed power stabilizing method applied in micro grid
CN113295917A (en) Protection device sampling unit based on combination of Rogowski coil and LPCT
CN100512003C (en) Pulse generation device with variable frequencies and duty ratio
CN105262126A (en) Coordinative control strategy method for wind storage system
CN110045951A (en) A kind of developing instrument that neural network hardware low-power consumption customizes
CN215378454U (en) Low-frequency oscillation classification device of wind power grid-connected system
CN108900102B (en) Active damping method for network side current feedback LCL type grid-connected inverter resonance based on digital trap
CN117424444A (en) PFC control method of direct current power supply, direct current power supply and power supply equipment

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