Efficient intelligent socket power calibration method
Technical Field
The invention relates to the field of intelligent sockets, in particular to a high-efficiency power calibration method for an intelligent socket.
Background
The intelligent socket adopts AC220V power supply, and built-in measurement chip, data processing chip, mechanical button, LED lamp etc. not only can regard as ordinary socket to use, can also count data such as use electric quantity. DL/T448-2016 technical management regulations for electric energy metering devices, a 220V single-phase electric energy metering device belongs to a V-type electric energy metering device, and the accuracy grade of active power is not lower than 2 grade, namely 2 percent. In the production process of the intelligent socket, data output by the metering chip needs to be corrected, and errors are reduced.
Existing correction schemes generally include the following two types:
1. the power meter + the load(s),
adopting a power meter calibration mode;
2. UPS power/regulator + multimeter + incandescent lamp load,
the UPS is adopted to generate a stable alternating current power supply, the multimeter is used for reading the voltage value and the current value after the load is carried, and the apparent power of the load is calculated through the voltage value and the current value and is used for active power calibration.
However, the input and output of currently used metrology chips, such as HLW8012, are linear. The traditional mode of directly writing in actual power into the measurement chip is not suitable, if come to directly introduce the measurement chip with the measurement result, can introduce new error, and the second comes all to need to measure, connects the host computer to write in data, and is inefficient, is difficult to rectify in batches greatly.
The invention aims to design an efficient intelligent socket power calibration method aiming at the problems in the prior art.
Disclosure of Invention
In view of the problems in the prior art, the present invention provides an efficient method for calibrating power of a smart jack, which can effectively solve the problems in the prior art.
The technical scheme of the invention is as follows:
an efficient smart jack power calibration method, the method comprising the steps of:
s1, the correction module of the socket to be calibrated stores the reference power value W1;
s2, electrically connecting the adjustable power supply and the load, and adjusting the adjustable power supply to make the active power of the load W1;
s3, the intelligent socket is electrically connected between the adjustable power supply and the load, and the load power measured by the metering chip of the socket to be calibrated is W2;
and S4, the correction module of the socket to be calibrated calculates a correction factor K which is W1/W2, and the correction module corrects the output load power W3 which is W2.
Further, the adjustable power supply is an alternating current variable frequency voltage stabilizing source.
Further, the power factor of the load is 0.9-1. Further, the load is an incandescent lamp.
Step S4 further includes a key electrically connected to the calibration module.
In step S4, after the calibration module receives the key-press signal, the calibration module calculates a calibration factor K equal to W1/W2, and the calibration module calibrates the load power W3 equal to W2.
Accordingly, the present invention provides the following effects and/or advantages:
1) the method changes the traditional method of directly inputting accurate power values into the metering chip, and adjusts and corrects the output power of the metering chip by the correction factor K according to the linear relation between the input power and the output power of the metering chip to make the output power approach to the real power.
2) According to the method, the metering chip is electrically connected with the correction module, the correction module directly obtains the output power W2 of the metering chip and the W1 stored by the correction module, the correction factor K is obtained through calculation, any external equipment, an upper computer and the like are not needed in the whole process, and the correction module automatically calculates and automatically adjusts according to the K. The calibration can be completed after the load is connected, the calibration efficiency is improved, and a large amount of labor cost is saved
3) The method is also provided with a key, and the correction module is started to calculate and correct by acquiring the change condition of the key. The correction can be done regularly. The staff only need press the button can automatic correction, reduced the manual work and obtained real power, adjustment, access host computer and write in etc. operation to improve more real work efficiency greatly.
4) The method adopts the adjustable power supply and the load with the power factor close to 1, and the power of the load can be more accurately close to W1 by adjusting the power of the load through the adjustable power supply.
It is to be understood that both the foregoing general description and the following detailed description of the present invention are exemplary and explanatory and are intended to provide further explanation of the invention as claimed.
Drawings
FIG. 1 is a schematic flow diagram of the process.
Fig. 2 is a circuit diagram adopted in the present embodiment.
Detailed Description
To facilitate understanding of those skilled in the art, the structure of the present invention will now be described in further detail by way of examples in conjunction with the accompanying drawings:
example one
With reference to figure 1 of the drawings,
an efficient smart jack power calibration method, characterized by: the method comprises the following steps:
s1, the correction module of the socket to be calibrated stores the reference power value W1;
s2, electrically connecting the adjustable power supply and the load, and adjusting the adjustable power supply to make the active power of the load W1;
s3, the intelligent socket is electrically connected between the adjustable power supply and the load, and the load power measured by the metering chip of the socket to be calibrated is W2;
and S4, the correction module of the socket to be calibrated calculates a correction factor K which is W1/W2, and the correction module corrects the output load power W3 which is W2.
Further, the adjustable power supply is an alternating current variable frequency voltage stabilizing source.
Further, the power factor of the load is 0.9-1.
Further, the load is an incandescent lamp.
Step S4 further includes a key electrically connected to the calibration module.
In step S4, after the calibration module receives the key-press signal, the calibration module calculates a calibration factor K equal to W1/W2, and the calibration module calibrates the load power W3 equal to W2.
Specifically, referring to fig. 2, the metering chip adopted in this embodiment is the HLW8012, the HLW8012 obtains a current value and a voltage value of the load, and after calculating to obtain an output power, the HLW8012 outputs an output frequency F linearly related to the output power, and then converts the frequency F into a corresponding power through the MCU.
The MCU is also used as a correction module, acquires an output frequency F, obtains the load power measured by the metering chip as W2 through the frequency F conversion, and calculates K to W1/W2. For example, the reference power value W1 is 100W, the load power measured by the measurement chip is W2 is 95W, and K is W1/W2 is 1.0526. The MCU corrects the load power measured by the metering chip to obtain W3-W2-K-95-W1.0526-99.997W.
The percentage error is (W1-W3)/W1 is 0.3%, and the method meets the technical management regulations of electric energy metering devices (DL/T448-2016).
The above description is only a preferred embodiment of the present invention, and all equivalent changes and modifications made in accordance with the claims of the present invention should be covered by the present invention.