Optimal Energy Management Scheme of Battery Supercapacitor-Based Bidirectional Converter for DC Microgrid Applications

: Because of the splendid front of sustainable energy reassets in a DC Microgrid, it is profoundly willing to variances in energy age. A hybrid energy storage system (HESS) which includes a battery and a supercapacitor (SC) is used to decrease in-built ﬂuctuations. The two different characteristics of the battery and supercapacitor make it a great match for HESS applications. The HESS is connected to the DC Microgrid through a bidirectional converter, which allows energy to be exchanged between the battery and supercapacitor. This paper discusses a converter presenting an approach for a double-input bidirectional converter. Related to this, a regulator was designed for use as a voltage regulation in a DC Microgrid. The designed controllers accelerated PV generation and load disturbance DC link voltage restoration, in addition to effective power balancing among the battery and the SC. The conventional PI, proposed PI, and predictive PI control techniques are effectively validated using MATLAB Simulink. Experimental ﬁndings with low power have been used to validate the operation of the predictive PI control technique. The DC grid voltage proﬁle showed substantial improvement while using the predictive PI control in comparison with the proposed and conventional PI control techniques in terms of setting time and maximum peak overshoot.


Introduction
DC Microgrids are becoming very popular due to their reliability and ease of integration with renewable energy sources and the expansion of DC-compatible loads [1,2]. Because of the tremendous penetration of intermittent renewable strength reassets into a DC Microgrid, there is a power mismatch between the generation and load sides, causing DC bus voltage swings. To deal with this challenge, a variety of energy storage systems (ESS) of various sorts and qualities are used. The most popular ESS is the battery. In ESSs, batteries are prioritized for high energy density whereas supercapacitors are preferred for high power density [3,4]. Renewable energy sources require an ESS with a high energy density, but loads with a high-pulse requirement require an ESS with a high power density due to the nature of intermittent energy. As a result, to meet the aforementioned DC Microgrid requirements, a hybrid energy storage system (HESS) was developed by combining a battery with a supercapacitor [5][6][7][8][9][10][11][12]. A HESS also increases the steadiness of the power converter-based microgrid, which could in any other case be unstable [13] due to its low rotational inertia.
Various topologies of HESS are displayed to achieve the advantages of both a battery and a supercapacitor [14]. The most widely recognized HESS plan, which considers free control of both the battery and supercapacitor, is addressed in Figure 1a. It is feasible to trade energy between the part ESSs in the dynamic equal course of action of a HESS; for instance, the battery ESS can charge the supercapacitor ESS or the other way around. However, when energy is traded through a DC Microgrid, the lattice's working requirements might be pushed past the ideal reach. As displayed in Figure 1b, multiple-input bidirectional (MIBD) converters have more noteworthy energy trade execution between input sources contrasted with multiple singleinput bidirectional DC (MSIBD) converters in dynamic equal mode. Subsequently, the previous is ideal for hybrid electric vehicles (HEVs) and DC Microgrids. The critical benefits of the MIBD converter over the MSIBD converter are (i) further developed energy trade between input sources, (ii) modular framework size, and (iii) lower converter cost [15].
A couple of input topologies had been proposed for interfacing more than one source with diverse characteristics. Numerous ESSs are associated with a three-winding highfrequency transformer, with each source associated through a full-bridge circuit [16]. In DC Microgrid applications, the number of switches required for a battery-supercapacitor HESS is eight, which may influence overall efficiency [17,18], described as an isolated multiport DC-DC converter that can handle power from numerous energy sources and provide it to a single load. The power transmission between the sources and the ESSs was not explored when the sources were replaced with ESSs. Isolated converters can handle a wide range of voltage levels and can ensure safety through isolation, but managing energy from many sources is more complicated than with non-isolated converters.
In the literature, there are multi-input non-isolated DC-DC bidirectional converters for connecting numerous sources [19][20][21][22][23][24][25][26][27][28][29][30][31][32], which provide substantially more flexibility in implementation and power regulation than isolated converters. The authors of [19] described and experimentally validated a process for constructing all possible doubleinput, single-output DC-DC converters for a system using the battery as one of the inputs. However, there was no consideration for bidirectional power flow between the two input ports, which is essential for the HESS in DC Microgrid applications. The authors of [20] presented a multi-input DC-DC converter with no power-sharing option between the input sources for several energy sources with varying characteristics. Benfei Wanga et al. [21] proposed a single inductor-based multi-port converter for a HESS. Since the Predictive control model is used in this paper, the computing and controller effort is significantly higher. Furthermore, the validity of the control approach requires SOC-based analysis.
Sivipriya et al. [22] proposed a rural electrification microgrid using PV and battery. Rasoul Faraji et al. [23] proposed a multiport hybrid energy system with PV and storage. If the battery is utilized alone, the stress on the battery will rise. Furthermore, the proposed converter is incompatible with SC applications. A multi-port converter for PV and batteries was also proposed by Yusuke Sato et al. [24]. The proposed circuit can integrate the battery with PV, but the battery would be under a lot of stress during various disturbances. Zhehan Yi et al. initiated a new control of an energy management system for a PV-Battery-based system for grid-connected and islanded operations [25]. In the proposed control strategy, the battery balances the power of the AC and DC Microgrid in all operational scenarios. In the proposed control strategy, the battery balances AC and DC Microgrid power at all times. Battery stress, system expense, and battery life cycle all rise as a result of this. The authors of [30] proposed a high-efficiency two-input interleaved converter for energy storage. The dual-input interleaved converter circuit, on the other hand, has a sophisticated control approach that requires eight switches. Multi-input converters for grid-tied and/or solar applications are mentioned in [31][32][33]. Multi-input systems, as seen in [34][35][36][37][38], are also used in HEV applications. All the preceding multiple-input converter topologies, however, find it hard to keep SoC SC within predefined limits, rendering SC protection difficult.
Due to the fact that there are numerous publications on multi-input bidirectional converters in the literature, their controller development methods have received little attention. A multi-input bidirectional DC-DC converter is used to connect the HESS to the DC Microgrid, as proposed in [39]. The converter in [39][40][41][42][43][44] has been normalized in operation to allow HESS operation in DC Microgrid applications. One striking characteristic of this converter is that it activates all of the switches that use zero voltage switching (ZVS), potentially increasing its efficiency. Apart from regulating HESS charging and discharging, the unified controller may also share current between the battery and supercapacitor, reducing current stress on the former and increasing its lifespan. The total HESS current is bifurcated (charging/discharging), with the power density element supercapacitor supplying the high-frequency component and the energy density unit battery supplying the average or low-frequency current. The architecture of two-input bidirectional converter configuration of HESS aided RES is illustrated in Figure 2. The following are the paper's major contributions: This research work proposes a DC Microgrid voltage stabilization based on multiinput converters. A comprehensive controller is introduced for the design and analysis of a HESS-based multiple-input bidirectional converter. For a multi-input converter, the small-signal model-based-provided controller ensures stability in all working areas. The execution of an energy management system for a multiple-input bi-directional converter with HESS is introduced for different PV and load conditions. The EMS can undoubtedly follow the SC SoC and empower various modes to guarantee safe activity. The primary benefit of the planned double-input bidirectional converter is its energy trade mode, which permits charging the SC freely from the battery. The doubleinput bidirectional converter has many advantages, including compelling power assignment between the different ESSs, quicker DC link voltage regulation, etc. PV power fluctuations and load disturbances require faster DC link voltage management. The proposed modified converter operation allowed for the use of a similar controller for both HESS charging and discharging operations, resulting in a unified controller. The DC grid voltage profile can be significantly improved in terms of settling time and maximum peak overshoot when using the predictive PI control compared to the proposed and traditional PI control methods.
The organization of the paper is as follows: Operation of bidirectional DC-DC converters with two inputs are addressed in Section 2. The conventional, proposed, and predictive PI control schemes are examined in Section 3 [39]. State-of-Charge Controller for Supercapacitors controller is discussed in Section 4. Simulation results with three controllers are discussed in Section 5. The experimental validation is discussed in Section 6. The research findings and interpretations are wrapped up in Section 7.  Figure 3 depicts a bidirectional converter with two inputs [39] and goes into great depth about the various modalities of operation. The converter's modified operation is described here. It is made up of three switch legs. Legs 2 and 3 are connected to the battery voltage (V B ) and supercapacitor voltage (V S ) modules, respectively, while Leg 1 is connected to a DC Microgrid voltage (V DC ). In this converter topology, the voltage across the battery is lower than the DC grid voltage but higher than the supercapacitor voltage. The inductors L B and L S with High-frequency connect legs 1, 2, and 3 together. The following sections describe the various modes of operation.

Discharging Sequence of HESS
The voltage in a DC Microgrid fluctuates significantly from the steady-state value while there may be a discrepancy between PV output and load power. When the demand exceeds PV generation capability or when PV-generated power is reduced owing to lower solar irradiation, DC Microgrid voltage drops. During this time, the HESS should give adequate power. In this mode of operation, power streams from the HESS to the DC Microgrid through the bidirectional converter are appropriately controlled.
The operation of the converter can be segregated into three time intervals, as shown in Figure 4. S 1 /S 2 , S 3 /S 4 , and S 5 /S 6 are all switch pairs that work in tandem. In this mode, the switch pairs S 2 /S 5 and S 1 /S 6 always switch together, with complementary gating pulses. Switches S 2 , S 3 , and S 5 are turned on at time instant t 0 , causing inductor currents i B and i S to grow linearly with slopes V B /L B and V S /L S , respectively. At t 1 , switch S 3 is turned off, allowing current i B to flow freely through the S 4 body diode. Switch S 4 is turned on after a dead time interval for the switch pair S 3 /S 4 . S 4 comes on with ZVS because its body diode is already conducting at the time the gating signal is sent. At t 2 , switches S 2 and S 5 are disabled, forcing inductor current i L2 to flow through the body diodes of switches S 1 and S 6 with a negative V DC /L S slope. With a negative slope of V DC /L B , inductor current i B flows via S 1 body diode. Switch pairs S 2 /S 1 and S 5 /S 6 are gated on after the dead time intervals of switch pairs S 2 /S 1 . Because the body diodes of the corresponding switches are already in conduction, switches S 1 and S 6 are likewise turned on using ZVS, just as S 4 . S 1 , S 4 , and S 6 are turned off at t 3 . As a result, the body diodes of switches S 2 , S 3 , and S 5 will conduct in order to keep the inductor currents flowing. Currents i B and i S flow with V B /L B and V S /L S positive slopes, respectively. Gating pulses are sent to switches S 2 , S 3 , and S 5 , which turn on with ZVS after a dead time gap. Applying a volt-second balance to the inductors L S and L B give results when d B is the duty cycle of the triggering pulse given to switch S 3 and d S is the duty cycle of the triggering pulse delivered to switches S 2 and S 5 .
d B will always be smaller than d S because V B is bigger than V S . As a result, the flow of power from the battery and supercapacitor to the DC Microgrid can be controlled individually by controlling d B and d S .

Charging Sequence of the HESS
Excess power appears to exist in the DC Microgrid when solar PV-generated power outweighs that required by the load, or when the load drops, resulting in an increase in DC Microgrid voltage. The battery and supercapacitor will be charged with extra power. As a result, electricity is transferred from the DC Microgrid to the HESS in this mode. As illustrated in Figure 5, the converter that operates in this mode can be segregated into three time intervals. S 1 and S 6 switch pairs are switched at the same time. S 2 and S 5 switch pairs are also gated at the same time, but with pulses that are complementary to S 1 and S 6 . Switches S 4 and S 3 are also gated in a complementary manner. At t 0 , S 1 , S 4 , and S 6 switches are activated causing the inductor currents i B and i S to decrease linearly in a negative direction with slopes V DC /L B and V DC /L S , respectively.
Until instant t 1 , the L B and L S inductors store energy during this period. At t 1 , the switch pair S 1 /S 6 was turned off. The body diodes of switches S 2 and S 5 are turned on to maintain the inductor current i s . The supercapacitor is now charged using the energy stored in the inductor L S . Through the body diode of switch S 2 , the inductor current i B freely circulates. Because the body diodes of the corresponding switches are already in conduction after a dead time interval for switch pairs S 1 /S 6 and S 2 /S 5 , gating pulses are provided to S 2 and S 5 , turning them on with ZVS. At time instant t 2, switch S 4 is turned off. Inductor current i S increases almost linearly with slope V S /L S through the body diode of switch S 3 . After the switch pair S 4 /S 3 has reached its dead time interval, a gating pulse is triggered to S 3 to turn it on with ZVS. The collected and stored energy in the inductor L B is now applied to charge the battery. Switches S 2 , S 3, and S 5 are turned off at instant t 3 , causing the body diodes of switches S 1 , S 4 , and S 6 to turn on in order to keep the inductor currents flowing. To turn S 1 , S 4 , and S 6 on with ZVS, triggering pulses are applied after dead time intervals. Applying a volt-second balance equation to the inductors L S and L B lead-in, if d S is the duty cycle of the gating pulse to the S 1 /S 6 switch pair and d B is the duty cycle of the triggering pulse to switch S 4 .
. V DC (4) Figure 5. Steady state waveforms for HESS charging mode of operation.

HESS Mode of Energy Exchange
A power density unit in a HESS is a supercapacitor. Due to its rapid self-discharging effect, it cannot offer energy for lengthy periods of time as a battery. To perform successfully in DC Microgrid applications with a HESS, the component ESSs must have sufficient energy stored in them. The supercapacitor must be charged from the battery energy density unit whenever necessary for the HESS to function effectively in order to keep its charge within acceptable limits. The path of power flow from the battery to the supercapacitor is represented by this mode. Figure 6 depicts the circuit topology for this mode (a). In this mode of operation, the first switch leg (switches S 1 and S 2 ) is inactive, substantially isolating the DC Microgrid from the HESS while supercapacitor charging. S 5 /S 6 switch pairs and S 3 /S 4 switch pairs complement. In this mode, switch S 5 is always turned on, causing switch S 6 to be turned off. The duty cycle d is applied to switch S 3 . Figure 6 depicts the waveforms (b). Switch S 3 controls the power stream from the battery to the supercapacitor, with the current ripple greatly decreased by connecting the inductors L B and L S in series. The user can adjust the power flow from the battery to the supercapacitor by using the d parameter. When the volt-second balanced equivalent series inductor L (L = L B + L S ) is used, the result is: In addition, the complementary action of switch S 3 allows power to flow from supercapacitor to battery. Switch S 4 is in boost mode, as indicated by this action. The procedure is similar to the one described previously.

Transitions between Modes
The mode of operation is controlled from the existing state of the DC Microgrid and continuous SoC of supercapacitor monitoring. SoC of the Battery is not taken into account in this work because it is expected that battery energy is not lost as quickly as supercapacitor energy. Figure 7 shows a flow chart transition between distinct modes. The HESS enters charging mode when the DC Microgrid voltage exceeds the set reference, as long as the supercapacitor SoC remains within prescribed limits. The HESS will enter the charging operation mode when the DC Microgrid voltage falls below the predefined reference value, as long as the SoC of the supercapacitor is within the safety limit. The HESS enters energy exchange mode if the supercapacitor SoC exceeds the predefined limitations, electrically separating the DC Microgrid from the HESS. The working range of a supercapacitor SoC is described, as well as its mathematical formulation using Coulomb's counting approach.
where SoC i is the supercapacitor's initial state of charge, Q SC is the rated charge for the supercapacitor, and i CH is the charging current of the supercapacitor.

Design of Conventional and Proposed PI Control Scheme
The control system block diagram representation of the conventional PI and the proposed PI control schemes are shown in Figures 8 and 9, respectively. The proposed control scheme will contribute a controller which will not only provide improved closedloop performance but also provide stable operation amidst converter dynamics and external disturbances. The nominal value of DC link voltage (V DC ) is compared with a reference voltage (V DC,ref ) and the error is offered to the PI controller in both schemes, which generates total current (i tot ) from ESS in this process. In the conventional control scheme, total current is divided into low-frequency (I LOW ) and high-frequency (I HIGH ) components of current using a low pass filter, which is given as reference currents to battery and supercapacitor loops, respectively, and is represented in Figure 8. In the conventional control scheme, SC current reference consists of a high-frequency component and battery error component which is explained in the proposed control scheme. The conventional control scheme neglects battery current errors arising due to the battery controller.  The proposed control scheme is represented in Figure 9. The power flow in the DC grid under PV generation and load changes are classified into two types (i) steady-state power component (P std ), and (ii) transient power component (P tran ). The power balance equation is given as where, P dc (t), P ren (t), P B (t) and P SC (t) are the DC grid power, RES power, battery, and SC power respectively. The HESS charges and discharges, maintaining the DC grid voltage within predefined limits. The sum of battery and SC powers are given as Regulates the DC link voltage by controlling total current demand represented as follows The voltage control loop calculates the total current i tot demand as follows: where K p,v and K i,v are the proportional and integral constants of the outer voltage control loop, respectively, and v err represents voltage error. Better DC bus voltage regulation is achieved by effective sharing of total current demand (i tot ). In a conventional control scheme, a low pass filter (LPF) extracts the steady-state component from the total current where w C represents LPF cut-off frequency and i B,re f (S) represents the battery current reference for the battery control loop. Steady-state current is controlled by a battery system. Due to the slow response of the battery system, uncompensated power is observed from the battery system. The battery uncompensated power is given as follows: where P B_un (S) is the uncompensated power from the battery system. In the proposed control strategy, uncompensated power is utilized to improve the performance of the SC. Utilizing both uncompensated power and the transient current component to design a new SC reference current is given as follows: The battery and SC reference currents are compared with actual currents. Battery and SC error current are fed to the PI controller. The duty cycle is calculated for the respective current references, where d B and d SC are the duty cycle for battery control and SC control, as shown in Figure 10. The circuits described in the previous section can be used to independently control the flow of power from the battery and supercapacitors to the DC Microgrid. As a result, it is possible to build a separate small-signal model of the battery and supercapacitor stages, similar to building a dynamic model of two single-input bidirectional converters. With the availability of multi-input, multi-output control systems [24], this isolated averaged battery and supercapacitor power flow stage small-signal model facilitates the design of simpler control systems. The battery-to-DC Microgrid and supercapacitor-to-DC Microgrid small-signal models are configured as follows: Due to the complimentary operation of the switch, an integrated controller for charging and discharging the battery/supercapacitor is sufficient, even though both circuit activities share the same small-signal transfer function. The HESS discharge mode is taken into account when creating the linear model. Due to the inevitable supercapacitor's intrinsic fast dynamic responsiveness, the outer voltage loop is designed around it.
A current in the inner loop and a voltage in the outer loop make up the control system for a supercapacitor stage, as shown in Figure 10a. A current controller, as shown in Figure 10, controls the battery current reference (b). In order to give a faster reaction, a supercapacitor's inner current loop is constructed with greater bandwidth than that of a battery. The inner current loop runs at a quicker rate than that of the outer voltage loop. The bandwidth in a voltage loop is smaller than the current in an inner loop. The switching frequency that is evaluated is 10 kHz.

The Supercapacitor-DC Microgrid Stage Small Signal Linear Averaged Model
The state equations throughout time interval (t 0~t2 ) can be framed as shown in Figure 4 and as discussed in Section 3.
In the time interval (t 2~t3 ), the state equations can be framed as: The preceding state equations are perturbed and linearized to provide small-signal transfer functions with the control-to-inductor current and inductor current-to-voltage.
A PI controller for the inner current loop is constructed with a bandwidth of 1.6 kHz and a phase margin of 60 • . Figure 11 depicts a Bode plot of adjusted and uncompensated transfer functions. The function of transfer is defined as follows: The averaged model is used to develop the PI controller for the outer voltage loop. The bandwidth must be lesser than half-plane zero on the right side. With a bandwidth of 200 Hz and a phase margin of 60 • , the voltage controller is constructed. Figure 12 depicts a Bode plot for the same scenario. The function of transfer is defined as follows:

Modeling a Battery-DC Microgrid Stage with a Small-Signal Linear Averaged Model
As illustrated in Figure 4, the discharge process in the battery is accomplished in three time periods. The state equations for the time interval (t 0~t1 ) are as follows, as discussed in Section 3.
After translating into the frequency domain, the equations of the state can be framed in matrix form as follows: where X is a matrix consisting of all state variables (i B , V DC ), U is a matrix consisting of inputs, and Y is a matrix consisting of all the system outputs. It can be rewritten in matrix form as: where Similarly, for the second time interval (t 1~t2 ), in matrix form, the state equations and state model can be framed as follows: where In the third time interval (t 2~t3 ), in matrix form, the state equations and state model can be framed as follows: where The bidirectional converter will be confined to the state model represented by (24) for a time period of (d B · T S ), after which it will transition to the model represented by (26), where it will stay for a duration of [(d S − d B ) · T S ], as shown in Figure 4. For the designed model, the duration of the third time interval is [(1 − d S ) · T S ] (28). As a result, the following is the converter's averaged state model: When state variables are perturbed about X's steady-state DC value, Assuming that (d B and d S ) are duty cycles and both inputs are perturbed (u), In comparison to steady-state DC values, the perturbations in the small-signal model should be very minimal. Furthermore, during a single switching time, these perturbations are intended to be constant. The converter's state-space model is generated by substituting (30) and (31) into (29) and linearizing by ignoring second-order elements. where Applying Laplace transform to (32), the controlled output transfer function of the battery stage is reframed as:ŷ (s) where I is the identity matrix. Substituting the values for C, A, F, C 1 , C 2 , and X from (29), (32), (24), and (26), the current transfer function from battery stage control to the inductor can be configured as follows: The above transfer function is used to design a PI controller for regulating battery current. The controller's bandwidth is reduced to match that of the supercapacitor stage. The designed controller has a bandwidth of one kHz and a phase margin of 60 • . Figure 13 depicts a bode plot of compensated and uncompensated plants. The PI controller's transfer function is provided by:

Predictive PI Control Scheme
The block diagram representation of the predictive PI control scheme for a HESS is shown in Figure 14. To control the battery and SC currents simple, a predictive PI control scheme algorithm is implemented. The charging and discharging mode of operation depends on PWM pulses applied to the switches. The boost mode of operation is discussed for the battery and SC system.

Inner Predictive PI Control Scheme
For the prediction of battery and SC inductor currents an averaged voltage balance equation across these inductors is developed, for L b By using Euler's difference law The above equation i b (k + 1) is calculated: Similarly, the SC inductor current model is derived as follows From the above equation i SC (k + 1) is derived as The cost functions for battery and SC current control are Using i b (k + 1) and i SC (k + 1) equations calculated iteratively for duty cycles d b and d SC from 0 to 1 with an increment of 0.01, each of these values compared with i b,re f and i SC,re f during every sampling interval and the duty cycle which gives the least cost function value was selected.

State-of-Charge Controller for Supercapacitors
Supercapacitors have a very low ESR compared to batteries. As a result, they are unable to store energy for a long time. The control logic is designed to keep the SoC within the appropriate limits of energy to avoid supercapacitor energy from being depleted beyond a minimum permitted level (6). Beyond this intended SoC range, the converter enters the HESS energy exchange mode specified in Section 3. When the supercapacitor's SoC falls below the required minimum, it is charged using battery power at a constant current, I CH . When the SoC reaches the maximum safe zone, the supercapacitor is allowed to discharge its extra energy to the battery, allowing the battery to operate at a constant current I CH . As discussed in Section 3, either the buck (SC charging) or boost (SC discharging) operation keeps the supercapacitor's SoC within acceptable ranges. The SoC controller's control logic is illustrated in Figure 15. A PI controller regulates the supercapacitor current. The controller's design is based on the buck mode control-to-output transfer function. It is worth noting that the DC Microgrid is electrically isolated from the HESS whenever the HESS Energy exchange mode is triggered, whether due to high or low SoC values.

Simulation Results and Analysis
This chapter shows the outcomes of two test cases using the proposed control systems. The nominal simulation research parameters are shown in Table 1. MATLAB Software is used to implement the entire model. Two bidirectional converters, one for the battery and one for the SC, make up the model. The PV array system is a one-way connection to a boost converter. The following sections outline the two operational scenarios for a step change in Solar PV generation and load demand.

Step Increase in PV Generation
The simulation results for step change in PV generation and conventional and proposed PI control schemes are shown in Figures 16 and 17, respectively. In both control schemes, due to atmospheric variations, power produced by the PV panel increases from 96 W to 192 W at t = 0.3 s. Due to this PV, current increases from 3 A to 6 A at t = 0.3 s. In this case, the load power requirement is constant at 96 W. As PV power is more than the load power requirement, DC grid voltage increases more than 48 V. Immediately, SC absorbs excess power of 96 W for a short duration until the battery can regulate the grid voltage to 48 V. Thus, the battery and SC charge according to the energy management scheme to maintain the grid voltage at 48 V. The simulation shows a settling time of 100 ms for the conventional control scheme and 35 ms for the proposed PI control scheme. The proposed control scheme has better dynamic performance and fast DC grid voltage regulation due to the utilization of uncompensated power from the battery system to improve the SC system.   Figures 16 and 17 show the simulation results for a step decrease in PV generation for the conventional and proposed PI control schemes, respectively. In both control schemes, due to atmospheric variations, power produced by the PV panel changes from 96 W to 192 W at t = 0.6 s. The step decrease in PV generation causes a step decrease in PV current from 6 A to 3 A. The sudden decrease in PV generation causes a decrease in DC grid voltage. The settling time for the conventional and proposed PI schemes are 120 ms and 30 ms, respectively. The proposed control scheme is approximately four times faster compared to the conventional control scheme. From the results, it can be observed that the performance of the proposed scheme is better than the conventional control scheme.    Figures 18 and 19 show the simulation results for a step decrease in load demand for the conventional and proposed PI control schemes, respectively. At t = 0.6 s, load power demand decreases from 192 W to 96 W. This causes load current changes from 4 A to 2 A. The sudden change in load current affects the DC grid voltage. The HESS responds immediately to these fluctuations to handle the excess power in the DC Microgrid. The transient component of power handled is by the SC, while the average or steady-state component of power is handled by the battery in both the control schemes. The times taken to restore the voltage, in the conventional and proposed PI control schemes, are 80 ms and 30 ms, respectively. From the results, it can be seen that the proposed control scheme is faster with less peak overshoot DC Microgrid voltage compared to the conventional control scheme. The nominal parameters for simulation study as presented in Table 1.

Step Change in PV Generation for Predictive PI Control Scheme
A step change in PV current is examined in this case. The peak overshoot (M P ) settling time (t ss ) of DC Microgrid voltage during a step change in PV generation was examined. The load demand is kept constant in this case, by keeping R dc = 24 Ω. By changing the PV current control reference, a step change in PV generation is applied to the steady-state system.
The simulation results for a step increase and decrease in PV generation are represented in Figure 20. Due to the atmosphere variations, power produced by the PV panel increases to 192 W from 96 W at t = 0.2 s and back to 96 W at t = 0.6 s. As PV power is more than the load power requirements, grid voltage increases beyond 48 V. The SC absorbs the excess power of 96 W in short time until the battery can regulate the grid voltage to 48 V. In these cases, the transient current component is handled by the SC, with the steadystate current component supplied by the battery system. As PV generation increases or decreases, the change in DC bus voltage (∆V DC ) is 0.5 V and 2 V, respectively. The corresponding %M P values are 1.04% and 4.1%, respectively.
Step increase and decrease in PV generation have settling times (t ss ) of 2 ms and 5 ms, respectively.

Step Change in Load Demand
The power developed by the PV panel is 96 W in the maximum power region. To absorb this PV power, the load resistance of 24 Ω is connected to a 48 V DC Microgrid. For consuming entire power from the PV panel, the load requires a 2 A current at a steady state. At t = 0.2 s, load demand increases from 96 W to 192 W and returns to 96 W at t = 0.6 s, as shown in Figure 21, which is beyond the power range of the PV panel. This creates a power imbalance between PV generation and load demand. Immediately when the HESS responds, SC supplies a transient component of power and the battery supplies a steady-state component of power demand. As load demand increases or decreases, the changes in DC bus voltage (∆V DC ) are 3 V and 2.5 V, respectively. The corresponding %M P values are 6.25% and 5.2%, respectively.
Step increases and decreases in load demand, with settling times (t ss ) of 3 ms and 10 ms, respectively.

Comparative Performance Evaluation
The graphical results' representation of three control schemes is presented in Figure 22. The predictive PI scheme provides lesser overshoot, undershoot, and faster regulation with less settling time. Figure 22a,b shows the DC grid voltage variation with a step change in PV generation and load demand. Figure 22c,d shows the battery and SC current response with predictive PI over PI control strategies. In Figure 22d, we can see that the SC current is faster and higher compared to PI control methods. Hence, SC utilization is faster and higher compared to PI methods. Numerical comparisons of three control strategies are tabulated in Table 2. From the results, the performance of the predictive PI control method is better in terms of DC grid voltage regulation and SC utilization.  Step decrease in PV generation 120 ms 27% 30 ms 14.5% 5 ms 4.1% Step increase in load demand 100 ms 25% 40 ms 12.5% 3 ms 6.25% Step decrease in load demand 80 ms 29.16% 30 ms 16.6% 10 ms 5.2%

Experimental Results
As shown in Figure 23, a low-power hardware prototype model is developed to validate the efficiency of the proposed unified controller for a two-input bidirectional converter. The digital controller utilized is the dSPACE DS1104. A boost converter controls the current of a regulated power supply (RPS), which simulates the PV source. A HESS is powered by a single 12 V, 7 Ah Exide Chloride Safe power lead-acid battery and a single 16 V, 58 F Maxwell BMOD0058 supercapacitor. The bidirectional double-input converter is made up of six IRF540N MOSFET switches.
The performance of the DC Microgrid, which is powered by an emulated PV source and supported by a HESS, is validated in all three situations specified in Section 3: (1) HESS charging mode, (2) HESS discharging mode, and (3) HESS charging mode. Table 3 shows the DC Microgrid specifications. The DC Microgrid is set up with a nominal voltage of 20 V.

HESS Charging Mode
Here, the performance of the designed controller in the scenario of a surge in DC Microgrid voltage, either due to increased PV generation or due to a decrease in load, is analyzed. Waveforms are given in Figure 24a,b. In this case, the surge in microgrid voltage is realized by increasing load resistance. Initially, the load resistance is R = 25 Ω up until instant t 1 . At t 1 , the load resistance is increased to 35 Ω and as a result of a decrease in load demand, the excess energy in the dc grid causes a surge in grid voltage. Immediately, the HESS responds in such a manner that the transient component of the current is the charging supercapacitor and the battery charging current is allowed to increase slowly until a steady-state value at instant t 2 .
The load resistance is brought back to the original condition of R = 25 Ω at instant t 3 . The battery and supercapacitor then return to their floating state as it was before t 1 . At instants t 1 and t 3 , DC Microgrid voltage is retained at 20 V almost instantly, as indicated by small spikes in Figure 24a. The battery and supercapacitor SoC are shown in Figure 24b. At instant t 1 , SoC SC is shown to be increasing, indicating charging of the supercapacitor. After the transient current has died out, the supercapacitor remains idle, as indicated by constant SoC. Battery SoC is almost constant, with its energy not depleted quickly compared to the supercapacitor.

HESS Discharging Mode
In this case, the performance of the controller is pitted against the decrease in DC Microgrid voltage, either due to a decrease in PV generation or due to an increase in load. Waveforms are shown in Figure 25a,b. Here, a dip in DC Microgrid voltage is realized by a decrease in PV generation. A decrease in PV generation is implemented by decreasing the input current (I PV ) of the boost converter connected to RPS while maintaining the input voltage (V PV ) at 12 V.
At instant t 1 , I PV is decreased from 1.3 A to 1.1 A. This causes DC Microgrid voltage to dip since there exists a power mismatch between source and load. The deficient power is then fed by the HESS by discharging the battery and supercapacitor. Transient current is met by the supercapacitor and steady-state current is supplied by battery, as is evident from current waveforms in Figure 25a. The combined action of battery and supercapacitor maintain DC Microgrid voltage at the nominal value of 20 V. A small spike in voltage waveform is negligible due to the fast dynamics of the HESS. Battery charging current is allowed to increase slowly until a steady-state value at instant t 2 . At instant t 3 , PV generation is reverted back to normal by setting I PV = 1.3 A. Battery current now slowly reduces to zero whereas the supercapacitor instantly responds to bring DC Microgrid voltage back to nominal value almost instantly. The battery and supercapacitor SoC waveform are also shown in Figure 25b to validate the above-explained operation. When PV generation is decreased at instant t 1 , SoC of SC is found to decrease as long as the supercapacitor supplies current indicating discharge operation of the supercapacitor. The supercapacitor is then idle, as indicated by the constant SoC waveform. Similarly, at instant t 3 , SoC is increased to indicate charging of the supercapacitor after which it stays idle.

HESS Energy Exchange Mode
Power flow from the battery to the supercapacitor is depicted in this manner. Figure 26 depicts the waveforms. The HESS is unplugged from the DC Microgrid just before time instant t 1 . Due to reduced PV generation, the grid voltage is now 18 V. At instant t 1 , the HESS is active to produce grid voltage at the nominal value of 20 V. Battery and supercapacitor waveforms are as explained in HESS discharging mode. Current waveforms in Figure 26 prove the same result.

Conclusions
The controller for the two-input bidirectional converter was designed and modeled for the HESS controller. The developed controller's performance was assessed in a range of scenarios for voltage regulation in a DC Microgrid. The controller could really balance out the DC Microgrid against unsettling influences from the source PV age, as well as burden varieties. It could take advantage of the supercapacitor's inherent rapid dynamics to absorb incoming microgrid transients. This unique controller played a substantial role in both the charging and discharging process in the HESS. The operation mode of the HESS converter was also demonstrated for maintaining the supercapacitor's SoC within the optimal range. A performance evaluation of the predictive PI and proposed PI over the conventional PI control scheme with a step change in PV generation and load demand for peak overshoot and settling time to restore grid voltage was performed. The results showed that the performance of the predictive PI control method is better in terms of DC grid voltage regulation and SC utilization.

Conflicts of Interest:
The authors declare no conflict of interest.