Abstract
Highly reliable and flexible control is required for distributed generation (DG) to efficiently connect to the grid. Smart inverters play a key role in the control and integration of DG into the power grid and provide advanced functionalities. In this paper, an energy-based single-phase voltage-source smart inverter (SPV-SSI) of 5 kVA is designed and analyzed in detail. SPV-SSI is capable of supplying the power to local load and the utility load up to the rated capacity of the inverter, injecting the power into the grid, storing the energy in lead-acid battery bank, controlling the voltage at the point of common coupling (PCC) during voltage sags or faults, and making decisions on real-time pricing information obtained from the utility grid through advanced metering. The complete design of smart inverter in dq frame, bi-directional DC-DC buck-boost converter, IEEE standard 1547 based islanding and recloser, and static synchronous compensator (STATCOM) functionalities is presented in this paper. Moreover, adaptive controllers, i.e., fuzzy proportional-integral (F-PI) controller and fuzzy-sliding mode controller (F-SMC) are designed. The performances of F-PI controller and F-SMC are superior, stable, and robust compared with those of conventionally tuned PI controllers for voltage control loop (islanded mode) and current control loop (grid-connected mode).
DECLINING fossil fuel resources and worldwide environmental problems deepen the urgency of transitioning in the direction of sustainable energy resources [
Smart inverters (SIs) play a key role in the control and integration of DG to the power grid [
Single-phase voltage-SIs (SPV-SIs) are widely used in DGU owing to its promising features of bi-directional energy flow competency, low-current harmonics, and high-power factor [
The Smart Grid Initiative (SGI) has been approved as an official policy by the US government to modernize the power grid. The motive of SGI is to boost up the integration of RESs into the power grid, the installation of advanced technologies, real-time electricity pricing and metering [
In this paper, SGI based SPV-source smart inverter (SPV-SSI) is designed and analyzed with combined capability as follows: supplying the power to local load; injecting the power into the power grid; supplying the power to the utility load up to the nominal capacity of the inverter; storing the energy in lead-acid battery bank; controlling the voltage at the point of common coupling (PCC) during voltage faults/sags; and decision making on real-time pricing information acquired from the utility grid via advanced metering. Additionally, fuzzy PI (F-PI) controller and F-SMC are designed to overcome the deficiencies of the conventionally-tuned PI controller. The F-PI controller integrates the advantages of a traditional PI and fuzzy logic controller (FLC). It exhibits faster and better dynamic response, easy implementation, less updated parameters, and zero steady-state error [
The contributions of this paper are listed as follows.
1) dq implementation of the SI and delay based single-phase phase lock loop (PLL) structure.
2) Design of voltage control loop for stand-alone operation and current control loop for grid-connected operation.
3) Efficient design of bi-directional DC-DC buck-boost converter (BDC-DCBBC), static synchronous compensator (STATCOM) capability, and IEEE standard 1547 based islanding and re-closer functionalities.
4) Design of robust and adaptive controllers, i.e., F-PI controller and F-SMC for voltage and current control loops.
5) Comparative analysis of designed controllers with traditionally-tuned PI controllers under various conditions.
6) Effectively operating SI in stand-alone mode, grid-connected mode, and various submodes in each supermode.
The remainder of this paper is organized as follows. Section II presents the mathematical modelling of inverter and the design of control loops. System description along with smart functionalities are elaborated in Section III. Section IV describes the design controllers. Performances are evaluated in Section V. Finally, Section VI concludes the paper.
The control is designed in the dq-rotating reference frame. Two orthogonal components with virtual q-axis are created from single-phase quantities. Two methods are used to obtain the virtual component, i.e., delaying the real component by 1/4 of its own period or derivating the fundamental signal [
The required output signal of the inverter is presented as:
(1) |
where is the required output signal of the inverter; is the signal amplitude; is the fundamental frequency of output voltage; and is the phase angle of the initial system.
(2) |
where is the first derivative of the output equation; and x is the variable (current or voltage).
(3) |
where is the amplitude of imaginary system. After taking the derivative of , becomes:
(4) |
In this paper, delaying the real component by 1/4 of its own period is used in order to acquire the imaginary system. T/4 delay based single-phase PLL structure is shown in
(5) |

Fig. 1 T/4 delay based single-phase PLL structure.
The inverter operates in voltage control loop and current control loop. The structure of designed current and voltage control is presented in
(6) |
(7) |

Fig. 2 Structure of designed current and voltage control.
where is the sinusoidal amplitude; is the phase angle references; and D and Q are the corresponding values of d-axis and q-axis, respectively. is set to be 1 and is set to be 0 as reference voltage. The current references and are calculated from active and reactive reference power, i.e., and using (5) and (8) to (10) for the current loop. The calculated currents are compared with the output line currents which are previously converted to dq reference frame. By applying PI controller, the error is minimized in order to generate required sinusoidal reference for SPWM modulator.
(8) |
(9) |
(10) |
where is the reference current amplitude; is the sinusoidal value of reference current; is the phase angle of reference current; and are the active and reactive components of the power, respectively; and is the local load voltage. From PLL of voltage , the angle is acquired at the LCL filter output.
SPV-SSI has the capacity of 5 kVA, the operation voltage of 120 V, and the frequency of 60 Hz. All nominal parameters are listed in

Fig. 3 Proposed model of SPV-SSI.
The dq frame with a virtual q-axis is used for the implementation of the entire control. The phase information to the control loops is supplied by PLL. Four PI controllers are used for the voltage and the current controllers, i.e., two PI controllers for Vd and Vq and two for Id and Iq. The input to the inverter is supplied by PV panels with a rated voltage of 192 V and a steady-state voltage of 350 V. The DC-link voltage is maintained at 350 V by the DC-DC boost converter. As presented in
The charging and discharging of the battery system are controlled by BDC-DCBBC, whose specification is given in
When SW1 is ON, the converter is in buck mode and the battery is charging. And for boost mode, SW2 is ON and the battery is discharging. For the operation in buck mode, the average current method based current control loop is designed. The K factor-based voltage control loop is designed for boost operation [
(11) |
The value of the inductor is designed by (12). L limits the DC-link ripple current to 50% of .
(12) |
(13) |
Similarly, the boost capacitor is designed in (14). The DC-link ripple voltage is limited to 0.1% of Vdc.
(14) |
For the current control loop of BDC-DCBBC, the type 2 controller of buck-boost converter is used whose transfer function is G2(s) [
(15) |
where K2 is the DC gain of type 2 controller; , is the zero-crossing gain frequency, and is the constant designed from boost phase advance; and .
As confirmed in [
The proportional gain and integral gain of simple PI control are constant. The PI controller fails to work effectively when an external or internal disturbance occurs in the system. Therefore, the gains require the adaptation according to the error to enhance the performance of the PI control scheme. In this paper, fuzzy rules (FRs) are used to update the PI gains.
The design of the F-PI controller is illustrated in

Fig. 4 Design of F-PI controller.
The membership function used in fuzzification and defuzzification steps is triangular membership function (TMF) to map crisp/real input into fuzzy output and vice versa. TMF is given as:
(18) |
where a is the lower limit; b is the upper limit; and m is the peak value of TMF. In addition, . Mathematically, the output of a simple PI controller is represented as:
(19) |
In the above equation, the output of the current controller for grid-connected mode is and that of the voltage controller for islanded mode is .
In the F-PI controller, by using FR, the PI gains are updated in order to minimize the errors.
(20) |
where and are the learning rate gains for and , respectively; and and are the outputs of the fuzzy controller for and , respectively.
In F-SMC, two adaptive nonlinear approaches are used to update the designed controller, i.e., F-PI controller and SMC. F-SMC has the dominant features of F-PI controller and SMC [

Fig. 5 Chattering reduced by F-PI controller and F-SMC.
FRs are used to update gains and for sliding surface (SS). Besides, SS updated by F-PI controller control law is designed. The control law is based on a continuous smooth approximation [
(21) |
where is the bandwidth dependent and an arbitrary constant. Besides, is defined as:
(22) |
The F-PI controller is used to update the value of . The control law for SS based on a discontinuous function is:
(23) |
where is the bulky positive constant; and when and when . PWM control signals are employed in the electrical system and the discontinuous control law (23) causes the oscillation. Alternatively, a continuous smooth estimation based control law is designed which minimizes the chattering phenomena and is presented in (24).
(24) |
where when and when . In addition, the constants of both controllers are presented in
Ⅴ. Results and Discussions
In this section, all the possible premises of the operation of the designed SPV-SSI are discussed and described along with the validation of three case studies. The test bench is discussed in Section III. Based on the smart functionalities, the designed inverter operates in two modes: supermode and submode. The supermode is further categorized into stand-alone M1 and grid-connected according to the compliance with IEEE standard 1547. is further divided into three submodes m1, m2, m3 (, , ) depending on and , where is equal to total input power (PV panels plus battery bank) and is equal to total load (primary VSI plus secondary VSI loads). In mode , is less than , the demand is greater than the supply. In such case, the prioritization of loads occurs. Secondary VSI load is disconnected and the inverter supplies power to the other primary load. The remaining (excess) power is stored in the battery. As presented in
In mode M2, the inverter operates in the following submodes , , and depending on active and reactive power trading for economic consideration of spot-pricing and . The economic consideration variables are the price of selling active power , the price of selling reactive power QS, and a threshold value of electricity unit price from the power grid. The submodes are explained in
In mode , and the inverter offers voltage support compensation to the power grid. In mode , and the inverter supplies real power to and sets the reference of reactive power to zero. Extra active power is stored in a battery bank or sold to the power grid. Mode is based on the options of using inverter power against purchasing the power from the power grid in case of non-availability of DG power.
In this mode, primary VSI and secondary VSI loads are 4 kW and 2 kW, respectively. The panel power is set to be 3 kW while the battery power is set to be 2 kW. At 0.3 s, the inverter operates in grid-connected mode and after 0.3 s, the grid is disconnected due to a fault in the grid. In stand-alone mode, the PV panels are unable to supply the power to the load, thus the battery in the boost mode is also active to supply the power to the load.

Fig. 6 Active and reactive power at inverter and grid sides in mode .
In addition, the reactive power is set to be 0. As the power grid is disconnected, the load is 6 kW and the inverter can supply a maximum 5 kW. Therefore, the secondary load (2 kW) is disconnected and the inverter supplies to the primary load (3 kW from panels and 1 kW from the battery). Furthermore, the responses of F-PI controller and F-SMC are robust, faster, and have less chattering compared with PI controller. Besides, more sensitivity is noticed for disturbances of PI controller system.
The voltage and current at the inverter and grid sides for PI controller, F-PI controller, and F-SMC are depicted in

Fig. 7 Voltage and current at inverter and grid sides for PI controller, F-PI controller, and F-SMC in mode .
In mode , and the inverter offers voltage support compensation to the power grid. Both the inverter loads, i.e., primary and secondary loads are set to be 1 kW. A voltage sag is introduced from 1 s to 1.7 s. By utilizing the STATCOM capability of the inverter, the voltage at the grid side is 1 p.u.. The active and reactive power at the inverter and grid sides for mode are presented in

Fig. 8 Active and reactive power at inverter and grid sides in mode .

Fig. 9 Voltage and current at inverter and grid sides for PI, F-PI, and F-SMC in mode .
Mode is based on the options of using inverter power against purchasing power from the power grid in the event of DG power availability. In this case, the primary and secondary loads of the inverter are set to be 3 kW and 2 kW, respectively. The set marginal preference MCP (2 $/kW) is greater than the real-time grid electricity price PB (1 $/kW). The active power of the power grid is bought to feed the primary and secondary loads as well as charge the battery bank. The buck mode switch is ON for the bi-directional boost converter.

Fig. 10 Active and reactive power at inverter and grid sides for in mode .
The PI controller exhibits large variation, slower response, long settling time, and high chattering compared with those of designed F-PI controller and F-SMC.
The reactive power demands of the inverter load are set to be 0. The active power at the grid side is 8 kW, indicating that the grid is selling the active power. In addition, the responses of F-PI controller and F-SMC are robust and faster.
Ⅵ. Conclusion
In this paper, energy-based 5 kVA SPV-SSI is successfully designed, analyzed, and validated. The designed inverter not only injects active and reactive power but also provides voltage support at PCC during voltage sags/swells. In addition, it also stores surplus energy in lead-acid battery bank and efficiently decides whether to sell or purchase the power to or from the grid based on real-time information through advanced metering. Moreover, a complete design of SI in dq frame, BDC-DCBBC, IEEE standard 1547 based islanding and recloser, and STATCOM functionalities is also discussed. The simulation results for different cases are verified. The performances of F-PI controller and F-SMC are superior, stable, and robust compared with those of conventionally tuned PI controllers both for voltage control loop and current control loop. The dynamic and steady-state performances of the SPV-SSI are enhanced by designed controllers, and the power increases to a great extent. The quality of the voltage and current at the grid side is also refined. Besides, the proposed controller is less sensitive to sudden disturbances, and it exhibits fast dynamic response, low-voltage dips, less oscillations and chattering, and fault-tolerant capability compared with those of the fine-tuned PI controller.
References
F. Blaabjerg, Z. Chen, and S. B. Kjaer, “Power electronics as efficient interface in dispersed power generation systems,” IEEE Transactions on Power Electronics, vol. 19, no. 5, pp. 1184-1194, Sept. 2004. [Baidu Scholar]
K. Zeb, I. Khan, W. Uddin et al., “A review on recent advances and future trends of transformerless inverter structures for single-phase grid-connected photovoltaic systems,” Energies, vol. 11, no. 8, p.1968, Jul. 2018. [Baidu Scholar]
IEC, “Advanced functions for DER inverters,” International Electrotechnical Commission, Tech. Rep. TR-IEC 61850-90-7, Jan. 2012. [Baidu Scholar]
EPRI, “Common functions for smart inverters,” Electric Power Research Institute, Palo Alto, USA, Feb. 2016. [Baidu Scholar]
T. Stetz, F. Marten, and M. Braun, “Improved low voltage grid-integration of photovoltaic systems in Germany,” IEEE Transactions on Sustainable Energy, vol. 4, no. 2, pp. 534-542, Apr. 2013. [Baidu Scholar]
F. Evran, “Plug-in repetitive control of single-phase grid-connected inverter for AC module applications,” IET Power Electronics, vol. 10, no. 1, pp. 47-58, Jan. 2017. [Baidu Scholar]
C. Krismadinata, N. A. Rahim, and J. Selvaraj, “Implementation of hysteresis current control for single-phase grid connected inverter,” in Proceedings of International Conference on Power Electronics Drive Systems, Bangkok, Thailand, Nov. 2007, pp. 1097-1101. [Baidu Scholar]
F. Fuchs, J. Dannehl, and F. W. Fuchs, “Discrete sliding mode current control of grid-connected three-phase PWM converters with LCL filter,” in Proceedings of IEEE International Symposum Industrial Electronics, Barcelona, Spain, Aug. 2010, pp. 779-785. [Baidu Scholar]
G. Shen, X. Zhu, J. Zhang et al., “A new feedback method for PR current control of LCL-filter-based grid-connected-inverter,” IEEE Transactions on Industrial Electronics, vol. 57, no. 6, pp. 2033-2041, Jun. 2010. [Baidu Scholar]
T. Ahmed, K. Nishida, and M. Nakaoka, “Deadbeat current control of LCL-filter for grid connected three-phase voltage source inverter,” in Proceedings of 2011 IEEE Ninth International Conference on Power Electronics and Drive Systems (PEDS), Singapore, Jan. 2011, pp. 459-467. [Baidu Scholar]
C. N. M. Ho, V. S. P. Cheung, and H. S. H. Chung, “Constant-frequency hysteresis current control of grid-connected VSI without bandwidth control,” IEEE Transactions on Power Electronics, vol. 24, no. 11, pp. 2484-2495, Nov. 2009. [Baidu Scholar]
K. Zeb, S. U. Islam, W. U. Din et al., “Design of fuzzy-PI and fuzzy-sliding mode controllers for single-phase two-stages grid-connected transformerless photovoltaic inverter,” Electronics, vol. 8, no. 5, p. 520, May 2019. [Baidu Scholar]
N. Altin and I. Sefa, “dSPACE based adaptive neuro-fuzzy controller of grid interactive inverter,” Energy Conversion and Management, vol. 56, pp. 130-139, Dec. 2011. [Baidu Scholar]
I. Sefa, N. Altin, S. Ozdemir et al., “Fuzzy PI controlled inverter for grid interactive renewable energy systems,” IET Renewable Power Generation, vol. 9, no. 7, pp. 729-738, Apr. 2015. [Baidu Scholar]
M. Cespedes and J. Sun, “Adaptive control of grid-connected inverters based on online grid impedance measurements,” IEEE Transactions on Sustainable Energy, vol. 5, no. 2, pp. 516-523, Apr. 2014. [Baidu Scholar]
X. Fu and S. Li, “Control of single-phase grid-connected converters with LCL filters using recurrent neural network and conventional control methods,” IEEE Transactions on Power Electronics, vol. 31, no. 7, pp. 5354-5364, Jul. 2016. [Baidu Scholar]
R. Carnieletto, D. I. Brandão, S. Suryanarayanan et al., “Smart grid initiative: a multifunctional-single-phase voltage source inverter,” IEEE Transactions on Industry Applications Magazine, vol. 17, no. 5, pp. 27-35, Nov. 2009. [Baidu Scholar]
Mathworks Inc. (2018, Dec.). SimPowerSystems—Model and simulate electrical powersystems. [Online]. Available: http:www.mathworks.com/products/simpower/ [Baidu Scholar]
D. Dong, F. Luo, X. Zhang et al., “Grid-interface bidirectional converter for residential DC distribution systems–part 2: AC and DC interface design with passive components minimization,” IEEE Transactions on Power Electronics, vol. 28, no. 4, pp. 1667-1679, Apr. 2013. [Baidu Scholar]
K. Zeb, W. Din, M. Khan et al., “Dynamic simulations of adaptive design approaches to control the speed of an-induction machine considering parameter uncertainties and external perturbations,” Energies, vol. 11, no. 9, pp. 25, Sept. 2018. [Baidu Scholar]
Kamran Zeb received the B.Sc.E.E. and M.Sc.E.E. degrees from COMSATS Institute of Information and Technology, Abbottabad, Pakistan, in 2013 and 2016, respectively. He is currently working towards the Ph.D. degree from Pusan National University, Busan, South Korea. His research interests include power converters, control systems, renewable energies, robotics, and electrical drive. [Baidu Scholar]
Saif Ul Islam received the B.Sc.E.E. degree from COMSATS Institute of Information and Technology, Abbottabad, Pakistan, in 2013. He is currently working towards the M. S. E. E degree from Pusan National University, Busan, South Korea. His research interests include power electronics, control systems, renewable energies and electrical drive. [Baidu Scholar]
Waqar Uddin received his M.S. degree in electrical engineering from COMSATS University Islamabad, Abbottabad Campus, Pakistan, in 2016. He is currently enrolled as a Ph.D. Research Student in Pusan National University, Busan, South Korea. His research interests include modular multilevel inverter, wind energy system and AC/DC drives. [Baidu Scholar]
Imran Khan received the B.Sc. degree in electrical engineering from University of Engineering and Technology, Peshawar, Pakistan, in 2016. He is currently pursuing the M.S. degree from Pusan National University, Busan, South Korea. His research interests include renewables energies, power converters control design and wind turbine system. [Baidu Scholar]
Muhammad Ishfaq received the B.Sc. degree in electrical engineering from University of Engineering and Technology, Peshawar, Pakistan, in 2016. He is currently working towards the M.Sc. degree from Pusan National University, Busan, South Korea. His research interests include antenna design, PV thermal system, power electronics, modular multilevel converter, control system, and energy management for hybrid system. [Baidu Scholar]
Tiago Davi Curi Busarello received the B.S. degree from the State University of Santa Catarina, Joinville, Brazil, in 2010, and the M.S. and Ph.D. degrees from the University of Campinas, Campinas, Brazil, in 2013 and 2015, respectively. He is a member of the IEEE Industry Application Society and Power Electronics Society. His research interests include power electronics and smart grids. [Baidu Scholar]
Hee-Je Kim received the Ph.D. degree from Kyushu University, Fukuoka City, Japan, in 1990. At present, he is a Professor of Department of Electrical Engineering in Pusan National University, Busan, South Korea, and the group leader of Basic Research Lab. His research interests include dynamic, multi-objective, solar energy conversion, and energy storage. [Baidu Scholar]