CN107918051A - A kind of time-sharing multiplex High-accuracy direct current electric energy meter - Google Patents
A kind of time-sharing multiplex High-accuracy direct current electric energy meter Download PDFInfo
- Publication number
- CN107918051A CN107918051A CN201711033366.9A CN201711033366A CN107918051A CN 107918051 A CN107918051 A CN 107918051A CN 201711033366 A CN201711033366 A CN 201711033366A CN 107918051 A CN107918051 A CN 107918051A
- Authority
- CN
- China
- Prior art keywords
- current
- channel
- energy meter
- current channel
- computation chip
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R22/00—Arrangements for measuring time integral of electric power or current, e.g. electricity meters
- G01R22/06—Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods
- G01R22/10—Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods using digital techniques
Abstract
A kind of time-sharing multiplex High-accuracy direct current electric energy meter, is related to a kind of electric energy meter, and the electrical energy meter electricity pressure passageway is directly connected by the 3rd road signal sampling interface of computation chip, gathered in real time by computation chip and calculate the average voltage level of the passage;Current channel 8 is emphasis sense channel, is directly connected with the 2nd road signal sampling interface of computation chip, is gathered in real time by computation chip and calculates the average current value of the passage;1 ~ current channel of current channel 7 is connected with road analog switch, by the gating of the GPIO control analog switches of MCU, only analog switch only exports 1 current channel in the same period, 1st road signal sampling interface of the current channel and computation chip connects, and computation chip gathers and measures the instantaneous current value of the passage.Electric energy meter, solve direct current energy meter accuracy it is low, measuring loop is few, can not meet demand the problem of.
Description
Technical field
The present invention relates to a kind of electric energy meter, more particularly to a kind of time-sharing multiplex High-accuracy direct current electric energy meter.
Background technology
The ADC that multi-channel DC electric energy meter currently on the market is carried using MCU is directly measured, but MCU carries ADC precision very
Low, most of MCU only configure 12 or 16 ADC, can not meet high accuracy, the measurement demand of Larger Dynamic scope.
It is most of to only have 1 ~ 3 road ADC, nothing and some are with Larger Dynamic scope, high-precision the special metering IC or MCU
Method meets the needs of multiple current channels in scene measure.
The content of the invention
It is an object of the invention to provide a kind of time-sharing multiplex High-accuracy direct current electric energy meter, which includes:MCU, meter
Measure chip, analog switch, power management module, keystroke handling module, memory module, communication module, display module, 8 electric currents
Passage, 1 voltage channel;For a kind of High-accuracy direct current electric energy meter based on time-sharing multiplex algorithm, direct current energy meter accuracy is solved
Low, measuring loop is few, can not meet demand the problem of.
The purpose of the present invention is what is be achieved through the following technical solutions:
A kind of time-sharing multiplex High-accuracy direct current electric energy meter, the electrical energy meter electricity pressure passageway are directly believed by the 3rd tunnel of computation chip
The connection of number Sampling Interface, is gathered and calculates the average voltage level of the passage in real time by computation chip;Current channel 8 detects for emphasis
Passage, is directly connected with the 2nd road signal sampling interface of computation chip, is gathered in real time by computation chip and calculates the flat of the passage
Equal current value;1 ~ current channel of current channel 7 is connected with road analog switch, controls the gating of analog switch by the GPIO of MCU, together
Only analog switch only exports the 1st road signal sampling interface company of 1 current channel, the current channel and computation chip in one period
Connect, computation chip gathers and measures the instantaneous current value of the passage.
A kind of time-sharing multiplex High-accuracy direct current electric energy meter, the ADC of the 1 ~ current channel of current channel 7 and MCU
Pin connects, and MCU is read in AD interrupt routines and the instantaneous current value of 1 ~ current channel of calculating current passage 7, and calculates electricity
The changing value of circulation road n, the current variation value are represented with Δ In;1 ~ current channel of current channel 7 has priority, priority note
Represented with Pn.
A kind of time-sharing multiplex High-accuracy direct current electric energy meter, the priority P n of the 1 ~ current channel of current channel 7
Sorting according to the absolute value of current variation value Δ In, the priority of bigger its corresponding current passage n of current variation value Δ In is higher,
That is the priority P n values of the passage are bigger.
A kind of time-sharing multiplex High-accuracy direct current electric energy meter, the MCU controls analog switch switch to priority most
High current channel, and the collection of the current channel is identified and is reset, and the priority of the current channel is set to 0, Qi Ta electricity
The collection mark of circulation road plus 1;When the collection mark of current channel m is more than or when 12, the priority of current channel m is set
For highest, i.e., Pm values are arranged to maximum.
A kind of time-sharing multiplex High-accuracy direct current electric energy meter, described when the priority of all passages is identical, MCU will
According to 1 ~ 7 order switching electric current passage;MCU switches primary current passage every 125ms.
A kind of time-sharing multiplex High-accuracy direct current electric energy meter, the current channel 8 are emphasis Measurement channel, and MCU leads to
Cross UART and mean power is directly read from computation chip, and accumulation electric flux is calculated as follows:
Wherein, E is to accumulate electric flux, unit K WH;P is mean power, unit W;T is sampling interval duration, unit ms.
A kind of time-sharing multiplex High-accuracy direct current electric energy meter, the current channel 1 ~ 7 are common sense channel, MCU
Real-time current is read from computation chip by UART, and accumulation electric flux is calculated as follows:
Wherein E is to accumulate electric flux, unit K WH;I is transient current, unit A;U is the average voltage level of voltage channel collection,
Unit V;T is sampling interval duration, unit ms.
Advantages of the present invention is with effect:
(1)The application uses time-sharing multiplex algorithm, and product holistic cost is low, is led to using 1 computation chip, that is, measurable 8 electric currents
Road and 1 voltage channel.(2)It is high using special measuring, wide dynamic range, measuring accuracy.(3)Using prioritizing algorithm,
Reaction speed is fast, and measurement error is small.(4)Retain 1 emphasis current channel, detect the change of emphasis channel current in real time.
Brief description of the drawings
Fig. 1 is the connection relationship diagram of the application;
Fig. 2 is the priority algorithm program flow diagram of the application.
Embodiment
The present invention is described in detail for illustrated embodiment below in conjunction with the accompanying drawings.
As shown in Figure 1, a kind of high-precision multi-path direct current energy meter includes:MCU, computation chip, analog switch, power supply pipe
Manage module, keystroke handling module, memory module, communication module, display module, 8 current channels, 1 voltage channel.
MCU is connected with computation chip by UART interface;MCU is connected by 3 GPIO pins with analog switch;MCU with
Power management module is directly connected to;MCU is connected with keystroke handling module by GPIO, and MCU is connected with memory module by I2C interface
Connect;MCU is connected with communication module by UART interface;MCU is connected with display module by SPI interface;1 ~ electric current of current channel
Passage 7 is connected with the ADC pins of MCU;1 ~ current channel of current channel 7 connects the input terminal of analog switch;Analog switch it is defeated
1st road signal sampling interface of outlet and computation chip connects;2nd road signal sampling interface of current channel 8 and computation chip
Connection;3rd road signal sampling interface of voltage channel and computation chip connects.
High-accuracy direct current electric energy can at most gather 8 current channels and 1 voltage channel.
Voltage channel is directly connected by the 3rd road signal sampling interface of computation chip, is gathered in real time simultaneously by computation chip
Calculate the average voltage level of the passage.Current channel 8 is emphasis sense channel, directly the 2nd road signal sampling with computation chip
Interface connects, and is gathered in real time by computation chip and calculates the average current value of the passage.1 ~ current channel of current channel 7 and road mould
Intend switch connection, by the gating of the GPIO control analog switches of MCU, only analog switch only exports 1 electric current and leads in the same period
1st road signal sampling interface connection of road, the current channel and computation chip, computation chip gather and measure the instantaneous of the passage
Current value.
Since 1 ~ current channel of current channel 7 using timesharing retrys method, and computation chip is delta-sigma type ADC, sample rate
Slowly, so, when electric current quickly changes all the way for certain, MCU can not read the instantaneous value of electric current in time, cause measurement error larger,
To solve the above-mentioned problems, adopt the following technical scheme that:
1 ~ current channel of current channel 7 is connected with the ADC pins of MCU, and MCU is read in AD interrupt routines and calculating current passage
The instantaneous current value of 1 ~ current channel 7, and the changing value of calculating current passage n, the current variation value are represented with Δ In.Electric current leads to
1 ~ current channel of road 7 has priority, and priority note is represented with Pn.
The priority P n of 1 ~ current channel of current channel 7 sorts according to the absolute value of current variation value Δ In, curent change
The priority of bigger its corresponding current passage n of value Δ In is higher, i.e. the priority P n values of the passage are bigger.
MCU control analog switches switch to the current channel of highest priority, and the collection of the current channel is identified clearly
Zero, and the priority of the current channel is set to 0, the collection mark of other current channels plus 1.When the collection mark of current channel m
Knowledge is more than or when 12, and the priority of current channel m is arranged to highest, i.e., Pm values is arranged to maximum.
When the priority of all passages is identical, MCU will according to 1 ~ 7 order switching electric current passage.
MCU switches primary current passage every 125ms.
Current channel 8 is emphasis Measurement channel, and MCU directly reads mean power by UART from computation chip, and presses
Equation below calculates accumulation electric flux:
Wherein, E is to accumulate electric flux, unit K WH;P is mean power, unit W;T is sampling interval duration, unit ms.
Current channel 1 ~ 7 is common sense channel, and MCU reads real-time current by UART from computation chip, and by such as
Lower formula calculates accumulation electric flux:
Wherein E is to accumulate electric flux, unit K WH;I is transient current, unit A;U is the average voltage level of voltage channel collection,
Unit V;T is sampling interval duration, unit ms.
Embodiment
MCU model ML610Q496, computation chip model RN8209C, analog switch model are 74HC4051D,
The 1st road signal sampling interface of RN8209C and the output Z pins of 74HC4051D connect, and the 2nd tunnel signal acquisition of RN8209 connects
Mouth is connected with current channel 8, and the 3rd tunnel signal acquisition interface of RN8209 is connected with voltage channel.Display module is 12864-
The liquid crystal of 70C-LF-01 models, 12864-70C-LF-01 liquid crystal are connected with MCU by spi bus, and communication module uses RS485
Communication mode, communication chip model Max3085.
With reference to Fig. 2,1 ~ current channel of current channel, 7 priority algorithm of the application is done and is further retouched in detail
State:
Step 201, in AD interrupts flow, the instantaneous current value of current channel n is read.
Step 202, the current variation value Δ In of calculating current passage n, and by Δ In reset current changing value buffering areas,
Interrupt routine terminates.
Step 203, in main flow, sort to Δ I1 ~ Δ I7, using bubbling algorithm, sort from small to large.
Step 204,1 ~ P7 of priority P of 1 ~ current channel of calculating current passage 7.
Step 205, judge that the collection of current channel 1 ~ 7 identifies whether to be greater than or equal to 12 one by one, if current channel m
Collection mark Fm >=12, then Pm is arranged to limit priority, and continue to execute step 206;If Pm < 12, perform step
Rapid 206.
Step 206, passage switching is performed.
Step 207, priority is recalculated, recalculates collection mark.
The foregoing is merely the exemplary embodiment of the present invention, all equivalent substitutions carried out under the scope of the present invention or change
Into etc., it should all be included in the protection scope of the present invention.
Claims (7)
1. a kind of time-sharing multiplex High-accuracy direct current electric energy meter, it is characterised in that the electrical energy meter electricity pressure passageway directly passes through metering
3rd road signal sampling interface connection of chip, is gathered and calculates the average voltage level of the passage in real time by computation chip;Electric current leads to
Road 8 is emphasis sense channel, is directly connected with the 2nd road signal sampling interface of computation chip, is gathered in real time simultaneously by computation chip
Calculate the average current value of the passage;1 ~ current channel of current channel 7 is connected with road analog switch, and mould is controlled by the GPIO of MCU
Intend the gating of switch, only analog switch only exports 1 current channel in the same period, and the 1st of the current channel and computation chip the
Road signal sampling interface connection, computation chip gather and measure the instantaneous current value of the passage.
A kind of 2. time-sharing multiplex High-accuracy direct current electric energy meter according to claim 1, it is characterised in that the current channel
1 ~ current channel 7 is connected with the ADC pins of MCU, and MCU is read in AD interrupt routines and 1 ~ current channel of calculating current passage 7
Instantaneous current value, and the changing value of calculating current passage n, the current variation value are represented with Δ In;1 ~ electric current of current channel leads to
Road 7 has priority, and priority note is represented with Pn.
A kind of 3. time-sharing multiplex High-accuracy direct current electric energy meter according to claim 2, it is characterised in that the current channel
The priority P n of 1 ~ current channel 7 sorts according to the absolute value of current variation value Δ In, its bigger correspondence of current variation value Δ In
The priority of current channel n is higher, i.e. the priority P n values of the passage are bigger.
A kind of 4. time-sharing multiplex High-accuracy direct current electric energy meter according to claim 1, it is characterised in that the MCU controls
Analog switch switches to the current channel of highest priority, and the collection of the current channel is identified and is reset, and the electric current is led to
The priority in road is set to 0, the collection mark of other current channels plus 1;When the collection mark of current channel m is more than or when 12,
The priority of current channel m is arranged to highest, i.e., Pm values are arranged to maximum.
5. a kind of time-sharing multiplex High-accuracy direct current electric energy meter according to claim 4, it is characterised in that described when all logical
When the priority in road is identical, MCU will according to 1 ~ 7 order switching electric current passage;MCU switches primary current passage every 125ms.
A kind of 6. time-sharing multiplex High-accuracy direct current electric energy meter according to claim 1, it is characterised in that the current channel
8 be emphasis Measurement channel, and MCU directly reads mean power by UART from computation chip, and accumulation is calculated as follows
Electric flux:
Wherein, E is to accumulate electric flux, unit K WH;P is mean power, unit W;T is sampling interval duration, unit ms.
A kind of 7. time-sharing multiplex High-accuracy direct current electric energy meter according to claim 1, it is characterised in that the current channel
1 ~ 7 is common sense channel, and MCU reads real-time current by UART from computation chip, and accumulation electricity is calculated as follows
Energy:
Wherein E is to accumulate electric flux, unit K WH;I is transient current, unit A;U is the average voltage level of voltage channel collection,
Unit V;T is sampling interval duration, unit ms.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711033366.9A CN107918051A (en) | 2017-10-30 | 2017-10-30 | A kind of time-sharing multiplex High-accuracy direct current electric energy meter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711033366.9A CN107918051A (en) | 2017-10-30 | 2017-10-30 | A kind of time-sharing multiplex High-accuracy direct current electric energy meter |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107918051A true CN107918051A (en) | 2018-04-17 |
Family
ID=61894962
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711033366.9A Pending CN107918051A (en) | 2017-10-30 | 2017-10-30 | A kind of time-sharing multiplex High-accuracy direct current electric energy meter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107918051A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111198532A (en) * | 2020-01-20 | 2020-05-26 | 北京韬盛科技发展有限公司 | Time-division multiplexing cross start-stop system and control method thereof |
CN112213557A (en) * | 2019-12-20 | 2021-01-12 | 青岛鼎信通讯股份有限公司 | Direct-current metering method for electric energy meter |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1237710A (en) * | 1998-05-28 | 1999-12-08 | 松下电器产业株式会社 | Multiloop detector and divided current converter for said detector |
CN101800875A (en) * | 2010-01-26 | 2010-08-11 | 安凯(广州)微电子技术有限公司 | A kind of channel time-sharing multiplexing method |
CN201749152U (en) * | 2010-07-22 | 2011-02-16 | 广东雅达电子股份有限公司 | Multi-loop direct-current electric energy meter |
CN203037731U (en) * | 2012-12-28 | 2013-07-03 | 深圳市思达仪表有限公司 | Multi-channel direct-current electric energy meter |
CN104678166A (en) * | 2015-03-26 | 2015-06-03 | 南京秦之邦科技有限公司 | System for realizing multiple time-sharing electric energy calculation based on measurement chip |
US20160187399A1 (en) * | 2013-08-07 | 2016-06-30 | S.I.Sv.El. Societa' Italiana Per Lo Sviluppo Dell'elettronica S.P.A. | Method for measuring dynamics of a flow of energy and relevant device and system |
-
2017
- 2017-10-30 CN CN201711033366.9A patent/CN107918051A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1237710A (en) * | 1998-05-28 | 1999-12-08 | 松下电器产业株式会社 | Multiloop detector and divided current converter for said detector |
CN101800875A (en) * | 2010-01-26 | 2010-08-11 | 安凯(广州)微电子技术有限公司 | A kind of channel time-sharing multiplexing method |
CN201749152U (en) * | 2010-07-22 | 2011-02-16 | 广东雅达电子股份有限公司 | Multi-loop direct-current electric energy meter |
CN203037731U (en) * | 2012-12-28 | 2013-07-03 | 深圳市思达仪表有限公司 | Multi-channel direct-current electric energy meter |
US20160187399A1 (en) * | 2013-08-07 | 2016-06-30 | S.I.Sv.El. Societa' Italiana Per Lo Sviluppo Dell'elettronica S.P.A. | Method for measuring dynamics of a flow of energy and relevant device and system |
CN104678166A (en) * | 2015-03-26 | 2015-06-03 | 南京秦之邦科技有限公司 | System for realizing multiple time-sharing electric energy calculation based on measurement chip |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112213557A (en) * | 2019-12-20 | 2021-01-12 | 青岛鼎信通讯股份有限公司 | Direct-current metering method for electric energy meter |
CN111198532A (en) * | 2020-01-20 | 2020-05-26 | 北京韬盛科技发展有限公司 | Time-division multiplexing cross start-stop system and control method thereof |
CN111198532B (en) * | 2020-01-20 | 2021-06-22 | 北京韬盛科技发展有限公司 | Time-division multiplexing cross start-stop system and control method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100583644C (en) | Integrating A/D convertion method and its A/D converter | |
CN208689107U (en) | Novel unicoil power supply sample circuit and its manufactured low-voltage circuit breaker | |
CN104460462B (en) | A kind of compatible with single bipolar analog signal sample circuit | |
CN207067227U (en) | Sample circuit and current measurement circuit | |
CN107422179A (en) | New power supply sample circuit, the power supply method of sampling and its low-voltage circuit breaker | |
CN107918051A (en) | A kind of time-sharing multiplex High-accuracy direct current electric energy meter | |
CN205049678U (en) | Short circuit testing arrangement is opened to camera module | |
CN206505124U (en) | Intellectual monitoring ammeter | |
CN103018550A (en) | Novel electric energy measurement control module of filtering reactive compensation device | |
CN209215480U (en) | A kind of three-phase and four-line intelligent meter of independent measurement neutral line current | |
CN201053976Y (en) | Multi-loop electric energy metering device in low voltage distribution field | |
CN107831358A (en) | A kind of current measurement device based on MAX4373HEUA | |
CN105048830A (en) | Three-phase AC voltage regulation digital control device and control method | |
CN204188704U (en) | A kind of electronic electric energy meter | |
CN208689117U (en) | A kind of internal cell resistance detection system with overcurrent overheat emergency protection function | |
CN207148292U (en) | Data collection station for battery in track traffic | |
CN207096321U (en) | New power supply sample circuit and its low-voltage circuit breaker | |
CN104237631A (en) | Electricity meter based on acquisition of direct voltage signal and current testing method | |
CN202854226U (en) | Zero-cross detection circuit of electric energy metering chip | |
CN104535217B (en) | A kind of multichannel temperature measurement circuit | |
CN208421097U (en) | A kind of line loss acquisition module with analog switch | |
CN207798903U (en) | A kind of separator of the adjustable two-wire system current sensor exported in proportion | |
CN204461518U (en) | A kind of heating type turbine integral type flowmeter | |
CN202916345U (en) | Resistance measuring device | |
CN207037046U (en) | A kind of Buck conversion circuit Installation for Efficiency Measurement of Hydro |
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 |