Design and Implementation of Single-Phase Power
Design and Implementation of Single-Phase Power
Abstract: In order to better analyze the influence of electrical equipment on power grid
fluctuations, a detection system is designed for power quality monitoring. The system uses 51
single-chip microcomputer as the control core, combined with IM1281B single-phase mutual
inductance energy metering module, to collect real-time voltage RMS, current RMS, power
factor, apparent power, active power and other electrical parameters of electrical equipment
connected to the grid. The standard Modbus-RTU is used for communication between IM1281B
and the single-chip microcomputer, which realizes the real-time acquisition and processing of
multiple electrical parameters of the electrical equipment connected to the power grid. The
experimental results show that, the single-phase power quality monitor designed based on
IM1281B is simple in structure, and relatively complete in collecting electrical parameters,
which can meet the needs of power quality analysis.
1. Introduction
With the diversification of electrical equipment, the power quality in the grid is under unprecedented
impact [1-2]. In order to more accurately analyze the influence of electrical equipment on power grid
fluctuations, it is necessary to collect and analyze precisely the electrical parameters such as the voltage,
current, power, electrical energy, power factor, frequency and etc.
According to the performance requirements, functional requirements, system architecture and
composition and other technical standards of power quality monitoring equipment in "General Technical
Requirements for Automatic Detection System of Power Quality Monitoring Equipment" combined
with the actual demand for power monitoring in the current grid [3] , the equipment designed should be
able to at least collect voltage and current signals, and monitor parameters such as voltage deviation,
frequency deviation, three-phase voltage unbalance, harmonics, inter-harmonics, flicker, voltage sag,
swell, short-term interruption and etc. [4] Therefore, the accurate acquisition of electrical parameters of
electrical appliances becomes the key to the power quality monitoring system.
The IM1281B single-phase mutual inductance energy metering module adopts a special
measurement chip, which can effectively measure the voltage RMS, current RMS, power factor,
apparent power, active power and other electrical parameters of single-phase alternating current.
Meanwhile, it adopts standard Modbus-RTU communication protocol, which can easily communicate
with other modules, and with a TTL level interface, it is simple and easy to communicate with the micro-
controller [5-6]. Therefore, the power quality detector designed with the IM1281B single-phase mutual
inductance power metering module is rather cost-effective.
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
EEICE-2022 IOP Publishing
Journal of Physics: Conference Series 2290 (2022) 012046 doi:10.1088/1742-6596/2290/1/012046
In formula (2), R L is the equivalent load resistance of the capacitor output terminal. In the actual
circuit, when R LC = (3 ~ 5)T 2 , the average value of the output voltage after capacitor filtering can be U′O ( AV )
U′O(AV) ≈ 1.2U 2 (3)
Therefore, the average value of the output voltage after capacitive filtering is 10.56V. Although the
rectifier and filter circuit has changed the sinusoidal alternating current into a relatively smooth direct
current, the output voltage is not only affected by the large fluctuation of the power grid, but also changes
with the change of the load resistance. The switching voltage regulator LM2596 of the step-down power
2
EEICE-2022 IOP Publishing
Journal of Physics: Conference Series 2290 (2022) 012046 doi:10.1088/1742-6596/2290/1/012046
management monolithic integrated circuit is adopted to regulate the output of the filtered voltage [8], thus
provide a stable direct current to the single-chip microcomputer and the electric energy metering module.
The LM2596 stabilizes the 10.56V DC input from the first pin and outputs 5V DC through the second
pin.
Input 220V
Transformer
4. Embedded programming
3
EEICE-2022 IOP Publishing
Journal of Physics: Conference Series 2290 (2022) 012046 doi:10.1088/1742-6596/2290/1/012046
and display electrical parameters to the LCD screen. The main program flow is shown in Figure 4. In
the initialization of the system, the configuration of the timer is mainly completed, the main interrupt
switch is turned on, the serial interrupt is enabled by setting the control bit to 1, and the LCD12864
display screen is initialized. In while (1), first call the display function to reveal the initial values of
electrical parameters such as voltage RMS, current RMS, power factor, apparent power, active power,
etc., and then call instructions to IM1281B module to read electrical parameters if the sending flag is
1, thus the electrical parameters of IM1281B are read.
Start
Clear flag
While(1)
Yes
Serial port receives flag
Data transformation
Clear flag
NO
Is the data correct
4
EEICE-2022 IOP Publishing
Journal of Physics: Conference Series 2290 (2022) 012046 doi:10.1088/1742-6596/2290/1/012046
In the actual circuit analysis, the sinusoidal steady-state circuit power state is reflected from three
aspects of a port: RMS voltage U, RMS current I and impedance angle ϕ z , and active power P and
apparent power S, as shown in formula (4) and formula (5) [10].
1 T (4)
P=
T
pdt = UI cos ϕ Z
0
S = UI (5)
where, P is the instantaneous power and T is the period of the sinusoidal steady state circuit. From
formula (4) and formula (5), the relationship between P and S can be deduced as shown in formula (6).
P = S cos ϕ Z (6)
In practical engineering applications, the power factor λ is often used to replace the impedance angle
ϕ z , and the expression is shown in formula (7).
λ = cosϕZ (7)
According to the collected data voltage RMS, current RMS and power factor, the active power P and
apparent power S is calculated, as shown in Table 2.
Table 2. The power record table calculated for different electrical equipment
Voltage RMS Current RMS power Apparent power Active power
Electrical equipment
(V ) ( A) factor ( kV ⋅ A ) ( kV ⋅ A )
number 1 238.89 0.03 0.399 0.00717 0.00286
number 2 235.49 1.49 0.659 0.351 0.231
number 3 232.19 4.70 0.975 1.091 1.064
No.1 and No.2 234.09 1.47 0.655 0.344 0.225
No.1 and No. 3 231.39 4.72 0.979 1.092 1.069
No.2 and No. 3 229.39 6.00 0.864 1.376 1.189
No.1, No.2 and No.3 229.99 6.03 0.865 1.387 1.200
Comparing the apparent power and active power in Table 1 and Table 2, the relative error of apparent
power and active power can be calculated, as shown in Table 3.
Table 3. The relative error record table of apparent power and active power for different electrical
equipment
Electrical equipment Relative error of apparent power(%) Relative error of active power (%)
number 1 2.371 4.90
number 2 0.285 0
number 3 0 0.188
No.1 and No.2 0 0.444
No.1 and No.3 0 0.094
No.2 and No. 3 0.218 0.336
No.1, No.2 and No.3 0.072 0.083
5
EEICE-2022 IOP Publishing
Journal of Physics: Conference Series 2290 (2022) 012046 doi:10.1088/1742-6596/2290/1/012046
As can be seen from Table 3, the relative error rate of apparent power and active power are less than
1% when No. 2 electrical equipment, No. 3 electrical equipment, No. 1 and No. 2 electrical equipment,
No. 1 and No. 3 electrical equipment or No. 2 and No. 3 electrical equipment are working, and so does
to the three electrical equipments of No.1, No. 2 and No. 3 work together, which meets the "General
Technical Requirements for Automatic Detection System of Power Quality Monitoring Equipment". The
relative error of apparent power and active power calculated by the No. 1 electrical equipment alone are
relatively large. The main reason is that the No. 1 electrical equipment has low power, and the effective
bits during data collection are three, whereas the discarding bits also has a certain influence on the
calculation, but the relative error is less than 5%, which also meets the design requirements.
6. Conclusions
Based on IM1281B, the single-phase power quality monitor can measure the voltage RMS, current RMS,
power factor, apparent power, active power and other electrical parameters of the electrical equipment
connected to the grid. The use of IM1281B single-phase mutual inductance energy metering module
simplifies the hardware circuit design, which makes the entire control system structure compact, and the
hardware circuit simple. In terms of program design, serial asynchronous half-duplex communication is
adopted, and the data format adopts MODBUS-RTU protocol to realize the data transmission between
the electric energy metering module and the controller. Analyze the measured and calculated values and
calculate that the relative error of apparent power and active power are both less than 5%, which meets
the general technical requirements of automatic detection systems for power quality monitoring
equipment.
Acknowledgments
The work was completed with the financial support of the Henan Province Science and Technology
Research Project (212102210623, 222102220075, 222102320421), Henan Province Key Scientific
Research Project of higher education (22A413006, 22B460013), Henan Technical Institute School-level
Scientific Research Project (2021-KJ-37, 2020-KJ-26) and Henan Technical Institute’s 2021 Special
Project for Entrepreneurship and Innovation (2021-SC-01).
References
[1] Chen G, Liu W Yang Y, Zheng W, Tu S, Lin S, Zhao L, Zhou B, Yao W 2022 Interval calculation of
static voltage stability margin for AC/DC hybrid power grid considering uncertain fluctuation
of new energy . Power Grid Technology: 1 -11.
[2] Luo W, Yu R, Lan Q, Wu J, Wang M, Xiao S 2021 Load Forecasting and Frequency Fluctuation
Suppression of Southwest Power Grid after Asynchronous Networking . Electric Power
Engineering Technology, 40(03): 42-50.
[3] GB/T 35725-2017, General technical requirements for automatic detection system of power quality
monitoring equipment .
[4] Dugan RC, Mcgranaghan M F 2003 Electrical power systems quality .McGraw-Hill.
[5] Chen R, Ye C, Li A, Chen K, Fang Z 2022 An Internet-of-Things-based power monitoring socket.
Application of Single Chip Microcomputer and Embedded System, 22(02): 18-21+26 .
[6] Yao L Lu X, Zhang K, Huang D 2020 Design of wireless energy meter data acquisition system based
on Zigbee . Automation Instrumentation, 41(01): 77-80.
[7] Wen M 2013 Research on full-bridge LLC resonant converter . Xi'an University of Science and
Technology.
[8] Yang Z, Fan Q. 2018 Design of zero-start DC regulated power supply based on LM2596 chip .
Electronic Measurement Technology, 41(22): 36-39.
[9] Ai B, Xu X Jia Y. 2021 Design and implementation of data acquisition platform based on Modbus
RTU protocol. Special Equipment for Electronic Industry, 50(05): 46-49.
[10] Jin N, Zhang G 2022 A grid cascade collapse model considering the electrical parameters of active
power and apparent power. Guangdong Electric Power, 35(03): 64-68.