1 Introduction

Nowadays, energy requirements have increased worldwide, and the environmental problems associated with energy production by fossil fuel combustion must be solved with eco-friendly generation techniques. Local generation, distribution, and consumption of energy have become a feasible option to satisfy energy requirements in a sustainable manner with expanding residential applications [1].

In this context, the concept of microgrid emerged from the need to incorporate renewable energy sources (RES) into the electric power supply [2]. A DC microgrid can be described as a grid subsystem that allows the interconnection of distributed generators (DG), energy storage elements (ESE), and local loads within a restricted region [3]. A microgrid must provide a secure and economical operation at all time, while simultaneously it provides a high level of reliability in the bus voltage [4]. Two operating modes are possible in a DC microgrid: grid connected mode and islanding mode. The first one is divided into common grid-connected and unidirectional grid-connected. The second one is divided into intentional islanding and unintentional islanding [5].

The advance in solar energy sources has fostered the rapid deployment of photovoltaic (PV) systems. The performance of a PV module in an array connected to a microgrid may be affected by factors such as partial shading, low solar radiation, mismatches conditions, deterioration on PV cells and damage suffered in a single cell [6,7,8]. Some of the aforementioned problems can be alleviated with suitable PV module arrangements. Furthermore, PV series-parallel connections with full-cross-tied or linked bridge may mitigate some factors that degrade the power generation [9,10,11].

Partial shading in PV systems is often inevitable. Shadows of buildings, trees, clouds and dirt can reduce the total output power. Energy losses in the shaded cells can increase, and a major problem occurs when shaded cells get reverse biased [12].

PV module arrays with its own DC-DC converter solve problems associated with partial shading [13,14,15], where the converter topology used is a key element. The converter topology determines the manner in which the PV modules will be connected to the architecture [16, 17].

Several configurations have been proposed to interconnect the converters. Nonetheless, so far three have gained most preference.

The first one is the series input-parallel output (SIPO) connection, which provides high output current [18], and is suitable for applications with low DC voltage.

The second and third ones are the parallel input-series output (PISO) configuration [19], and the distributed input-series output (DISO) configuration [20]. They can provide higher output voltage due to the series output connection. In addition, these configurations provide more efficient energy transfer methods [21].

Although the configurations help to solve the partial shading problem, in terms of power generation, bus voltage regulation issues remain, especially when the microgrid is isolated and has no storage elements.

In order to guarantee bus voltage regulation, two commonly-used methods have been proposed. The first one is the droop control method. This is a simple technique to achieve current sharing. The bus voltage is first measured, and afterwards the amount of energy that each source will supply is calculated [22]. The second method is master-slave control. This technique depends on communication between converters: a master controller regulates the DC voltage and sends the set-points to the other converters [23,24,25], with a very good load sharing ability even if the converters are not identical. However, neither the droop control, which has an inevitable disadvantage of bus voltage deviation, nor a common master-slave control, which requires communication between converters, is able to provide a comprehensive solution to the DC bus regulation together with the partial shading problems or PV module failures with an appropriate control strategy.

This paper presents a DC microgrid with PV modules as RES which can tolerate partial shading problems and the connection/disconnection of PV modules. A new multi-model control strategy approach is used to produce a high quality DC bus voltage to sustain a normal load operation without being affected by the aforementioned problems. The proposed solution is implemented in a digital platform which is used to regulate the dynamic performance of individual units, and to coordinate switching behaviors.

2 DC microgrid architecture

The DC microgrid herein used for the test is shown in Fig. 1, and it consists of a 200 V bus at which DC loads and RES are connected.

Fig. 1
figure 1

DC microgrid architecture used for the test

The RES are incorporated by a set of 4 rated DC-DC converters of 100 W. The flyback converter is selected, as a link between the PV module and the DC bus, because it provides galvanic isolation, and the ability to connect the converters in a DISO configuration. The entire PV stage consists of 4 Yingli Solar (model YL110WP) PV modules, and it is installed at the Electronics Department of the Technological Institute of Celaya, located at 20°32′15′′N 100°49′00′′W. The DISO configuration, in contrast with conventional structures, allows connecting several RES, brings modular interconnections and offers the possibility to increase the output voltage to high levels increasing overall efficiency, reducing stress in the converters. The isolated converters facilitate the output series interconnection with greater simplicity.

2.1 Partial shading and fault condition

The partial shading effect is a phenomenon that occurs when the solar irradiance levels received by PV cells in a PV module may be different from each other when a portion of the module is in shadow. This phenomenon can damage PV cells since hot-spots can be generated [26]. Therefore, bypass diodes are incorporated to prevent cell damage.

Three conditions are considered for the PV modules used: optimal operation state, partial shading and fault conditions.

In the first instance, no fault is presented, and an optimal state of operation brings a distributed power demand between the modules. In the second one, partial shading can happen individually or in groups. However, each PV source is capable of providing the most possible energy required due to the distributed connection, and because each module has its own converter. In the last one, the PV module is unable to provide power to the microgrid because it does not have the minimum solar radiation needed or it is damaged. In this case, two different operating conditions are considered in which the microgrid may operate.

The first case occurs when one failure in a PV module is presented, where the module does not have the minimum necessary power requirements due to either internal or external factors. Therefore, such PV module is disconnected, and the systems must be adjusted to the new operation state. Since the remaining converters have to regulate the bus voltage, the control must modify and adjust the reference voltages for each one of the remaining converters.

The second case is characterized by a failure where a PV module is disabled. Consequently, the remaining modules are responsible to support the bus voltage, and despite the condition in which the system is, the control parameters are adjusted.

Since there is the possibility of connecting or disconnecting PV modules, the output voltage of each converter must be adjusted according to the number of power sources connected, as shown in Table 1, because the DC bus must be regulated at a 200 V level.

Table 1 Voltage adjustments

3 Multi-model control strategy

System changes are inevitably due to extreme partial shading and failure problems, and a multi-model control strategy must be used. The proposed strategy provides an effective DC bus voltage regulation, and the corresponding flowchart algorithm is shown in Fig. 2. The proposed control strategy selects and adjusts the control parameters of each converter so that the voltage of the microgrid remains regulated.

Fig. 2
figure 2

Proposed control strategy algorithm

The PV module detection is the first step performed by the algorithm and it is accomplished by sensing each open circuit module voltage with a resistive divider with a high ohmic value. The voltage measured provides information for evaluating if the PV module has enough solar energy or if it is damaged. Each PV module was characterized, and based on a minimum output voltage estimation that guarantees power to the lowest load considered, the algorithm detects if a PV module has enough energy. Another threshold voltage is used in the algorithm to determine if a PV module is damaged, in which case, the bypass diode failure generates a low output voltage [27].

The second step determines whether to connect or disconnect certain PV modules. Based on the first step, the decision is taken depending on whether the voltage is high enough, which means that the PV module will deliver energy without stressing it. The consideration is based on the manufacturer datasheet and the previous PV module characterization performed.

The next step consists in determining the control parameters. Regardless of the number of PV modules connected, the control must ensure that the bus voltage is located at the desired level. All the information of different models is stored in a pre-set parameters bank. Once the number of connected modules is known, the required parameters are selected for each converter.

The last step is to send the selected parameters to adjust the voltage reference point of each converter. Thus, each converter is responsible for providing a voltage level in order to keep the DC voltage energized. Under normal operating conditions, the power demanded by the loads is distributed among the connected modules. When partial shading occurs in a module, the unaffected modules have to compensate the power demand. If a module cannot provide enough power, it is disconnected in the following “PV modules detection”.

3.1 Multi-model control

The system has the ability to change the number of connected PV modules, which means that more DC-DC converters have to interact in the DISO connection. Since system complexity increases with each module addition, a modelling and control problem has to be faced. The system has to operate robustly over a wide range of operating conditions, and a simplest way to confront it is to decompose them into a simpler modelling and control problem. This approach is increasingly popular because it is based on the “divide and conquer” strategy. In this context, a multi-model control can provide such appeal. In a multi-model control, several models and/or controllers are specified a priori [28]. The do-case diagram, which is shown in Fig. 3, works as system linker between the “PV module decision” and the “parameters adjustment” where the multi-model control is allocated.

Fig. 3
figure 3

Multi-model control: do-case

The multi-model control herein proposed works by switching the control input based on tuned models chosen for different points of operation. This allows better control of non-linear systems by limiting multiple models for the entire operating range. The multi-model control block diagram considered is shown in Fig. 4, where sp is the set point, e is the error, u is the controller output signal, d is the unmeasured disturbances, U is the input of the process, and y is the output. The model identifier α is selected by electrical characteristics of the system, such as voltage, current and power. The model parameter β is determined by the model identifier, and is based on predetermined parameters for the system. The controller setting block is used to adjust the reference point and the controller for each corresponding model. Ns is the secondary transformer turns.

Fig. 4
figure 4

Multi-model control diagram

3.2 Converter model

The flyback converter is illustrated in Fig. 5, where Np, Ns are the primary and secondary transformer turns; Lp, Ls are the primary and secondary inductance; RL is the parasitic series resistance of the inductor; RC is the parasitic resistance of the output capacitor; R is the output load; CC is the output capacitor; Vin is the input voltage; Vout is the output voltage.

Fig. 5
figure 5

Flyback converter

The dynamic behavior of each flyback converter can be described by (1) [29]:

$$G_{\text{d}} = \frac{{\hat{V}_{\text{o}} }}{{\hat{d}(s)}} = \frac{{N_{\text{s}} }}{{N_{\text{p}} }}G_{\text{do}} \frac{{\left( {1 + \frac{s}{{s_{z1} }}} \right)\left( {1 - \frac{s}{{s_{z2} }}} \right)}}{{1 + \frac{s}{{w_{\text{o}} Q}} + \frac{{s^{2} }}{{w_{\text{o}}^{2} }}}}$$
(1)

where \(\hat{V}_{\text{o}}\) is the output voltage; \(\hat{d}(s)\) is the control signal; sz1 and sz2 are system zeros; Q is the quality factor; wo is the cutoff frequency; Gdo is the gain transfer function. They are shown as (2)–(6), respectively.

$$s_{z1} = \frac{1}{{R_{C} C_{C} }}$$
(2)
$$s_{z2} = \frac{{(1 - D)^{2} R + \left[ {R_{L} + D(1 - D)R_{\text{e}} } \right](1 - 2D)}}{{DL_{\text{p}} }}$$
(3)
$$Q = \frac{1}{{w_{\text{o}} }}\frac{{R(1 - D)^{2} + R_{L} + D(1 - D)R_{\text{e}} }}{{C_{C} R_{L} (R_{C} + R) + C_{C} (1 - D)R_{\text{e}} (R_{C} + R) + L_{\text{p}} }}$$
(4)
$$w_{\text{o}} = \sqrt {\frac{{R_{L} + R_{\text{e}} D(1 - D) + (1 - D)^{2} R}}{{L_{\text{p}} C_{C} (R_{C} + R)}}}$$
(5)
$$G_{\text{do}} = V_{\text{in}} \frac{{(1 - D)^{2} + \frac{{R_{L} + D(1 - D)R_{\text{e}} }}{R}(1 - 2D)}}{{\left[ {(1 - D)^{2} + \frac{{R_{L} + D(1 - D)R_{\text{e}} }}{R}} \right]^{2} }}$$
(6)

In (3)–(6), D is the duty cycle; Re is defined as follows:

$$R_{\text{e}} = \frac{{R_{C} R}}{{R_{C} + R}}$$
(7)

N is the transformation ratio:

$$N = {{N_{\text{s}} } \mathord{\left/ {\vphantom {{N_{\text{s}} } {N_{\text{p}} }}} \right. \kern-0pt} {N_{\text{p}} }}$$
(8)

3.3 Control scheme

With the transfer function (1), the open loop response for each output voltage listed in Table 1 was plotted and shown in Fig. 6. For all the cases a phase margin lower than 30° was observed, which indicates that the system needs to be compensated to avoid instability.

Fig. 6
figure 6

Bode diagram for each output voltage

Since the system does not meet the minimum conditions of stability, a proportional-integral-derivative (PID) controller is used to increase the phase margins between 30° and 60° to ensure closed loop stability, and to provide a robust performance in a wide range of operation conditions.

The time-domain PID control equation is defined by:

$$u(t) = K_{\text{p}} e(t) + \frac{{K_{\text{p}} }}{{T_{\text{i}} }}\int_{0}^{t} {e{\text{d}}\tau } + K_{\text{p}} T_{\text{d}} \dot{e}_{\text{f}} (t)$$
(9)

where u(t) is the output control signal; e(t) is the control error; Kp is a proportional gain; τ is a variable of integration; Ti is the integral time; Td is the derivative time; ėf(t) is a control filter error.

The discrete PID control equation is defined by:

$$u(t_{k} ) = K_{\text{p}} \left( {r(t_{k} ) - y(t_{k} )} \right) + I(t_{k} ) + K_{\text{i}} e(t_{k} ) - K_{\text{d}} \left( {e(t_{k} ) - e(t_{k - 1} )} \right)$$
(10)

where tk is the instantaneous or present time; tk-1 is the previous time before present time; r is the set point value; y is the feedback output bus voltage; I is the sum of errors to the present time; Ki is an integral gain; Kd is a derivative gain.

The controller was tuned for each output voltage, and the model gain values are obtained based on a Ziegler–Nichols tuning method. The corresponding values are shown in Table 2.

Table 2 Kp, Ki and Kd gains values

Once the compensator is designed, the closed loop step response of each output voltage is analyzed. The dynamic response for each output is shown in Figs. 7, 8 and 9. The overshoot is reduced to a minimum value, which guarantees a lower number of oscillations with lower probability of instability in the bus voltage. The response time was considered to be less than 10 ms, and with the controller designed, the value is achieved. DC microgrids are slow dynamic systems since electronic loads with capacitors at their inputs are interconnected to the bus. Each converter is able to adjust its output voltage to regulate the DC bus voltage to 200 V.

Fig. 7
figure 7

Closed loop step response with output voltage of 100.0 V

Fig. 8
figure 8

Closed loop step response with output voltage of 66.6 V

Fig. 9
figure 9

Closed loop step response with output voltage of 50.0 V

4 Experimental results

An experimental prototype was built to evaluate the proposed multi-model control strategy, which consists of 4 DC-DC converters and a digital control module. Each converter has 2 optocouplers, one at the input and the other at the output, by which the sensed voltage is sent to the master control.

The main features of the system are shown in Table 3, where ΔVbus is the DC bus voltage ripple and Pbus is the power of DC bus.

Table 3 Overall microgrid specifications

Table 4 shows the specifications of each converter, where Vin is the input voltage; Iin,max is the maximum input current; Vo,max is the maximum output voltage; Po,max is the maximum power; Io is the output current; fs is the switching frequency.

Table 4 Converter specifications

Table 5 shows the operating conditions of the microgrid, where Vo,conv is the output voltage of each converter; Io,conv,max is the maximum output current per converter; Vbus is the bus voltage; Pmax is the maximum power of the microgrid bus.

Table 5 Microgrid operation conditions

The DC-DC converters and the full system were tested in order to verify the DC bus regulation under different operation conditions. The system was tested in islanding mode.

The system response was evaluated to load changes (between 25% and 70%), and the results with 4, 3, and 2 connected modules are shown in Figs. 10, 11 and 12. The dynamic limitation of the converter along with the lack of transformer optimization results in that the 2-module connected case has the worst voltage overshoot and stabilization time, which are 15% and 80 ms, respectively. Compared to the theoretical closed-loop step response, it can be verified that the stabilization of the output voltage is faster when a higher number of converters are used. Thus, the fast stabilization time is observed in the 4-module connected case with 10 ms.

Fig. 10
figure 10

System response with 4 modules under load changes

Fig. 11
figure 11

System response with 3 modules under load changes

Fig. 12
figure 12

System response with 2 modules under load changes

The system response was evaluated by changing the number of PV modules. Figure 13 shows the system response when two converters are working and a third PV module is suddenly connected. Each converter adjusts its parameters to switch from an output voltage of 100–66 V, and the bus voltage remains regulated at 200 V. Under a module connection/disconnection, the system requires 20 ms to stabilize the voltage bus, and up to ± 25% of voltage variation can be observed. The worst condition is used for the system in which there are no capacitive filters or storage elements connected to the DC bus.

Fig. 13
figure 13

System response with a module connection from 2 to 3 modules

Figure 14 shows the system response when four converters are working, and one PV module is suddenly disconnected. Each converter adjusts its parameters to switch from an output voltage of 50 to 66 V, and the bus voltage remains regulated at 200 V. It can be seen that the duration of the transient response is about 20 ms.

Fig. 14
figure 14

System response with a module connection from 4 to 3 modules

Moreover, the system response under a load and module change is evaluated. Figure 15 shows the voltage and current output of each converter when a load change, from 70% to 25%, is performed simultaneously with a module connection. It can be observed that the system goes from operating with three PV modules (66 V) to four PV modules (50 V) without affecting the 200 V DC bus level. Although a voltage variation is generated, the DC bus voltage stability is not compromised.

Fig. 15
figure 15

System response with a module connection from 3 to 4 and with load change

Figure 16 shows the voltage and current output conditions of each converter when the system goes from three PV modules to two modules operation, and a load change, from 25% to 70%, is performed. It can be noted that each output voltage of converters changes from 66 to 100 V. When a load change is done at the same time with a module disconnection, a bigger voltage variation is observed in the transient response. This case is the most critical because it involves the least amount of connected modules, when the number of modules is the highest, the voltage variation is the lowest.

Fig. 16
figure 16

System response with a module connection from 3 to 2 modules

One of the advantages of DISO configuration is that the efficiency of the system increases as more converters are added. Figure 17 shows the efficiency for each output voltage. For higher voltage conversion, the efficiency tends to decrease due to the losses of the converter derived from electrical stress. The control strategy herein considered allows using the largest number of enabled converters, which is reflected in a higher efficiency compared to a conventional strategy that only uses a single converter to raise the output voltage to 200 V (Fig. 17 black line).

Fig. 17
figure 17

DC–DC converter efficiency for each output voltage

5 Conclusion

A multi-model control strategy approach, aiming at a PV based DC microgrid, which provides a high-quality bus voltage regulation despite partial shading problems, is presented and validated by experimental results. Since each PV module has its own converter, the partial shading problem, which significantly impairs power generation in PV series arrangements, is solved by the DISO configuration. The proposed strategy solves problems such as connection/disconnection, and avoids the PV partial shade stress for extreme cases by disconnecting the affected PV module. Moreover, the control strategy, in which only 3 different models were considered, has the ability to be expanded to more models. The system was tested with load changes, showing stability and maintaining the bus voltage level. Furthermore, it was tested by connecting and disconnecting several PV modules, in which the multi-model control strategy shows an adequate response with a good result of bus voltage regulation. The proposed system is also flexible, providing modularity to connect more PV modules or arrays.