Novel Control Strategy for Enhancing Microgrid Operation Connected to Photovoltaic Generation and Energy Storage Systems

: Recently, the penetration of energy storage systems and photovoltaics has been signiﬁcantly expanded worldwide. In this regard, this paper presents the enhanced operation and control of DC microgrid systems, which are based on photovoltaic modules, battery storage systems, and DC load. DC–DC and DC–AC converters are coordinated and controlled to achieve DC voltage stability in the microgrid. To achieve such an ambitious target, the system is widely operated in two different modes: stand-alone and grid-connected modes. The novel control strategy enables maximum power generation from the photovoltaic system across different techniques for operating the microgrid. Six different cases are simulated and analyzed using the MATLAB/Simulink platform while varying irradiance levels and consequently varying photovoltaic generation. The proposed system achieves voltage and power stability at different load demands. It is illustrated that the grid-tied mode of operation regulated by voltage source converter control offers more stability than the islanded mode. In general, the proposed battery converter control introduces a stable operation and regulated DC voltage but with few voltage spikes. The merit of the integrated DC microgrid with batteries is to attain further ﬂexibility and reliability through balancing power demand and generation. The simulation results also show the system can operate properly in normal or abnormal cases, thanks to the proposed control strategy, which can regulate the voltage stability of the DC bus in the microgrid with energy storage systems and photovoltaics. the DC microgrid. The system is simulated for 6 s and the results are analyzed for each case. Results show that an integrated DC microgrid with batteries achieves more ﬂexibility and reliability in the system by balancing power demand and generation. The stability


Introduction
Global warming and carbon dioxide emissions, attributed to traditionally used energy sources, have become severe issues in the world for the last few years. Hence, the improvement of renewable energy sources (RES) has gained great research interest to mitigate and reduce such risks. Some RES, such as photovoltaic cells or wind turbines, are well-developed since they are clean and cost-effective [1][2][3]. However, other sources such as fuel cells and biomass are still in their growth stage [4].
Microgrid systems, which are classified as AC or DC microgrids, could merge RES with household and industrial loads [5][6][7]. The differences between both types of microgrids as well as their advantages are deeply discussed in the literature [8,9]. In fact, power electronic devices (PED) have recently become a must in grid integration, since photovoltaic systems power electronic devices (PED) have recently become a must in grid integration, since photovoltaic systems output DC power while wind systems' output is in the form of variable frequency/voltage AC power. Additionally, some modern electronic loads, such as computers and plug-in hybrid electric vehicles, and even traditional AC loads such as induction motors, require DC power when driven by a variable-speed drive. Consequently, DC microgrids have been proven as one of the most efficient and cost-effective systems in the integration of RES with loads, as they decrease the AC-DC and DC-AC power conversion stages compared to AC microgrids [10,11]. Machine learning and artificial intelligence have shown promising performance in different electrical engineering applications [12][13][14][15][16] as well as power system components, e.g., power transformers and high voltage transmission lines [17][18][19][20][21][22][23]. Figure 1 illustrates the microgrid components in which the load and the diesel generator along with the wind turbines are connected to the AC side. In turn, PV units and battery energy storage systems (BESS) are tied to the DC side which is connected to the AC side by DC/AC inverter. Among different RES merged with DC microgrids, photovoltaic (PV) cells are considered clean and scalable. PV microgrids operate in islanded mode to supply power to a small community or are tied to a grid as a distributed generator. However, a PV system is an intermittent source of energy as it depends on weather conditions and whether the sun is shining [24,25]. To overcome such drawbacks, energy storage systems (ESS) such as batteries or supercapacitors should be applied in the microgrid to attain smooth and reliable power generation from the PV system. ESS is charged during sunlight hours when PV power exceeds load demand, while during peak times, shortages of power generation, or unstable generation of PV, ESS discharge their energy [26][27][28]. The PV systems are widely operated in two modes of operation: stand-alone and grid-connected modes [29- Among different RES merged with DC microgrids, photovoltaic (PV) cells are considered clean and scalable. PV microgrids operate in islanded mode to supply power to a small community or are tied to a grid as a distributed generator. However, a PV system is an intermittent source of energy as it depends on weather conditions and whether the sun is shining [24,25]. To overcome such drawbacks, energy storage systems (ESS) such as batteries or supercapacitors should be applied in the microgrid to attain smooth and reliable power generation from the PV system. ESS is charged during sunlight hours when PV power exceeds load demand, while during peak times, shortages of power generation, or unstable generation of PV, ESS discharge their energy [26][27][28]. The PV systems are widely operated in two modes of operation: stand-alone and grid-connected modes [29][30][31][32][33]. During the stand-alone mode, ESS compensates for the shortage of power generated by the PV modules, and if the stored power was insufficient, the system undergoes load shedding to meet the system requirements [34]. On the other hand, the utility grid manages to achieve power balance and DC voltage stability in the grid-tied mode [35]. Different strategies have been proposed for the control of DC microgrids. Standalone PV system control with a battery storage system through a bidirectional buck-boost converter is discussed in [36], with the aim of maintaining DC voltage stability. A control strategy for the integrated DC microgrid under variable load demand and different insolation levels through islanded mode and grid-connected mode is demonstrated in [37]. A hybrid AC/DC microgrid control that can manage and regulate power flow with both DC and AC buses in gridconnected and islanded modes is presented in [38]. Some limitations on battery discharge and grid power transfer are simulated in [39].
In this paper, the integration of a PV system, a battery storage system, and DC load in a DC microgrid is simulated using the Simscape power systems toolbox, MATLAB/Simulink (2018b, MathWorks Inc., Natick, MA, USA) platform. The effects of various controllers on the voltage stability of the system is observed during different solar irradiation cases, load demands, batteries, and grid power transfers. In particular, DC-DC and DC-AC converters are managed to achieve DC voltage stability in the microgrid while the system is operated in two practical modes: (1) stand-alone and (2) grid-connected. The novelty of this work is that different operating techniques of the microgrid are simulated using the traditional Direct-Quadrature (DQ) control strategy in cooperation with the voltage current controllers, where the updated voltage-oriented current control regulates DC voltage and ensures power balance between sources and load. Additionally, maximum power generation from the photovoltaic system can be attained by the novel control strategy across different techniques for operating the microgrid. The proposed battery converter control can introduce a stable operation and regulate DC voltage. The advantage of the integrated DC microgrid with batteries is that it accomplishes better flexibility and reliability while balancing power demand and generation. Accordingly, the microgrid can perform properly in both normal and sudden variation cases, thanks to the proposed control strategy that improves the voltage stability of the DC bus interconnected with energy storage systems and photovoltaics.
The rest of the paper is organized as follows: The proposed PV-based DC microgrid structure and controller modeling are analyzed in Section 2. Simulation results are presented in Section 3. Finally, the conclusions drawn from the results are presented in Section 4.

System Configuration and Modeling
The configuration of the proposed PV microgrid includes (1) PV arrays with the DC-DC boost converter and maximum power point tracking (MPPT), (2) a battery energy storage system (BESS) with DC-DC bidirectional buck-boost converters, (3) a voltage source converter (VSC) in the case of the grid-tied system. The utility grid is represented as the three-phase ideal voltage source. The BESS is used to maintain the power balance between PV power generation and the load demand in the islanded mode. A typical radial DC microgrid configuration is shown in Figure 2. Different microgrid structures are discussed in references [35,40,41]. The PV based microgrid is controlled through a MPPT controller, a BESS local control unit that charge-discharges the battery bank based on the operation mode and a VSC controller. Table 1 introduces comparative analysis of various VSC control strategies.

Control Method Operation Advantages Disadvantages
Voltage Droop Control [42] • Selects the droop parameters based on the steady-state analysis. Inner loop controls current while an outer loop regulates DC voltage.

•
Reduces the effects of DC voltage disturbances

•
Reference current control could diverge in any sudden change during grid operation.
Vector Current Controller [43,44] • Steady state operation into the d-q axis to control active power and reactive power separately.

•
Fast dynamic response.

•
Delivers better power quality during harmonics and grid disturbances.

•
Achieves poor performance when it is applied to a DC link connected to a weak AC network.
Voltage Controller [45] • Direct control of active power, reactive power and power angle.

•
Simple and easy process.
• Active power and reactive power cannot be controlled independently.
• Cannot limit the current flowing into the converter.

Photovoltaic System
The main source of power supply in the DC microgrid is the photovoltaic system which is controlled to operate at the maximum power point (MPP). Consequently, PV cell model representation has become an important field of study. Although there are several equivalent circuits to represent the PV array, the typical and most commonly used one is The PV based microgrid is controlled through a MPPT controller, a BESS local control unit that charge-discharges the battery bank based on the operation mode and a VSC controller. Table 1 introduces comparative analysis of various VSC control strategies. • Reduces the effects of DC voltage disturbances.
• Reference current control could diverge in any sudden change during grid operation.
Vector Current Controller [43,44] • Steady state operation into the d-q axis to control active power and reactive power separately.
• Fast dynamic response.

•
Delivers better power quality during harmonics and grid disturbances.
• Achieves poor performance when it is applied to a DC link connected to a weak AC network.
Voltage Controller [45] • Direct control of active power, reactive power and power angle.
• Simple and easy process.
• Active power and reactive power cannot be controlled independently. •

Photovoltaic System
The main source of power supply in the DC microgrid is the photovoltaic system which is controlled to operate at the maximum power point (MPP). Consequently, PV cell model representation has become an important field of study. Although there are several equivalent circuits to represent the PV array, the typical and most commonly used one is the single-diode circuit as it is characterized by its simplicity and accuracy. It is known also as the five-parameter model. The circuit shown in Figure 3 combines a photo-generated controlled current source parallel to a single diode, series resistance, and parallel resistance representing power losses [46]. the single-diode circuit as it is characterized by its simplicity and accuracy. It is known also as the five-parameter model. The circuit shown in Figure 3 combines a photo-generated controlled current source parallel to a single diode, series resistance, and parallel resistance representing power losses [46].
The photovoltaic cell is constructed based on P-N junctions, which are made from semiconductor materials. Silicon is dominantly used due to its abundance, non-toxicity, high and stable cell efficiencies [47]. The I-V characteristic of the solar cell is given by implicit and nonlinear equations as follows: In an array, PV modules are connected in series and in parallel. A group of PV cells is connected together in series to form a string, then the group of strings is connected in parallel to form an array. The current-voltage relationship of the array is affected by these connections as given by [48]: where is the electronic charge, is the Boltzmann constant, is the ideality factor, is the cell temperature, represents a current source created by sunlight known as a photocurrent, i.e., irradiance current, is the diode saturation current, is the series resistance, is the shunt resistance, is the number of cells connected in series in the array, is the number of strings in parallel, and are the current and voltage outputs of the PV array, respectively.
PV systems deliver varying power depending on solar temperature and irradiation. As a result, MPPT should take place to optimize the power that can be delivered by PV cells. MPP differs according to light intensity and cell temperature and isn't a particular operating point on the P-V curve. Hence, a control technique is applied to the PV array with a boost converter to control its duty cycle to drive the system to operate at its optimal value [49].
There are various methods to implement MPPT tracking [50]. The most common methods are incremental conductance (IC) and perturb and observe (P&O). The IC technique has the advantage of a fast response to changes in irradiation and temperature. Moreover, it can determine when MPPT reaches the MPP during these changes while The photovoltaic cell is constructed based on P-N junctions, which are made from semiconductor materials. Silicon is dominantly used due to its abundance, non-toxicity, high and stable cell efficiencies [47]. The I-V characteristic of the solar cell is given by implicit and nonlinear equations as follows: In an array, PV modules are connected in series and in parallel. A group of PV cells is connected together in series to form a string, then the group of strings is connected in parallel to form an array. The current-voltage relationship of the array is affected by these connections as given by [48]: where q is the electronic charge, K is the Boltzmann constant, n is the ideality factor, T is the cell temperature, I g represents a current source created by sunlight known as a photocurrent, i.e., irradiance current, I o is the diode saturation current, R S is the series resistance, R P is the shunt resistance, N s is the number of cells connected in series in the array, N p is the number of strings in parallel, I PV and V PV are the current and voltage outputs of the PV array, respectively. PV systems deliver varying power depending on solar temperature and irradiation. As a result, MPPT should take place to optimize the power that can be delivered by PV cells. MPP differs according to light intensity and cell temperature and isn't a particular operating point on the P-V curve. Hence, a control technique is applied to the PV array with a boost converter to control its duty cycle to drive the system to operate at its optimal value [49].
There are various methods to implement MPPT tracking [50]. The most common methods are incremental conductance (IC) and perturb and observe (P&O). The IC technique has the advantage of a fast response to changes in irradiation and temperature. Moreover, it can determine when MPPT reaches the MPP during these changes while P&O oscillates around the MPP [51,52]. IC is implemented based on the study of the P-V curve; the MPP is reached when dP/ dV = 0. The equations of the IC method are [53]: As shown in the previous equations, the output incremental conductance equals the negative of the instantaneous output conductance at the MPP in the IC method. MPPT controls the duty cycle of the DC-DC boost converter to reach the condition (dI/dV = −I/V). The flow chart of IC MPPT in Figure 4 shows the algorithm. If (9) is satisfied, the duty cycle of the converter needs to be increased in order to increase the operating voltage to attain MPP, and vice versa if (10) is satisfied.
As shown in the previous equations, the output incremental conductance equals the negative of the instantaneous output conductance at the MPP in the IC method. MPPT controls the duty cycle of the DC-DC boost converter to reach the condition ( / = − / ). The flow chart of IC MPPT in Figure 4 shows the algorithm. If (9) is satisfied, the duty cycle of the converter needs to be increased in order to increase the operating voltage to attain MPP, and vice versa if (10) is satisfied.

Battery Energy Storage System
Solar power generation may exceed or fall behind load demand. In addition, intermittency of PV power leads to the need for ESS to store the surplus power, supply power when there are deficits, and maintain grid stability during fluctuations resulting from changes in weather conditions like cloud shadows on the PV array. The storage module consists of a Lithium-ion battery bank and a bidirectional DC-DC buck-boost converter. Lithium-ion batteries have high energy capacity, low maintenance needs, and a robust life cycle. The control of the bidirectional buck-boost converter regulates charging and discharging of the BESS based on DC bus voltage, so the control is designed in bus monitoring (BM) mode [54]. The battery model shown in Figure 5 can be modeled through a general dynamic model that can be described by the equations [55]: where, changes in weather conditions like cloud shadows on the PV array. The st consists of a Lithium-ion battery bank and a bidirectional DC-DC buck-bo Lithium-ion batteries have high energy capacity, low maintenance needs, an cycle. The control of the bidirectional buck-boost converter regulates cha charging of the BESS based on DC bus voltage, so the control is designed in ing (BM) mode [54]. The battery model shown in Figure 5 can be modeled t eral dynamic model that can be described by the equations [   The storage local control unit adjusts battery current to control charge and discharge of the battery by providing duty cycle to the converter as introduced in Figure 6. Hence, DC bus voltage remains stable.

Grid and Voltage Source Converter
The grid circuit is composed of a three-phase AC voltage source, an inductivecapacitive-inductive (LCL) filter which is responsible for reducing voltage and current switching harmonics, and a converter. Although the capacitive-inductive-capacitive (CLC) filter has the merits of reduced cost and size, it is commonly used with low current equipment. The used filter in the architecture is LCL, which has better capability in reducing total harmonic distortion compared to other filters, limits higher frequency current inflow, keeps the current harmonics in and around the operating frequency within the restricted limits, and could be designed to have a high dynamic response to meet the fast dynamics in power grids existing in Egypt. VSC is controlled to maintain the stability of the system and DC bus. A grid-connected VSC Control loop is used to adjust the DC voltage and generate pulse width modulation signals as shown in Figure 7 [56].

R PEER REVIEW
8 of 17

Grid and Voltage Source Converter
The grid circuit is composed of a three-phase AC voltage source, an inductive-capacitive-inductive (LCL) filter which is responsible for reducing voltage and current switching harmonics, and a converter. Although the capacitive-inductive-capacitive (CLC) filter has the merits of reduced cost and size, it is commonly used with low current equipment. The used filter in the architecture is LCL, which has better capability in reducing total harmonic distortion compared to other filters, limits higher frequency current inflow, keeps the current harmonics in and around the operating frequency within the restricted limits, and could be designed to have a high dynamic response to meet the fast dynamics in power grids existing in Egypt. VSC is controlled to maintain the stability of the system and DC bus. A grid-connected VSC Control loop is used to adjust the DC voltage and generate pulse width modulation signals as shown in Figure 7   The control strategy used with the VSC is vector control, also known as voltage-oriented control. This scheme is characterized by its high dynamic performance. There are two control loops, the outer loop is the voltage control loop for regulating the DC voltage, and the inner one is the current control loop which regulates direct axis current and quadrature axis current . VSC can control active and reactive powers independently. The direct axis component is responsible for controlling DC link voltage since the output from the outer voltage control loop is . However, the quadrature axis component is responsible for controlling the reactive power transfer where is set to zero, as there is no reactive power. The outputs of the current control loop, and , are converted to a three-phase voltage reference, then the pulse width modulator (PWM) generates gate pulses to control the converter so that DC voltage is regulated [57].

Results and Discussions
The integration of PV microgrids with battery storage is simulated using the MATLAB/Simulink platform. The parameters of the microgrid, PV array, battery, and DC load are provided in Table 2. The PV array in the grid-tied DC microgrid is composed of 47 parallel strings each consists of 10 series modules. PV systems have higher capital costs per unit and much lower operating costs than traditional fossil-based electrical resources. The control strategy used with the VSC is vector control, also known as voltageoriented control. This scheme is characterized by its high dynamic performance. There are two control loops, the outer loop is the voltage control loop for regulating the DC voltage, and the inner one is the current control loop which regulates direct axis current I d and quadrature axis current I q . VSC can control active and reactive powers independently. The direct axis component is responsible for controlling DC link voltage since the output from the outer voltage control loop is I d re f . However, the quadrature axis component is responsible for controlling the reactive power transfer where I q is set to zero, as there is no reactive power. The outputs of the current control loop, V d re f and V q re f , are converted to a three-phase voltage reference, then the pulse width modulator (PWM) generates gate pulses to control the converter so that DC voltage is regulated [57].

Results and Discussions
The integration of PV microgrids with battery storage is simulated using the MAT-LAB/Simulink platform. The parameters of the microgrid, PV array, battery, and DC load are provided in Table 2. The PV array in the grid-tied DC microgrid is composed of 47 parallel strings each consists of 10 series modules. PV systems have higher capital costs per unit and much lower operating costs than traditional fossil-based electrical resources.
However, progress in the PV industry continues, with reasonable scope for further cost reductions in the near future. As a result, PV panels can be manufactured at lower costs and can generate energy at higher efficiencies, reducing production costs per watt. The simulation sampling time is 10 µs, which is suitable to the switching frequency of the control components, so as to increase the accuracy of the controlling devices. Note that sampling time and hence sampling frequency is suitable for the switching frequency of the control components. Additionally, digital signal processors (DSP) that are used in power system applications in Egypt have switching frequency ranges from 70 to 160 kHz. The used time step in the model is variable. PWM is of an asymmetrical type. First, the microgrid is tested at constant load demand through different PV irradiance in different cases. Then, it is tested for different load demands.

Grid-Tied PV Microgrid
In this simulation, the PV microgrid is connected to the utility grid and VSC control is responsible for regulating DC load and DC bus voltage. When the PV generation is more than the load demand in cases of high irradiance, surplus power goes to the grid. However, when it is below load demand, the utility grid supplies the deficiency in power generated by the PV system to the load. The load consumes constant power in all irradiance changes. At instants of sudden changes in irradiance, DC bus voltage is maintained within the permissible limits, ±5%, consequently, load voltage remains in the allowed range which is (600 V ± 30 V). However, there are tiny fluctuations and sudden drops and rises in irradiance for both the DC bus voltage and power provided to the DC load. Therefore, voltage stability is controlled by grid VSC as shown in Figure 8.

Islanded PV Microgrid
In this simulation, the PV microgrid is disconnected from the utility grid, and the battery with the bidirectional converter control becomes responsible for regulating DC load voltage. The battery discharges to maintain DC load voltage stability and to supply power in case of low power generation by the PV system. When PV power generation increases above the load demand, the battery starts charging from the excess power generated by the PV system as illustrated in Figure 9. Voltage spikes and sags are observed at sudden changes of irradiance, as a result of the fast change of battery current, which causes a voltage increase or decrease due to the flow of momentary current through the parallel diode during switching operations of converter switches.

Islanded PV Microgrid
In this simulation, the PV microgrid is disconnected from the utility grid, and the battery with the bidirectional converter control becomes responsible for regulating DC load voltage. The battery discharges to maintain DC load voltage stability and to supply power in case of low power generation by the PV system. When PV power generation increases above the load demand, the battery starts charging from the excess power generated by the PV system as illustrated in Figure 9. Voltage spikes and sags are observed at sudden changes of irradiance, as a result of the fast change of battery current, which causes a voltage increase or decrease due to the flow of momentary current through the parallel diode during switching operations of converter switches.

Grid-Tied PV Microgrid with Constant Grid Power
The constant power mode of the utility grid is presented in this case, during which the influence of the microgrid on the utility power system is reduced. Figure 10 shows that the grid supplies constant power to the microgrid by controlling the direct current to track reference positive current * . Hence, DC voltage is not controlled using VSC control. Therefore, the battery converter regulates DC load voltage and deals with the power generated from the PV module to make the battery charge during excess power generation from the PV system and discharge during PV low power generation. The presence of voltage fluctuations at every sudden change in irradiance level is shown in this case, as

Grid-Tied PV Microgrid with Constant Grid Power
The constant power mode of the utility grid is presented in this case, during which the influence of the microgrid on the utility power system is reduced. Figure 10 shows that the grid supplies constant power to the microgrid by controlling the direct current i d to track reference positive current i * d . Hence, DC voltage is not controlled using VSC control. Therefore, the battery converter regulates DC load voltage and deals with the power generated from the PV module to make the battery charge during excess power generation from the PV system and discharge during PV low power generation. The presence of voltage fluctuations at every sudden change in irradiance level is shown in this case, as with the islanded mode of operation response, because here the battery converter controller is also responsible for DC voltage regulation but voltage is quickly established to track the reference DC voltage. Furthermore, the battery bank responds to changes in the power imbalance between power generation and load demand, thus supplying almost stable power to the load. with the islanded mode of operation response, because here the battery converter controller is also responsible for DC voltage regulation but voltage is quickly established to track the reference DC voltage. Furthermore, the battery bank responds to changes in the power imbalance between power generation and load demand, thus supplying almost stable power to the load.  Figure 11 shows the battery discharge by constant rate through controlling battery current to positive reference current * . Battery power is the constant positive power and grid powDer transfer to load is regulated by VSC control. It is also observed that DCbus power is not affected by the variations.  Figure 11 shows the battery discharge by constant rate through controlling battery current i B to positive reference current i * B . Battery power is the constant positive power and grid powDer transfer to load is regulated by VSC control. It is also observed that DC-bus power is not affected by the variations.

Islanded PV Microgrid with Different Load Demands
For this case, the bidirectional converter is responsible for controlling the charge and discharge of the battery. The power transfer illustrated in Figure 12 shows the response of the DC microgrid in islanded mode with different load demands. It is observed that at instants t = 2 s and t = 4 s the load power is suddenly increased by 10 kW to evaluate the performance of the system at different operating conditions. Therefore, at t = 2 s the load is suddenly increased but PV power generation still exceeds the load demand, so the battery continues to be charged; battery power is negative, therefore, the converter is in buck mode but its power decreases as the load consumes the difference in power. At t = 4 s, the load demand increases by 10 kW, and PV power generation is still higher than demand, so the battery continues to be charged while at t = 5 s, PV generation is decreased past load demand, consequently, the battery responds to meet load demand, where the bidirectional converter is put into boost mode. The system maintains its stability and supply load at different load changes using the control strategy of a battery bidirectional converter. The settling time at transient moments is slightly high but the system quickly restores its stability. When the battery is full, the PV system only supplies the load with no extra energy. In other words, the PV system does not operate at maximum power point but will operate according to load demand.

Islanded PV Microgrid with Different Load Demands
For this case, the bidirectional converter is responsible for controlling the charge and discharge of the battery. The power transfer illustrated in Figure 12 shows the response of the DC microgrid in islanded mode with different load demands. It is observed that at instants t = 2 s and t = 4 s the load power is suddenly increased by 10 kW to evaluate the performance of the system at different operating conditions. Therefore, at t = 2 s the load is suddenly increased but PV power generation still exceeds the load demand, so the battery continues to be charged; battery power is negative, therefore, the converter is in buck mode but its power decreases as the load consumes the difference in power. At t = 4 s, the load demand increases by 10 kW, and PV power generation is still higher than demand, so the battery continues to be charged while at t = 5 s, PV generation is decreased past load demand, consequently, the battery responds to meet load demand, where the bidirectional converter is put into boost mode. The system maintains its stability and supply load at different load changes using the control strategy of a battery bidirectional converter. The settling time at transient moments is slightly high but the system quickly restores its stability. When the battery is full, the PV system only supplies the load with no extra energy. In other words, the PV system does not operate at maximum power point but will operate according to load demand.

Grid-Tied PV Microgrid with Different Load Demands
For the different load demands and variable PV power generation due to different irradiance levels, the utility grid is responsible for supplying the load when demand is increased over PV generation in the grid-tied mode of operation as shown in Figure 13. It is observed that when irradiance level is low during the night or when it is cloudy, grid power is negative to supply the load instead of the PV system. Hence, the grid VSC control is the main controller in this case. Furthermore, power stability is enhanced for the system when tied to the grid rather than in the islanded mode.

Grid-Tied PV Microgrid with Different Load Demands
For the different load demands and variable PV power generation due to different irradiance levels, the utility grid is responsible for supplying the load when demand is increased over PV generation in the grid-tied mode of operation as shown in Figure 13. It is observed that when irradiance level is low during the night or when it is cloudy, grid power is negative to supply the load instead of the PV system. Hence, the grid VSC control is the main controller in this case. Furthermore, power stability is enhanced for the system when tied to the grid rather than in the islanded mode.

Grid-Tied PV Microgrid with Different Load Demands
For the different load demands and variable PV power generation due to different irradiance levels, the utility grid is responsible for supplying the load when demand is increased over PV generation in the grid-tied mode of operation as shown in Figure 13. It is observed that when irradiance level is low during the night or when it is cloudy, grid power is negative to supply the load instead of the PV system. Hence, the grid VSC control is the main controller in this case. Furthermore, power stability is enhanced for the system when tied to the grid rather than in the islanded mode.

Conclusions
This paper presents the enhanced operation of DC microgrid with PV generation as RES and battery as the energy storage system. The grid is connected and disconnected according to the mode of operation. Local control units of VSC and battery bidirectional converters are used to attain the required references for the different cases of simulation of the DC microgrid. The system is simulated for 6 s and the results are analyzed for each case. Results show that an integrated DC microgrid with batteries achieves more flexibility and reliability in the system by balancing power demand and generation. The stability of the DC microgrid is studied to test the reliability of the system during different modes of operations and different load changes. Through the simulation, discussion and results, it can be concluded that whether the system operates in normal cases or abnormal cases, different control strategies can regulate stable DC bus voltage. Additionally, it is observed that the grid-tied mode of operation regulated by VSC control offers more stability than islanded mode. However, battery converter control introduced a stable operation and regulated DC voltage but with a few voltage spikes.