Alternating current-direct current hybrid universal intelligent electric meter
Technical Field
The invention relates to an alternating current and direct current hybrid universal intelligent electric meter, and belongs to the technical field of electric power.
Background
The rapid development of economy can be reflected from all aspects, the electricity utilization requirement can be reflected better, and nowadays, every family and every corner have various different electricity utilization articles, so that the accurate measurement of the electric quantity is particularly important. In 2009, China proposes to establish a digital, information, automatic and interactive smart grid, but networked access between an electric energy metering device and an electric power system is still relatively lagged behind. For example, the conventional electric meter only has a metering function and needs manual meter reading, and obviously cannot meet the social development. At present, the development of direct current and alternating current is very rapid, for example, alternating current entering each household and direct current used by electric vehicles at present are greatly required, but the existing smart meters which are provided with measurement of alternating current and direct current at the same time on the market are rare.
Disclosure of Invention
The invention aims to provide an alternating current and direct current hybrid universal intelligent electric meter to solve the problems in the background technology. The problem that above-mentioned existence can be overcome, the alternating current-direct current power supply can be distinguished, can measure the power consumption to exchanging and direct current power supply, when the trouble takes place, can discern the fault signal simultaneously to can send its trouble wave form wireless for the PC end, can show at the display screen simultaneously, realize measurement and control to alternating current-direct current power supply.
In order to achieve the purpose, the invention adopts the following technical scheme: an alternating current and direct current hybrid universal intelligent electric meter comprises a metering module and a main control module;
the metering module includes: the voltage sensing module and the current sensing module are used for converting and processing a voltage and current instantaneous value of a line to be measured, so that the measuring chip can sample to obtain voltage and current information meeting a sampling standard;
the metering chip module is controlled by the main controller, calculates and processes voltage and current instantaneous values in the sampling line and transmits the voltage and current instantaneous values to the main controller;
the isolation module is used for photoelectrically isolating the metering chip from the main controller and avoiding mutual interference;
the main control module comprises: the device comprises a main controller, a digital display module, a liquid crystal display module and a wireless communication module;
the main controller is used for controlling the parameters of the sampling circuit of the metering chip to carry out calculation processing and other function management;
the digital display module is used for displaying the electricity utilization parameters calculated by the main controller;
the liquid crystal display module is used for displaying the fault current when the main controller judges that the fault occurs;
the wireless communication module is used for receiving and sending information.
The voltage and current sensing module respectively uses 1 Hall voltage sensor and 2 current sensors, can respectively convert AC/DC circuit parameters into proportional AC/DC signals, is connected to 3 ADC sampling inlets of current and voltage input of a metering chip, the metering chip adopts a metering chip RN8209D, is a special metering chip for preventing electricity theft in a power grid, provides two paths of current and one path of voltage effective value measurement, can measure AC as well as other chips, can also realize measurement of DC circuit electric energy, needs to increase DC offset correction as different from AC measurement, provides a practical basis for realizing AC/DC hybrid use, is controlled by a main controller to sample and calculate different AC/DC circuits, the isolation module adopts an ISO7420 isolation device of TI company, realizes isolated communication between the metering module and a main control module, ensures safe operation, and adopts a STM32F407 minimum system as a processing unit, the device comprises a sampling circuit for controlling a metering chip, an AC/DC power supply, a digital tube module 5, a liquid crystal display module, a CC2530 system on chip, a power supply module and a switch network, wherein the sampling circuit is used for controlling the metering chip to distinguish information, carrying out corresponding power calculation and managing the output of other functional modules, the digital tube module is used for displaying electric quantity data obtained by calculation by adopting a 5-bit common-cathode digital tube, the liquid crystal display module is used for displaying fault current waveforms by adopting a 0.96-inch OLED liquid crystal display screen, the wireless communication module is used for realizing man-machine interaction, and the power supply module supplies.
A control method of AC/DC hybrid universal intelligent electric meter, system power-on reset, after system program initialization, firstly judging whether the last nixie tube updated data has passed 2s, if yes, updating new metering parameter, and sending active power to upper computer through CC2530, if not, waiting whether main controller STM32F407 has produced 1s interrupt mark, if not, continuing waiting, reading data sampled by metering chip RN8209D to judge whether it is AC or DC, after electric energy accumulation, if it is DC, power correction (when AC, the metering chip has this function), then setting flag bit TIME +1 for representing TIMEs, when TIME is greater than set threshold, it is no fault in this period, resetting, if not, continuing down running, at this TIME, judging whether electric arc occurs in shoulder state through existence of sampling current waveform zero crossing point region, when the shoulder area is judged to appear, the waveform is displayed by an OLED, a counting variable FAULT +1 is used, when the FAULT is larger than a set threshold value, electric arcs frequently appear in a short period of time in the past, the main line has problems, at the moment, the electric arcs are sent to a control end through a wireless module to request to cut off power supply, the safety of a power user is guaranteed, and if the electric arcs do not appear, the system is judged to be normal, and the next cycle is carried out.
Compared with the prior art, the invention has the beneficial effects that:
1 because of different AC and DC power supply properties, for AC circuit, the voltage and current directions are changed at any time
The phase difference exists between the two circuits, and the direct current circuit has no phase difference, so that calculation formulas of the alternating current and direct current power supplies for the power are different, and the main controller controls the metering chip to calculate, so that the power calculation of the alternating current and direct current circuit is realized.
2 due to the programmability of the main controller, all parameters in the circuit can be analyzed and processed, and the method can be used for analyzing and processing all parameters in the circuit
And the required power utilization parameters in the circuit are displayed to users and operators.
3, the main circuit is in failure and is reflected on the current voltage waveform, so that whether the system is in failure or not can be judged by programming
And the on-line monitoring function is realized when a fault occurs, and the intelligent monitoring system is more intelligent.
4 through the wireless transmission module, realize remote control, but remote monitoring circuit parameter to can compile it
And (4) performing course correction.
5 because the single chip can process and control data without pressure, the use of a fast speed is not needed
The ARM control chip reduces the manufacturing cost and is simple and convenient to control.
6 because the metering chip can gather two paths of current, flow in and flow out, so the condition of stealing electricity can also be prevented.
Drawings
FIG. 1 is a schematic circuit diagram of an AC/DC hybrid universal intelligent electric meter according to the invention;
FIG. 2 is a circuit diagram of the AC/DC hybrid universal intelligent electric meter according to the invention;
fig. 3 is a flow chart of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely explained below with reference to the drawings in the embodiments of the present invention.
An alternating current and direct current hybrid universal intelligent electric meter comprises a metering module 1 and a main control module 2;
the metering module 1 comprises: the device comprises a voltage sensing module 3, a current sensing module 4, a metering chip module 5 and an isolation module 6, wherein the voltage sensing module 3 and the current sensing module 4 are used for converting and processing a voltage and current instantaneous value of a line to be measured, so that the metering chip can sample to obtain voltage and current information meeting a sampling standard;
the metering chip module 5 is controlled by the main controller, calculates and processes voltage and current instantaneous values in a sampling line and transmits the voltage and current instantaneous values to the main controller;
the isolation module 6 is used for photoelectrically isolating the metering chip from the main controller and avoiding mutual interference;
the main control module 2 includes: the system comprises a main controller 7, a digital display module 8, a liquid crystal display module 9 and a wireless communication module 10;
the main controller 7 is used for controlling the parameters of the sampling circuit of the metering chip to carry out calculation processing and other function management;
the digital display module 8 is used for displaying the electricity utilization parameters calculated by the main controller;
the liquid crystal display module 9 is used for displaying the fault current when the main controller judges that the fault occurs;
the wireless communication module 10 is used for receiving and transmitting information;
the voltage and current sensing module 1 respectively uses 1 Hall voltage sensor and 2 current sensors, can respectively convert AC/DC circuit parameters into proportional AC/DC signals, is connected to 3 ADC sampling inlets of current and voltage input of the metering chip 2, the metering chip 2 adopts a metering chip RN8209D, is a special metering chip for preventing electricity theft in a power grid, provides two paths of current and one path of voltage effective value measurement, can measure AC as well as other chips, can also realize measurement of DC circuit electric energy, needs to increase DC offset correction as different from AC measurement, provides a practical basis for realizing mixed use, is controlled by a main controller to sample and calculate different circuits, the isolation module 3 adopts an ISO7420 TI isolation device of a company to realize isolated communication between the metering module and a main control module and ensure safe operation, the AC/DC controller 4 adopts an STM32F407 minimum system as a processing unit, the device is used for controlling a sampling circuit of a metering chip to distinguish alternating current and direct current to carry out corresponding power calculation and managing the output of other functional modules, a 5-bit common-cathode nixie tube is used for displaying calculated electric quantity data for the nixie tube module 5, a 0.96-inch OLED liquid crystal display screen is used for displaying fault current waveforms for the liquid crystal display module 6, a wireless communication module 7 is a CC2530 system on chip and is used for realizing man-machine interaction, and a power supply module 8 supplies power to a single chip microcomputer by utilizing a TPS77033 voltage stabilizing chip in a type through a switch network.
A control method of AC/DC hybrid universal intelligent electric meter, system power-on reset, after system program initialization, firstly judging whether the last nixie tube updated data has passed 2s, if yes, updating new metering parameter, and sending active power to upper computer through CC2530, if not, waiting whether main controller STM32F407 has produced 1s interrupt mark, if not, continuing waiting, reading data sampled by metering chip RN8209D to judge whether it is AC or DC, after electric energy accumulation, if it is DC, power correction (when AC, the metering chip has this function), then setting flag bit TIME +1 for representing TIMEs, when TIME is greater than set threshold, it is no fault in this period, resetting, if not, continuing down running, at this TIME, judging whether electric arc occurs in shoulder state through existence of sampling current waveform zero crossing point region, when the shoulder area is judged to appear, the waveform is displayed by an OLED, a counting variable FAULT +1 is used, when the FAULT is larger than a set threshold value, electric arcs frequently appear in a short period of time in the past, the main line has problems, at the moment, the electric arcs are sent to a control end through a wireless module to request to cut off power supply, the safety of a power user is guaranteed, and if the electric arcs do not appear, the system is judged to be normal, and the next cycle is carried out.
The principle of the invention is as follows: the line parameters of the original line are converted through the voltage and current sensing module, the selected sensor module can convert both alternating current and direct current, which is the basis for realizing alternating current and direct current hybrid use, then the current and voltage instantaneous values in a professional metering chip sampling circuit are determined by the chip function, the power calculation can be carried out on alternating current and direct current, which is an indispensable important reason for realizing the alternating current and direct current hybrid electric meter, the main controller analyzes and calculates the obtained voltage and current instantaneous value data through controlling the metering chip, the calculated electric energy is accumulated, thereby realizing the function of the alternating current and direct current hybrid electric meter, and the electric energy is displayed through a digital display tube at regular time, when the main circuit breaks down, the line generates electric arc, the current waveform can generate a flat shoulder area with zero crossing, and the main controller judges whether the flat shoulder area exists through the threshold number of the zero crossing point, if the shoulder area appears in the judgment, the current data is stored and displayed on the liquid crystal module, whether the fault occurs or not is judged by judging the frequency of the shoulder area within a certain time through a frequency threshold, when the fault occurs, the current data is wirelessly sent to a remote control personnel, the power supply is cut off, the AC/DC power supply can be measured, the fault monitoring effect is achieved, the defect of the existing measuring ammeter is overcome, and the practical effect is better.
The foregoing is a preferred embodiment of the present invention, and it will be apparent to those skilled in the art that variations, modifications, substitutions and alterations can be made in the embodiment without departing from the principles and spirit of the invention.