Isolated single-phase electric energy measuring ammeter device
Technical Field
The utility model relates to an electric power tech field especially relates to an isolated single-phase electric energy measuring ammeter device.
Background
With the rapid development of economy, the demand of users for electric quantity is greater and greater, and thus the accuracy of measurement of electric quantity is more and more important. Although smart meters are used in many cities, non-smart meters are still used in many areas such as towns and mountainous areas. The traditional mechanical electric meter has the problems of short service life, large measurement error and the like, and a large amount of electric energy is wasted. The power grid company is provided with unnecessary loss, and the power supply user can be provided with unreliable power supply experience, so that the simple and stable intelligent electric energy meter has great practical value and commercial value.
SUMMERY OF THE UTILITY MODEL
The utility model aims at providing an isolated single-phase electric energy measuring ammeter device to solve above-mentioned technical problem.
In order to realize the purpose, the utility model adopts the following technical scheme:
an isolated single-phase electric energy measuring ammeter device comprises an electric quantity metering processor, a host processor, a display, an isolator, an RF transceiver, a JTAG socket, an RS232 interface, a voltage stabilizing chip, a USB interface, a signal indicator lamp, an electric wire connecting terminal and a peripheral circuit;
the electric quantity metering processor is an MSP430AFE253 chip and is used for sampling the values of current and voltage in a single-phase line and simultaneously processing and calculating to obtain the electricity utilization values of active power, reactive power and the like of the line;
the host processor is an STM32F407 processor and is used for receiving an MSP430AFE253 calculated to obtain an electric quantity value, displaying the electric quantity value on an LCD (liquid crystal display) at regular time and sending the electric quantity value to a PC (personal computer) end through a USB (universal serial bus) interface;
the display is an LCD display screen and is used for displaying the electric quantity value sent by the STM32F 407;
the isolator is an ISO7420 chip and an ISO7421 chip, is a low-power-consumption dual-channel isolator and is used for isolating the metering processor MSP430AFE253 from the host processor STM32F407, so that isolation communication becomes possible, and the safety and reliability of the system are guaranteed;
the RF transceiver is a system on chip with the model number of CC2530, can establish a strong network node, and wirelessly transmits data updated by the host processor STM32F407 to an upper computer through a serial port so as to facilitate real-time observation;
the two JTAG sockets are simple horn socket JTAG sockets, one is connected with the MSP430AFE253, and the other is connected with the STM32F407 and used for debugging the chip and the computer end;
the RS232 interface is an RS232 communication port with the model of UT-202D and is used for sending the electric quantity value calculated by the MSP430AFE253 of the metering processor to the PC end;
the voltage stabilizing chip is a TPS77033 chip and is used for stabilizing the voltage of a power supply to 3.3V and supplying power to the STM32F407 of the host processor, so that the reliability of power supply is realized;
the USB interface is a USB A-type female socket and is used for connecting the host processor STM32F407 to the PC end;
the signal indicator lamp is an LED and is used for indicating a correct operation signal of the system;
the wire terminal type 221-412 wire connector joint is used for connecting a household wire and comprises a voltage inlet and a current inlet of the wire so as to collect wire data;
the peripheral circuit is provided with a processing circuit for voltage and current values acquired by a line, a connecting circuit for a voltage stabilizing chip TPS77033 and a safety circuit of an interface, and is used for connecting all modules of the system so as to finish normal operation of the system;
the household electric wire enters the device through the electric wire wiring terminal through the circuit processing, an extra power supply is not needed in the circuit, the circuit supplies power to the system through a voltage stabilizing circuit, then the electric quantity metering processor MSP430AFE253 acquires the voltage and current values of the circuit, the consumed power is calculated within a fixed time, then the calculated value is sent to the host processor STM32F407 through the isolator, the host processor is that the STM32F407 performs operation analysis, the accumulated total power consumption and various related performance data in the circuit are displayed through the LCD display, meanwhile, the data are sent to the PC end through the USB port, the host processor is debugged through the JTAG socket, and the purpose of measuring the single-phase power consumption electric energy of the isolated electric energy is achieved.
Compared with the prior art, the utility model has the advantages of it is following: the utility model discloses when the cost of manufacture is not high, can measure the characteristics that realize automation, the degree of accuracy is high, the measurement is stable to single-phase power consumption.
Drawings
Fig. 1 is a system configuration diagram of the present invention.
Fig. 2 is a schematic diagram of the hardware connection of the device of the present invention.
In the figure: 1 wire connecting terminal, 2 steady voltage chip, 3RS232 interface, 4STM32F407 host computer processor, 5USB interface, 6RF transceiver, 7 peripheral circuits, 8 electricity measurement treater MSP430AFE253, 9JTAG socket, 10 isolators, 11 signal indicator lamps, 12 displays.
Fig. 3 is a frame diagram of the present invention.
Fig. 4 is a flowchart of the procedure of the present invention.
Detailed Description
The invention is explained in further detail below with reference to the figures and the embodiments.
An isolated single-phase electric energy measuring ammeter device comprises an electric quantity metering processor 8, a host processor 4, a display 12, an isolator 10, an RF transceiver 15, a JTAG socket 9, an RS232 interface 3, a voltage stabilizing chip 2, a USB interface 5, a signal indicator lamp 11, an electric wire connecting terminal 1 and a peripheral circuit 7;
the electric quantity metering processor is an MSP430AFE253 chip and is used for sampling the values of current and voltage in a single-phase line and simultaneously processing and calculating to obtain the electricity utilization values of active power, reactive power and the like of the line;
the host processor is an STM32F407 processor and is used for receiving an MSP430AFE253 calculated to obtain an electric quantity value, displaying the electric quantity value on an LCD (liquid crystal display) at regular time and sending the electric quantity value to a PC (personal computer) end through a USB (universal serial bus) interface;
the display is an LCD display screen and is used for displaying the electric quantity value sent by the STM32F 407;
the isolator is an ISO7420 chip and an ISO7421 chip, is a low-power-consumption dual-channel isolator and is used for isolating the metering processor MSP430AFE253 from the host processor STM32F407, so that isolation communication becomes possible, and the safety and reliability of the system are guaranteed;
the RF transceiver is a system on chip with the model number of CC2530, can establish a strong network node, and wirelessly transmits data updated by the host processor STM32F407 to an upper computer through a serial port so as to facilitate real-time observation;
the two JTAG sockets are simple horn socket JTAG sockets, one is connected with the MSP430AFE253, and the other is connected with the STM32F407 and used for debugging the chip and the computer end;
the RS232 interface is an RS232 communication port with the model of UT-202D and is used for sending the electric quantity value calculated by the MSP430AFE253 of the metering processor to the PC end;
the voltage stabilizing chip is a TPS77033 chip and is used for stabilizing the voltage of a power supply to 3.3V and supplying power to the STM32F407 of the host processor, so that the reliability of power supply is realized;
the USB interface is a USB A-type female socket and is used for connecting the host processor STM32F407 to the PC end;
the signal indicator lamp is an LED and is used for indicating a correct operation signal of the system;
the wire terminal type 221-412 wire connector joint is used for connecting a household wire and comprises a voltage inlet and a current inlet of the wire so as to collect wire data;
the peripheral circuit is provided with a processing circuit for voltage and current values acquired by a line, a connecting circuit for a voltage stabilizing chip TPS77033 and a safety circuit of an interface, and is used for connecting all modules of the system so as to finish normal operation of the system;
the household electric wire enters the device through the electric wire wiring terminal through the circuit processing, an extra power supply is not needed in the circuit, the circuit supplies power to the system through a voltage stabilizing circuit, then the electric quantity metering processor MSP430AFE253 acquires the voltage and current values of the circuit, the consumed power is calculated within a fixed time, then the calculated value is sent to the host processor STM32F407 through the isolator, the host processor is that the STM32F407 performs operation analysis, the accumulated total power consumption and various related performance data in the circuit are displayed through the LCD display, meanwhile, the data are sent to the PC end through the USB port, the host processor is debugged through the JTAG socket, and the purpose of measuring the single-phase power consumption electric energy of the isolated electric energy is achieved.
The utility model discloses an operating method: s1: firstly, an installer assembles the device and downloads a program to a chip, the device is installed at an entrance of a resident power consumer after passing a test, a single-phase wire is connected according to an indication position, and the condition that the single-phase wire cannot be reversely connected is surely remembered;
s2: after the power is switched on, whether the indicator light normally flickers or not is observed, and the display of the LCD is 0;
s3: when a user uses electricity, the LCD refreshes electricity consumption data every two seconds and is accompanied by the flickering of the indicator light;
s4: when the user does not use electricity, the system is in a screen-saving mode, so that the electric energy is saved;
s5: a technician can receive data through a serial port to observe the power consumption condition of the user, determine whether the condition of unauthorized modification exists, and accurately measure the electric energy through modifying the correction factor;
s6: the whole device does not need to be adjusted and modified once running under normal conditions, but when data jumps greatly in a short time or does not move for a long time, the serial port sends a password report device to cause problems, and technicians are required to overhaul the device at the moment.
The foregoing is a preferred embodiment of the present invention, and for those skilled in the art to understand the teaching of the present invention, the changes, modifications, replacements and variations to the embodiments will still fall within the protection scope of the present invention without departing from the principle and spirit of the present invention.