<<

electronics

Article A Photovoltaic-Based DC Microgrid System: Analysis, Design and Experimental Results

Xiaoling Xiong * and Yuchen Yang

State Key Laboratory of Alternate Electrical Power System with Sources, North China Electric Power University, Beijing 102206, China; [email protected] * Correspondence: [email protected]

 Received: 30 April 2020; Accepted: 2 June 2020; Published: 5 June 2020 

Abstract: Due to the exhaustion of fossil energy, the utilization of renewable energy resources is developing quickly. Due to the intermittent nature of the renewable energy resources, the devices are usually adopted in renewable power generation system to enhance the system reliability. In this paper, the photovoltaic-based DC microgrid (PVDCM) system is designed, which is composed of a solar power system and a battery connected to the common bus via a boost converter and a bidirectional buck/boost converter, respectively. As the photovoltaic (PV) panels might operate in a maximum power point tracking (MPPT) mode or constant voltage mode, meanwhile, the power can flow between the battery and the load bidirectionally. Therefore, for the sake of optimizing power utilization in the PVDCM system, a control strategy making the system able to switch from one operating mode to another smoothly and automatically is proposed in this paper. Moreover, the small-signal modeling method based on averaged state-space is no more applicable in this study, thus the nonlinear analysis method with discrete-time mapping model is adopted for stability analysis. Based on the stability analysis, the closed-loop parameters are designed to make sure the whole system can operate properly in all operating modes. The control strategy and stability analysis based on the nonlinear analysis method in the closed-loop design are verified by experiment results.

Keywords: DC microgrid; PV system; battery; multiple operating modes; energy management strategy; nonlinear analysis; closed-loop stability

1. Introduction The non-renewable energy resources, including coal, petroleum, natural gas, etc., are gradually becoming exhausted, the development and proper utilization of the renewable energy resources is thus very urgent [1–4]. Therefore, due to the environmental and economic incentives, renewable energy generation is gaining lots of attention nowadays, such as solar power, , power, tidal power, etc. [5–7]. Among them, photovoltaic (PV) systems are now experiencing fast development. However, due to the intermittent feature of solar energy, which is closely related to the weather conditions and geographic locations, a PV system that is only composed of solar energy might be unreliable [1,3,8,9]. In order to solve this problem, an approach integrating the energy storage devices to the PV system i.e., the batteries and ultracapacitors, is usually employed [2]. The PV-based system can be connected to the main grid nearby as supplementary power to improve the reliability of the main grid. However, the extensive interconnection of the converter-based PV system to the main grid can lead to lots of dynamic interactions and may cause different kinds of unstable issues [10,11]. The PV system can also operate in standalone mode for local applications in remote non-electrified regions [10,12,13], such as in the desert, on mountains, etc. Constructing small-scale standalone PV-based system which can power the surrounding loads in those regions is much more cost-effective than extending the

Electronics 2020, 9, 941; doi:10.3390/electronics9060941 www.mdpi.com/journal/electronics Electronics 2020, 9, 941 2 of 17 conventional main grid to those areas. The PV-based standalone microgrid is thus proposed to realize this kind of application, which has also gained growing attraction in recent years [5,8,9,14]. The microgrid (or minigrid) can integrate the PV panels, energy storage devices, and controllable loads effectively and economically [9,12,15]. By taking some reasonable control measures, the microgrid can implement the optimal use of energy. In practice, this system can be divided into two types: DC microgrid [16–18] and AC microgrid [19]. The former is widely used in modern applications, especially for electric ships, electric vehicles, E-mobility, and smart homes, etc. [20,21]. That is because of the inherent advantages of DC microgrids, such as that the control is simple, no need for synchronization, no reactive power, no low frequency harmonics and excellent compatibility with sources, storage devices and loads, etc. [10,12,16–18]. Meanwhile, as the PV panels and the storage devices work inherently in DC, this paper is thus designing a PVDCM system. In recent years, many researchers have made contributions on the PVDCM system, mainly focusing on the energy management and control methods, as well as the stability issues. Firstly, the decentralized droop control, without communication lines or with few communication lines among different power generators, is a popular and efficient control method for proper power allocation of the system [11,12,15]. However, for the systems with batteries, not only power sharing is important, but also the state charge of the battery needs to be monitored and controlled. Such as the authors in [8,18] concentrate on the control of the battery charging and discharging process to protect the battery. Additionally, in order to make the operation of the system more reliable and comprehensive, multiple sophisticated energy management and control strategies are proposed in [1,5,22]. In the different control strategies, controlling the DC bus voltage properly is another important control issue, ref. [23] designs a nonlinear adaptive backstepping controller to maintain a constant voltage at the DC bus, [24] also proposes a method of stabilizing DC bus voltage based on a comprehensive control and power management system which also implements the power flow flexibly. Additionally, for the optimal operation of the system, a wind-PV-batteries hybrid DC microgrid system is designed in [25], which takes economic and ecological factors into consideration to implement the system optimal operation. However, the computing burden increases rapidly with the rising of the complexity of the control method, leading to all of these complicated control methods and algorithms should be implemented in a microprocessor, at least a digital signal processor, which is costly and also brings more stability problems due to the time delay results from the digital control methods. On the other hand, many publications focus on the stability issues in the PVDCM system. In order to analyze the influence of the controller parameters and constant power load, the most common used method is the small signal model based on the state space averaging method [21,26,27]. Specifically, in this paper, a simple PVDCM system, which is composed of a solar power system connected to the common bus via a boost converter and a battery connected to the common bus via a bidirectional buck/boost converter, respectively, is studied and designed in detail. In this system, the solar energy is the main source and the battery is a backup source, which can absorb the extra power from the PV panels and can also supply the insufficient power to the load. Thus, the corresponding energy management strategy and the implementation are necessary to be proposed, so as to use the solar energy preferentially. In the meanwhile, when the solar energy exceeds the load, the extra energy needs to be stored in the battery. Then, it’s necessary to control the charging and discharging procedures for the battery. In practice, the PV panels might work in two modes: maximum power point tracking (MPPT) mode and off-MPPT mode. The PV converter with proper control switches between the two modes, can either make maximum utilization of the solar energy or regulate the DC bus voltage. Meanwhile, the battery converter may either take care of the DC bus voltage or control the charging and discharging procedures of the battery. Consequently, the control system for PVDCM needs to be able to operate in multiple operating modes stably [28], which is a challenging work. The first challenge is that the control method needs to be realized for two functions: (1) optimized power utilization, such as using the solar energy as much as possible, protecting the battery, regulating the DC bus voltage and rationalizing power allocation; (2) making sure that the system is capable of Electronics 2020, 9, 941 3 of 17 switching between the different operating modes smoothly and automatically. A control strategy for a dual-input buck and buck-boost converter with two input sources was proposed in [29], which is also applicable to multiple dual-input converters [30]. However, two control loops will interact with each other all the time when two input sources power the loads simultaneously. To solve this problem, an improved control strategy is proposed in [1]. However, that cannot handle the bidirectional power for the battery here as there are no energy storage devices in those systems. Another challenge is the stability issue of the closed-loops, which is much more complicated for the system with multiple operating modes than the system with a single operating mode because the multiple control loops are always coupled with each other, and it’s necessary to consider the stability conditions for all possible operating modes. The often used small-signal modeling method based on the state-space averaging method [26,28] is no longer applicable in the PVDCM system. The reason is that the multiple control loops are coupled with each other in each operating mode. The authors in [29] gave a method that designed the regulators in one operating mode first, in which there were no control loops coupling effects, then substituted the designed parameters into other operating modes and checked if the system was stable or not. If the system was stable, the estimating procedure was ended, but if not, the controller parameters of regulators were adjusted until the stability requirements were satisfied. This method may fail many times before finding a correct solution and it needs to be designed again when the operating condition is changed. Despite this, this method is no longer applicable when the control loops are coupled in all operating modes. In [30], a decoupling matrix is introduced to design the regulators of the coupled control loops, but this method becomes invalid in a system with multiple operating modes, because the decoupling matrixes might be different for each operating mode. Then, it’s difficult for closed-loop designing-oriented. Alternatively, the small signal method with the eigenvalues analysis is performed in [21,26,27]. However, this small-signal modeling method based on the averaged state-space can only capture and analyze the low-frequency instability of the system, i.e., below half of the switching frequency [31], but cannot be used to analyze high frequency stability issues, such as subharmonic oscillation [32]. Then, a proper dynamic model for stability analysis of the PVDCM system is demanded. In general, the PVDCM system based on the switched power converters with the closed-loop control is a nonlinear time-discontinuous system, then many modeling methods for the DC converters can also be used here. To summarize that, one way to model the dynamics of this kind of system is by applying the averaging theory to transform the converter system into a time-continuous system, as in [31,32], which includes the simplest state-space averaging method. Despite that, more general averaging methods, such as Krylov–Bogoliubov–Mitropolsky [33] and multi-frequency averaging [34] are also developed to consider the switching ripple effects. However, it is still questionable at a high frequency range because it loses the high frequency information by averaging. Many strange phenomena cannot be explained with these models, such as the phase delay of the loop gain [35] and the subharmonic oscillation in the peak current control loop [32]. The former one is explained later by the multi-frequency small signal models [35], and [32] studies of the subharmonic oscillation by adding the sample-and-hold effect to the modified averaged model. However, this method fails to predict the beat frequency instability between different converters [36]. To solve this problem, the harmonic state-space (HSS) models with multi-input-multi-output forms are proposed based on the linear time period theory [37]. The HSS model succeeds in analyzing the beat frequency oscillation and it can predict high frequency oscillations. The main disadvantages of the HSS models are that the matrix model order is very high to achieve an accurate prediction and the general Nyquist criteria are inevitably used. All of these modeling methods are based on linearized systems, and analyze the stability issues in the frequency domain. Another way to model the dynamics of the switched-converters based system is the nonlinear analysis method in the time domain, including the averaging model and discrete-time model [38]. This nonlinear analysis method is mainly used to investigate the nonlinear phenomena in power electronic circuits, such as the bifurcation and chaos phenomena. The averaging model in time domain, by averaging the state variables over one switching period, can only analyze the low frequency Electronics 2020, 9, 941 4 of 17 Electronics 2020, 9, x FOR PEER REVIEW 4 of 17 bifurcationthe system’s [38 dynamics,,39]. The discrete-timewhich is capable model of canpredicti giveng almost the instability complete informationin a wide range about of thefrequencies, system’s dynamics,even amongst which the is chaos capable [38,40]. of predicting This paper the is instabilitygoing to design in a wide and rangemake sure of frequencies, PVDCM system even amongst is stable thein a chaos wide [range38,40]. of This frequency, paper is the going nonlinear to design analys andis make method sure based PVDCM on a system discrete-time is stable mapping in a wide model range ofis thus frequency, adopted. the nonlinear analysis method based on a discrete-time mapping model is thus adopted. ThisThis paperpaper isis organized asas follows:follows: Section2 2 will will firstfirst describedescribe thethe PVDCMPVDCM systemsystem withwith multiplemultiple operatingoperating modes,modes, and and then then the the energy energy management management strategy strategy is proposed; is proposed; Section 3Section presents 3 thepresents nonlinear the stabilitynonlinear analysis stability with analysis a discrete-time with a mappingdiscrete-time model, mapping based on model, which based the stability on which boundaries the stability under diboundariesfferent combination under different of compensation combination parameters of compen aresation graphically parameters derived are in graphically Section4; in derived Section 5in, theSection experiment 4; in Section results 5, are the given experiment to verify theresults effectiveness are given of to the verify energy the management effectiveness strategy of the andenergy the nonlinearmanagement stability strategy analysis and methodthe nonlinear for designing stability the analysis closed-loop method parameters; for designing lastly, conclusionsthe closed-loop are givenparameters; in Section lastly,6. conclusions are given in Section 6.

2.2. PVDCM System

2.1.2.1. PVDCM System Description FigureFigure1 1 shows shows the the main main topology topology of of the the studied studied PVDCM PVDCM system, system, which which is is composed composed ofof thethe PVPV panelspanels andand thethe battery. battery. The The PV PV panels panels power power the the DC DC load load on on the the DC DC bus bus via via a boost a boost converter converter and and the batterythe battery is connected is connected to the to DC the bus DC through bus through a bidirectional a bidirectional buck/boost buck/boos converter.t converter. The boost The converter boost regulatesconverter the regulates power ofthe the power PV panels, of the whilePV panels, the bidirectional while the bidirectional buck/boost converter buck/boost controls converter the charging controls andthe charging discharging and procedures discharging of procedures the battery. of When the ba thettery. maximum When the power maximum of the PV power panels of the is insu PVffi panelscient foris insufficient the load, then for thethe PVload, panels then operatethe PV inpanels MPPT operate mode in and MPPT the battery mode providesand the battery the complementary provides the powercomplementary to the load, power which to also the needsload, which to control also the needs bus to voltage. control If the the bus power voltage. of the If PV the panels power become of the largerPV panels than become the load, larger the excessive than the powerload, the will excess be providedive power to thewill battery. be provided Under to this the condition, battery. Under if the chargethis condition, current orif the charge charge voltage current ofthe or batterycharge voltage achieves of the the maximum battery achieves value recommended the maximum by value the manufacturers,recommended by the the charging manufacturers, procedure the of charging the battery proc requiresedure of to the be battery controlled. requires Meanwhile, to be controlled. the PV panelsMeanwhile, need tothe quit PV MPPT panels control need to and quit start MPPT to take contro carel ofand the start DC busto take voltage. care Therefore,of the DC accordingbus voltage. to theTherefore, power suppliedaccording by to the the PV panels,power thesupplied battery by states the andPV thepanels, load conditions,the battery thestates PVDCM and isthe able load to operateconditions, in multiple the PVDCM operating is able modes, to operate as shown in multip in Tablele operating1. Here, modes,Pm is theas shown maximum in Table output 1. Here, power Pm ofis the maximum PV panels, outputPo is the power load of requirement the PV panels, power, Po isv thebat and loadibat requirementare the battery power, voltage vbat and and ibat current, are the respectively.battery voltageIbmax andis thecurrent, recommended respectively. maximum Ibmax is the charge recommended current for themaximu battery,m charge while V currentbmin and forVbmax the arebattery, the allowed while V minimumbmin and Vbmax and are maximum the allowed battery minimum voltage, and respectively. maximum battery voltage, respectively.

Figure 1.1. Main topology of the studied photovoltaic-based DC microgrid (PVDCM).(PVDCM).

From Table1, it can be seen that if Pm < Po and the battery is over-discharged, the whole system From Table 1, it can be seen that if Pm < Po and the battery is over-discharged, the whole system will be shut down. Despite this, the PVDCM has three normal operating modes as follows: will be shut down. Despite this, the PVDCM has three normal operating modes as follows:

Electronics 2020, 9, 941 5 of 17

Electronics 2020, 9, x FOR PEER REVIEW 5 of 17 Operating Mode M —when Pm < Po, the solar power is insufficient, the PV panels are thus • 1 operating in MPPT modeTable controlled 1. The multiple by theoperating boost modes converter, of PVDCM. while the battery supplies the complementary power via the bidirectional buck/boost converter working in boost mode to regulate the DC bus voltage v , the inductor current iPm ≥is P positiveo (the reference direction o Pm < Po Lb2 is shown as in Figure1). Figure2a shows the energyibat < Ibmax flow ibat and ≥ I thebmax corresponding control requirements of M1, in whichvbat ≤d V1bminand d2 areOFF the duty cyclesM1 of Q1 andM2Q 2, respectively, Q3 is always complementary to Q2V.bmin When < vbatP bmaxPo , theM excessive1 M power1 willM be2 stored in the battery. Under this condition, if ibat < Ibmaxvbat, ≥ it V isbmax unnecessary M1 to controlM3 ibat, so theM control3 system is the same as that in Figure2a. The corresponding power flow is described in Figure2b, which compared to • 1 m o FigureOperating2a, only Mode the M direction—when of PiLb <2 isP reversed., the solar power is insufficient, the PV panels are thus operating in MPPT mode controlled by the boost converter, while the battery supplies the Operating Mode M2—when Pm > Po and ibat reaches the maximum charge current limit Ibmax, • complementary power via the bidirectional buck/boost converter working in boost mode to ibat is required to be controlled so as to protect the battery. Thus, the bidirectional buck/boost regulate the DC bus voltage vo, the inductor current iLb2 is positive (the reference direction is converter operates in buck mode to control ibat. Meanwhile, the PV panels have to quit MPPT controlshown modeas in andFigure to regulate 1). Figure the dc2a bus shows voltage, the asenergy shown flow in Figure and 2thec. corresponding control requirements of M1, in which d1 and d2 are the duty cycles of Q1 and Q2, respectively, Q3 is always Operating Mode M3—when Pm > Po and vbat achieves the maximum battery voltage limit Vbmax, • complementary to Q2. When Pm > Po, the excessive power will be stored in the battery. Under this the bidirectional converter will operate in buck mode to control vbat. At the same time, the boost condition, if ibat < Ibmax, it is unnecessary to control ibat, so the control system is the same as that in converter still regulates vo, as shown in Figure2d. Figure 2a. The corresponding power flow is described in Figure 2b, which compared to Figure 2a, only the direction of iLb2 is reversed. • Operating Mode M2—whenTable 1. PThem > P multipleo and ibat operating reaches the modes maximum of PVDCM. charge current limit Ibmax, ibat is required to be controlled so as to protect the battery. Thus, the bidirectional buck/boost converter Pm Po operates in buck mode to control ibat. Meanwhile,Pm < Po the PV panels≥ have to quit MPPT control mode i t < I i I and to regulate the dc bus voltage, as shown in Figureba 2c.bmax bat ≥ bmax • v3bat Vbmin m o OFFbat M1 M2 bmax Operating Mode M —when≤ P > P and v achieves the maximum battery voltage limit V , the V < v < V M M M bidirectional converterbmin bat will operatebmax in buck1 mode to 1control vbat. At 2the same time, the boost vbat Vbmax M1 M3 M3 converter still regulates≥ vo, as shown in Figure 2d.

(a) (b)

(c) (d)

FigureFigure 2.2. Power flowflow schematics and corresponding controlcontrol requirements ofof PVDCM,PVDCM, whichwhich operatesoperates

in:in: ((a)M) M11 with PPmm << PPo; o(;(b)b M)M1 with1 with PmP >m P>o; P(co);( Mc)M2; (d2);( Md)M3. 3.

Electronics 20202020,, 99,, 941x FOR PEER REVIEW 67 of 17 Electronics 2020, 9, x FOR PEER REVIEW 6 of 17

• Operating Mode M2—when Pm is much larger than Po, the excessive energy from the PV panels 2.2. Proposed Proposedmakes i batPVDCM PVDCM reach I Controlbmax Control, the Strategy Strategycharge current loop is thus triggered and ve2 increases until it is larger First,than vthe e1, then PV converters D2 is turned are on required and D1 is to turned be able off, to and realize the bidirect the MPPTional algorithm converter for switches the sake from of makingboost full mode use of tosolar buck energy. mode A toschematic control diagra diagramthe chargem of the current. MPPT Therefore,control for the PV DC panels voltage is shown is not controlled during this transient interval. However, at the same time, the power delivered to the in Figure 33,, whichwhich regulatesregulates PVPV output voltage vvpvpv oror output output current current ipvi pvto tobe beequal equal to the to the voltage voltage or battery is controlled to a limit level so that much more power will be delivered to the load, which currentor current reference reference corresponding corresponding to tothe the maximum maximum power power point. point. Here, Here, ipvipv isis chosen chosen to to be be adjusted. adjusted. will lead to an increase in vo, and ve1 will decrease via the output voltage regulator. When ve1 falls Therefore, when the system reaches aa steadysteady state,state, thethe PVPV panelspanels currentcurrent referencereferenceI Ipvrefpvref will respond to the below maximum 0, diode power Dc is point turned through on, then an I ref MPPT = ve1 + algorithm. Ipvref. With Inthe In this this adjustment paper, paper, the of Perturbthe MPPT and algorithm, Observe AlgorithmIpvref will (POA)(POA) continue [[7,9]7,9] istois adopted. adopted.increase, TheTheand fundamental fundamentalve1 will continue idea idea to of of decrease. this this algorithm algorithm In order is is to to impose imposeend this a smalla process, small step step an to upper limit Imax needs to be set for Ipvref in the MPPT algorithm, which should be slightly larger toIpvref Ipvrefat at a a fixed fixed interval, interval, and and calculate calculate the the output output power powerof of thethe PVPV panelspanels toto check whether it becomes than the output current of the maximum power point for the PV panels in all conditions. During larger or not, thenthen toto determinedetermine alteringaltering directionsdirections of of the the small small step step for forI pvrefIpvref,, soso thatthat IIpvrefpvref isis capable capable of changingthe execution toward the process, maximum if Ipvref power exceeds point. Imax, Ipvref = Imax will be kept fixed, the MPPT algorithm is then disabled. Therefore, when the above adjustment process reaches steady state again, the PV panels exit the MPPT mode, and the boost converter controls vo through an outer voltage control loop and an inner current control loop. According to the analysis, the system can switch from M1 to M2 smoothly. If Pm decreases or Po increases, the system will switch from M2 to M1, which is the reverse process of the above analysis. • Operating Mode M3—whenever Pm > Po, as long as vbat reaches Vbmax, the charge voltage control loop is triggered, as vbatf increases, then ve3 increases. During the period ve3 < ve2, the battery is charged with the constant charge current Ibmax through charge current control loop, so vbatf still increases, ve3 increases until ve3 > ve2, D3 is on and D2 is off, and the charge voltage control loop

begins to take care of the battery and control it to operate at a constant voltage. Then the system Figure 3. Schematic diagram of maximum power point tracking (MPPT) control for photovoltaic Figureswitches 3. Schematic to M3 automatically. diagram of maximum power point tracking (MPPT) control for photovoltaic (PV) (PV) panels. panels. From the above description, it can be known that the output voltage control loop and the MPPT On the other hand, the DC voltage needs to be controlled all the time, the charge current and controlOn sharethe other the samehand, inner the DC control voltage part, needs and tomeanwhile be controlled the outputall the time,voltage the control charge loop current and and the charge voltagecontrol loop for the share battery the same should “PWM be controlled Comparat properly.or2”, these By control combining loops the don’t analysis work andat the control same chargerequirements voltage in for Section the battery 2.1, for should the sake be of controlled ensuring theproperly. PVDCM By can combining operate inthe multiple analysis modes and control stably time but can switch smoothly with the chosen devices, i.e., Dc, D1, D2, and D3. Therefore, this control requirementsand switch between in Section diff 2.1,erent for modes the sake smoothly, of ensuri anng energy the PVDCM management can operate control in multiple system is modes designed stably in andsystem switch is smart between and differentflexible as modes it can smoothly, switch between an energy different management operating control modes system smoothly. is designed It should in thisbe noting paper, that, and to demonstrated make sure the in system Figure4 can. Here, startK corrs isectly, the sampling the soft start coeffi circuitscient for should inductor be used, current whichiLb1, this paper, and demonstrated in Figure 4. Here, Ks is the sampling coefficient for inductor current iLb1, vcanof is make the feedback the duty output cycle voltageof the main and v ofcontrolled= Hof vo, whileswitchesvbatf increase= Hbf vbat slowlyis the feedbackuntil the batterysteady voltage,state is vof is the feedback output voltage and vof = Hof vo, while vbatf = Hbf vbat is the feedback battery voltage, andachieved. where Hof and Hbf are the sampling coefficients for vo and vbat, respectively. and where Hof and Hbf are the sampling coefficients for vo and vbat, respectively. The compensation ramp, Vp, which is further explicitly shown in Figure 5, is applied to extend the stability region of the peak current control method. Besides, with an additional diode Dc and a resistor R connected to the ground, the boost converter control loop can switch from the current control method realizing the MPPT algorithm to a dual control loop to regulate vo. Then, the boost converter switching between MPPT mode and constant voltage mode is achieved by turning Dc on and off automatically. For the bidirectional converter, whether it operates in boost mode or buck mode, Q2 is always the primarily controlled switch. Meanwhile, diode D1, D2, and D3 are introduced as selecting switches. By comparing the error signals, ve1, ve2, and ve3, the corresponding diode with the highest voltage is on while the other two diodes are off. Here, when the bidirectional converter works in buck mode, for instance, vbat is controlled, the controlled relationship will be vbat = vo (1 − d2). Hence, a negative logic is inserted to both the charge voltage and charge current control loops. Based on the proposed energy management control method, the operating principle of PVDCM is described as follows:

• Operating mode M1—when the PVDCM operates in M1, ipv (here also denotes as iLb1) is controlled by a peak current control loop to implement the MPPT algorithm. Meanwhile, the bidirectional Figure 4. The control system of PVDCM. converter operates in boost Figuremode 4.to The regulate control v osystem through of PVDCM.a voltage control loop. Here, ve1 > 0, and ve2 < 0, ve3 < 0 due to the charge current and charge voltage not reaching the limited value. The compensation ramp, Vp, which is further explicitly shown in Figure5, is applied to extend Accordingly, D1 is on, and D2 and D3 are off, the modulation signal vc of the “PWM the stability region of the peak current control method. Besides, with an additional diode Dc and Comparator2” is vc = ve1. Under this condition, since ve1 > 0, the diode Dc is thus turned off, and Iref a resistor R connected to the ground, the boost converter control loop can switch from the current = Ipvref. When Pm becomes larger than Po, the excessive energy will charge the battery automatically due to the dc voltage is controlled by the bidirectional converter.

Electronics 2020, 9, 941 7 of 17

control method realizing the MPPT algorithm to a dual control loop to regulate vo. Then, the boost converter switching between MPPT mode and constant voltage mode is achieved by turning Dc on and off automatically. For the bidirectional converter, whether it operates in boost mode or buck mode, Q2 is always the primarily controlled switch. Meanwhile, diode D1, D2, and D3 are introduced as selecting switches. By comparing the error signals, ve1, ve2, and ve3, the corresponding diode with the highest voltage is on while the other two diodes are off. Here, when the bidirectional converter works in buck mode, for instance, v is controlled, the controlled relationship will be v = vo (1 d ). Electronics 2020, 9, x FOR PEER REVIEW bat bat 8− of 217 Hence, a negative logic is inserted to both the charge voltage and charge current control loops.

Figure 5. Typical waveforms for peak current control loop. Figure 5. Typical waveforms for peak current control loop. Based on the proposed energy management control method, the operating principle of PVDCM is described3. The Discrete-Time as follows: Model

OperatingThe discrete-time mode M model—when for the the PVDCM operating operates mode inM1 M is ,establishedipv (here also as denotes an example as i in) isthis controlled section, • 1 1 Lb1 and theby aanalysis peak current and modeling control loop procedure to implement are similar the MPPT for the algorithm. other two Meanwhile, operating modes, the bidirectional which is thus converterignored here. operates In our in study, boost we mode assume to regulate that thev switchingo through frequency a voltage controlof the two loop. converters Here, ve is1 >the0, sameand andv ethe2 < trailing0, ve3 < edge0 due modula to the chargetion is currentapplied andto “PWM charge Comparat voltage notor2” reaching in Figure the 4. limited Suppose value. the two convertersAccordingly, operateD1 is on, in continuous and D2 and currentD3 are o mode,ff, the modulationthe states of signal diodev Dc ofpv and the “PWMswitch Comparator2”Q3 are thus in complementaryis vc = ve1. Underto the states this condition, of switches since Q1 andve1 Q> 20, all the the diode time. DConsequently,c is thus turned during off, andone Iswitchingref = Ipvref. period,When the Psystemm becomes alters larger among than threePo, theswitch excessive states energyand the will sequence charge takes the battery as follows: automatically (1) Q1 and due Q2 both toare the turned dc voltage on; (2) is Q controlled1 is on while by Q the2 is bidirectional off (when d1 converter. ≥ d2) or Q1 is off while Q2 is on (when d1 ≤ d2);

(3) QOperating1 and Q2 both Mode are M turned—when off.Pm Here,is much according larger than to thePo ,system the excessive parameters energy in from Table the 2, PV d1 panels≥ d2 is • 2 adopted.makes Then,ibat reach the stateIbmax equations, the charge of the current main loop circuit, is thus as shown triggered in Figure and ve 21,increases are derived until as it is larger than v , then D is turned on and D is turned off, and the bidirectional converter switches from e1 2 dv 1 1 11−−qq boost mode to buck modeo to=− control thevi + charge12 current. + Therefore, i the DC voltage is not controlled  dt R CoLbLb C12 C during this transient interval. However,Lf at f the same time, f the power delivered to the battery is di q −1 controlled to a limit levelLb so1 =+ that1 much more1 power will be delivered to the load, which will lead  vVopv to an increase in vo, and dtve will Lbb decrease11 L via the output voltage regulator. When ve falls below 0,  1 , 1 (1) diode D is turned on, thendi I q= v−1 + I . With the adjustment of the MPPT algorithm, I will c  Lb2 =+ref 2 e1 pvref1 pvref vvobat continue to increase, anddtve1 will L continue L to decrease. In order to end this process, an upper  bb22 limit Imax needs to be setdv for Ipvref11in the MPPT algorithm, 1 which should be slightly larger than  bat =−ivV − + the output current of the maximumLb power2 point bat for the PV panels ocbat in all conditions. During the  dt Cbat r bat C bat r bat C bat execution process, if Ipvref exceeds Imax, Ipvref = Imax will be kept fixed, the MPPT algorithm is then wheredisabled. q1 and q Therefore,2 are the switching when the functions above adjustment of Q1 and process Q2, respectively, reaches steady which state are again,given theas PV panels exit the MPPT mode, and the boost converter controls v through an outer voltage control loop 1, QON o =  i and an inner current control loop.qi According to the. analysis, the system can switch from M1(2)to 0, QOFFi M2 smoothly. If Pm decreases or Po increases, the system will switch from M2 to M1, which is the reverse process of the above analysis.

Operating Mode M —wheneverTablePm 2.> ThePo, parameters as long as ofv PVDCM.reaches V , the charge voltage control • 3 bat bmax loop is triggered, as v increases, then v increases. During the period v < v , the battery is Parameters batf eDescription3 e3 Valuese2 charged with the constant charge current Ibmax through charge current control loop, so vbatf still Vpv PV output voltage 20~34 V increases, ve3 increases until ve3 > ve2, D3 is on and D2 is off, and the charge voltage control loop Ipvref PV current reference from MPPT 0~3 A Vocbat Equivalent battery voltage 34~40 V rbat Equivalent battery resistor 8 mΩ Vbmax Maximum battery voltage limit 40 V Ibmax Maximum battery current limit 3 A Vo DC bus voltage 48 V Io Load current 0~5 A Lb1 Inductance for the inductor Lb1 48 μH Lb2 Inductance for the inductor Lb2 48 μH Cf Capacitance of output capacitor 1.88 mF

Electronics 2020, 9, 941 8 of 17

begins to take care of the battery and control it to operate at a constant voltage. Then the system switches to M3 automatically.

From the above description, it can be known that the output voltage control loop and the MPPT control share the same inner control part, and meanwhile the output voltage control loop and the charge control loop share the same “PWM Comparator2”, these control loops don’t work at the same time but can switch smoothly with the chosen devices, i.e., Dc, D1, D2, and D3. Therefore, this control system is smart and flexible as it can switch between different operating modes smoothly. It should be noting that, to make sure the system can start correctly, the soft start circuits should be used, which can make the duty cycle of the main controlled switches increase slowly until the steady state is achieved.

3. The Discrete-Time Model

The discrete-time model for the operating mode M1 is established as an example in this section, and the analysis and modeling procedure are similar for the other two operating modes, which is thus ignored here. In our study, we assume that the switching frequency of the two converters is the same and the trailing edge modulation is applied to “PWM Comparator2” in Figure4. Suppose the two converters operate in continuous current mode, the states of diode Dpv and switch Q3 are thus in complementary to the states of switches Q1 and Q2 all the time. Consequently, during one switching period, the system alters among three switch states and the sequence takes as follows: (1) Q1 and Q2 both are turned on; (2) Q is on while Q is off (when d d ) or Q is off while Q is on (when d 1 2 1 ≥ 2 1 2 1 ≤ d ); (3) Q and Q both are turned off. Here, according to the system parameters in Table2, d d is 2 1 2 1 ≥ 2 adopted. Then, the state equations of the main circuit, as shown in Figure1, are derived as

 dvo 1 1 q1 1 q2  = vo + − iLb + − iLb  dt RLC f C f 1 C f 2  −  diLb1 q1 1 1  = − vo + Vpv  dt Lb1 Lb1 , (1)  diLb2 q2 1 1  = − vo + vbat  dt Lb2 Lb2  dvbat 1 1 1  = iLb2 vbat + Vocbat dt − Cbat − rbatCbat rbatCbat where q1 and q2 are the switching functions of Q1 and Q2, respectively, which are given as ( 1 , Qi ON qi = . (2) 0 , Qi OFF

Table 2. The parameters of PVDCM.

Parameters Description Values

Vpv PV output voltage 20~34 V Ipvref PV current reference from MPPT 0~3 A Vocbat Equivalent battery voltage 34~40 V rbat Equivalent battery resistor 8 mΩ Vbmax Maximum battery voltage limit 40 V Ibmax Maximum battery current limit 3 A Vo DC bus voltage 48 V Io Load current 0~5 A Lb1 Inductance for the inductor Lb1 48 µH Lb2 Inductance for the inductor Lb2 48 µH Cf Capacitance of output capacitor 1.88 mF Cbat Equivalent battery capacitance 400 µF Ks Current sampling coefficient 0.1 fs Switching frequency 100 kHz Electronics 2020, 9, 941 9 of 17

The proportional integral (PI) regulators are used for output voltage controller, charge current controller, and charge voltage controllers, and the transfer function is given by

1 GPI(s) = kp(1 + ), (3) sτi here, kp is the proportional gain and τi is the integral time constant. Besides, kpj and τij (j = 1, 2, 3) are the parameters for “Regulator1”, “Regulator2”, and “Regulator3” in Figure4, respectively. In M1, the boost converter works with MPPT control scheme, Iref = Ipvref. Nevertheless, the bidirectional converter operates in boost mode to control vo. Accordingly, vc = ve1, so vc fulfills

dvc dvo kp1Ho f kp1 = kp1Ho f vo + Vore f . (4) dt − dt − τi1 τi1

T Consequently, the state variable vector of M1 is x = [vo iLb1 iLb2 vbat vc] . The corresponding state equations for the three switch states are described by

. x = Anx + BnE1, (5) where n = 1, 2, 3 are corresponding to switch state (1)–(3), respectively. The voltage vector E1 is given T as E1 = [Vpv Vocbat Vore f ] , and An and Bn are expressed as

 1 1 q1 1 q2   R C C− C− 0 0   − L f f f   q1 1   − 0 0 0 0   Lb1   q2 1 1  An =  − 0 0 0 , (6)  Lb2 Lb2   1 1   0 0 0   − Cbat − rbatCbat   kp1Ho f kp1Ho f (q1 1)kp1Ho f (q2 1)kp1Ho f   − − 0 0  RLC f − τi1 C f C f

 0 0 0       1/Lb1 0 0    Bn =  0 0 0  = B. (7)      0 1/rbatCbat 0    0 0 kp1/τi1 The sampled state variables at the starting and ending instants of the nth switching period are denoted as xn = x(nTs) and xn + 1 = x((n + 1)Ts), respectively. Then, the solution can be derived for each state equation in (5), i.e.,

1 x(d Ts) = Φ (d Ts)xn + (Φ (d Ts) I)A− BE , (8) 2 1 2 1 2 − 1 1 1 x(d Ts) = Φ ((d d )Ts)x(d Ts) + (Φ ((d d )Ts) I)A− BE , (9) 1 2 1 − 2 2 2 1 − 2 − 2 1 1 x + = Φ ((1 d )Ts)x(d Ts) + (Φ ((1 d )Ts) I)A− BE , (10) n 1 3 − 1 1 3 − 1 − 3 1 where I represents the unity matrix, φj(ξ) is the transfer matrix, which is expressed as

X∞ 1 Φ (ξ) = eAjξ = I + Akξk. (11) j k! j k=1

In order to complete the discrete-time map, the relationship between the duty cycles and the state variables should be found. During the period of Q1 being on, iLb1 increases, when it reaches Iref, Q1 will be turned off. Therefore, the switching function for Q1 can be derived as Electronics 2020, 9, 941 10 of 17

s ( ) = I mcd Ts + C x(d Ts), (12) 1 · pvre f − 1 1 1 where C = [0 Ks 0 0 0]. As demonstrated in Figure5, the compensation slope mc can be calculated 1 − with mc = Vp/Ts. In the output voltage control loop, vc is compared with the ramp signal, which is given by

vramp = VL + mramp(t mod Ts), (13) where VL and mramp are the lower threshold and rising slope of the ramp signal, respectively. Essentially, Q2 is turned on if vc > vramp, and otherwise it is turned off. Therefore, the switching function for Q2 is obtained as   s ( ) = C x(d Ts) mrampd Ts + VL , (14) 2 · 2 2 − 2 here C2 = [0 0 0 0 1]. Now, an accurate discrete-time model can be derived by combining Equations (10), (12) and (14). Assuming the equilibrium point is denoted as xe. By taking xn + 1 = xn = xe, s1 = 0 and s2 = 0, the equilibrium point xe and stable-state duty cycles D1 and D2 can be obtained. Then, the Jacobian of the equilibrium point for the discrete-time model is evaluated as

! 1 ! 1 ! 1  ∂xn+1 ∂xn+1 ∂s2 − ∂s2 ∂xn+1 ∂s1 −  ∂s1 ∂s1 ∂s2 − ∂s2  J(xe) =  +  . (15) ∂xn − ∂d2 ∂d2 ∂xn − ∂d1 ∂d1 ∂xn ∂d2 ∂d2 ∂xn  xn=xe

All the eigenvalues of the Jacobian can be got according to solve the characteristic equation as follows

λI J(xe) = 0. (16) − If all the eigenvalues are inside the unit circle, the system is stable. But if any eigenvalue is outside the unit circle or on the unit circle, then the system will become unstable. It should be noted that usually the PV microgrids also provide power to the constant power load, not only the pure impedance load as in this paper. If a constant power load is adopted, the dc bus voltage is also required to be controlled for many applications, so the control strategies can be the same as those in this paper. But, the discrete-time model needs to be changed. For example, the load resistor RL is changed to a constant power load Pcpl, then the first state equation in (1) should be changed to

dvo Pcpl 1 q1 1 q2 = + − iLb1 + − iLb2, (17) dt −C f vo C f C f and the corresponding An in (6) is changed to

 Pcpl 1 q1 1 q2   2 C− C− 0 0   C f Voe f f     q1 1   L− 0 0 0 0   b1  A =  q2 1 1 , (18) n  L− 0 0 L 0   b2 b2   0 0 1 1 0   Cbat rbatCbat   k H k H (q 1)k H (q −1)k H −   p1 o f p1 o f 1− p1 o f 2− p1 o f 0 0  RLC f − τi1 C f C f

2 here, Voe is the steady state DC voltage, which will be calculated later at the equilibrium point. The other procedures are similar.

4. The Stability Boundaries of PVDCM In this study, the system parameters of PVDCM are specified as shown in Table2, based on which the system stability boundaries are found with the discrete-time model. Electronics 2020, 9, x FOR PEER REVIEW 11 of 17

−− Pcpl 11qq12 2 00 CV C C foe f f q −1 1 0000 Lb1 q −1 1 = 2 An 00 0, (18) LLb2 b2  11 00−− 0 CrCbat bat bat ()−−() kHpofpof111121 kH q11 kH pof q kH pof − 00 τ RCLf i1 C f C f

here, Voe2 is the steady state DC voltage, which will be calculated later at the equilibrium point. The other procedures are similar.

4. The Stability Boundaries of PVDCM In this study, the system parameters of PVDCM are specified as shown in Table 2, based on which the system stability boundaries are found with the discrete-time model. Electronics 2020, 9, 941 11 of 17

Generally speaking, the parameters of the PI controllers and slope compensation Vp are

significantGenerally parameters speaking, to thebe determined. parameters of As the we PI know, controllers kp is required and slope to compensation be large enoughVp are to reduce significant the parameterssteady-state to error, be determined. while τi should As we know,be smallkp is enough required to to beimprove large enough the system to reduce dynamic the steady-state response. error,However, while if τkip shouldis too large be small or τ enoughi is too small, to improve instability the system will occur. dynamic Therefore, response. we However,need to find if k ptheis toostability large boundaries or τi is too small,for these instability controller will parameters occur. Therefore, under the we worst need tooperating find the conditions, stability boundaries with Vpv, forIpvref these, Io, and controller Vocbat serving parameters as space under parameters. the worst Here, operating the operating conditions, modes with M1 Vandpv, IMpvref2 are, Io taken, and Vasocbat an servingillustration as space at the parameters. most time, Here, to help the us operating find the modes worst Moperating1 and M2 conditionare taken asfirstly, an illustration then the stable at the mostregion time, of the to controller help us find parameters the worst are operating derived. condition firstly, then the stable region of the controller parametersIn order are to derived. find the worst operating condition of the output voltage control loop for the bidirectionalIn order toconverter, find the worst kp2 = operating1, τi2 = 50 condition μs, and V ofp the= 0.1 output are kept voltage constant control to loop make for thesure bidirectional the charge converter,current controlkp2 = loop1, τi2 and= 50 theµs, peak and Vcurrentp = 0.1 control are kept loop constant are stable. to make Corresponding sure the charge to the current parameters control loopspecified and thein Table peak current2, the explicit control loopstability are stable.boundari Correspondinges demonstrated to the in parameters Figure 6 are specified obtained in Tableby the2, thediscrete-time explicit stability model established boundaries in demonstrated Section 3, where in Figure B12 is 6operating are obtained mode by boundary the discrete-time between modelM1 and establishedM2. in Section3, where B12 is operating mode boundary between M1 and M2.

35 35 B B12 Stable 12 30 30 ← τ =0.8ms i1 τ =12μs τ =0.9ms ← τ =0.7ms i1 i1 i1 (V) (V) 25 25 Unstable pv pv Unstable V V Stable τ =20μs 20 20 i1 τ =35μs→ M i1 M 2 M2 1 M1 15 15 0 1 2 3 0 1 2 3 I (A) Ipvref(A) pvref

(a) (b)

Figure 6.6. The stability boundaries of output voltage control loop:loop: (a) StabilityStability boundariesboundaries in MM1;;( (b) Stability boundaries in M22.

By observing Figure6 6,, some some conclusions conclusions can can be be drawn drawn as as follows: follows:

The system will become unstable with the PI parameters change. As kp gets larger or τ gets • 1 i1 smaller, it’s much easier for the output voltage control loop to lose its stability. As the output voltage regulator is shared in M ,M , and M , the system stability is always affected • 1 2 3 by the parameters kp1 and τi1 (in mode M2 and M3 are similar), which have narrower stable regions in M1 than that in the other two operating modes. Consequently, they need to be designed in operating mode M1. Vpv and I are related to the PV panels, which also have influence on the stability and also • pvref determine the worst operating condition for the voltage control loop in operating mode M1. The parameters Vpv and Ipvref become the smaller in M1, the system operating condition will become worse.

For the sake of length constraint, some stability boundaries are ignored here. With the similar analysis, it can be known that Vocbat is smaller, which also makes the the output voltage control loop become unstable more readily. What is worse, when Vpv decreases, the stable region of the peak current control loop will also shrink. At present, when the system works in the worst operating conditions in the operating mode M1, the stability boundaries of “Regulator1” and slope compensation Vp are derived in Figure7. From Figure7a, it can be seen that if Vp > 0.08 V, the stability of the peak current control loop can be guaranteed all the time. It can be found that, from Figure7b, τi1 should be larger than 1.1 ms to maintain the output voltage control loop stable when kp1 = 1 (In this paper, τi1 is selected as 1.2 ms). Electronics 2020, 9, x FOR PEER REVIEW 12 of 17

• The system will become unstable with the PI parameters change. As kp1 gets larger or τi1 gets smaller, it’s much easier for the output voltage control loop to lose its stability. • As the output voltage regulator is shared in M1, M2, and M3, the system stability is always affected by the parameters kp1 and τi1 (in mode M2 and M3 are similar), which have narrower stable regions in M1 than that in the other two operating modes. Consequently, they need to be designed in operating mode M1. • Vpv and Ipvref are related to the PV panels, which also have influence on the stability and also determine the worst operating condition for the voltage control loop in operating mode M1. The parameters Vpv and Ipvref become the smaller in M1, the system operating condition will become worse. For the sake of length constraint, some stability boundaries are ignored here. With the similar analysis, it can be known that Vocbat is smaller, which also makes the the output voltage control loop become unstable more readily. What is worse, when Vpv decreases, the stable region of the peak current control loop will also shrink. At present, when the system works in the worst operating conditions in the operating mode M1, the stability boundaries of “Regulator1” and slope compensation Vp are derived in Figure 7. From Figure 7a, it can be seen that if Vp > 0.08 V, the stability of the peak current control loop can be guaranteed all the time. It can be found that, from Figure 7b, τi1 should be larger than 1.1 ms to Electronics 2020, 9, 941 12 of 17 maintain the output voltage control loop stable when kp1 = 1 (In this paper, τi1 is selected as 1.2 ms).

0.1 2

M M1 0.08 1 Stable 1.5 Stable Stability boundary 0.06 (V)

(ms) 1 p 1 i

V Stability boudary 0.04 τ

0.02 0.5 Unstable Unstable 0 0 20 22 24 26 28 30 0 0.5 1 1.5 2 Vpv(V) k p1 Electronics 2020, 9, x FOR PEER REVIEW(a) (b) 13 of 17

Figure 7. The parameter space of controlcontrol parametersparameters atat thethe worstworst operatingoperating conditioncondition inin MM11:(: (a) TheThe the equivalent PV panels’ power is smaller than the load, i.e., ppv < Po, thus the battery provides the parameter space ofof VVpv andand VVpp; ;((bb) )The The parameter parameter space space of of “Regulator1”. “Regulator1”. complementary power to the load, here, iLb2 > 0, corresponding to the power flow in M1 as in Figure 2a. In Figure 9b, when Ipvref = 1.1 A, ppv > Po, excessive power is provided to the battery, and the measured In orderorder toto simplifysimplify thethe discussion,discussion, the derivationderivation processes of thethe stabilitystability boundariesboundaries for average value ILb2 is −2.5 A, so ILb2 < 0, corresponding to the power flow in M1 as shown in Figure 2b “Regulator2”“Regulator2” andand “Regulator3”“Regulator3” areare omittedomitted here,here, asas theythey areare similarsimilar toto thethe aboveabove analysis.analysis. The finalfinal results(only the of parametersinductor current are given is reversed as k = compared1, τ = 10 µtos, thek previous= 10, τ = mode22 µs. in M1). It can be seen from results of parameters are given as kpp2 = 1, τi2i 2= 10 μs, kp3 p=3 10, τi3 =i 322 μs. Figure 9c, when Ipvref = 2 A, theoretically the average value of iLb1 can reach 20 A, but the actual average 5.value Experimental is measured Validation to be 12.2 A. This is because the charge current is controlled and ILb2 = −3 A, the PV panels change from the MPPT mode to the constant voltage mode, corresponding to the power flow In order to verify the effectiveness of the energy management strategy and the nonlinear analysis in M2In as order shown to inverify Figure the 2c. effectiveness Under the ofsame the condition,energy management if Vbat reaches strategy 40 V, andthe charge the nonlinear voltage analysis control method based on the discrete-time model, a 240 W prototype is established in the laboratory, as shown methodloop will based be triggeredon the discrete-time and the charge model, current a 240 Wwill prototype decrease, is establishedas demonstrated in the inlaboratory, Figure 9d, as in Figure8. The specifications of the PVDCM system are the same as that in Table2, where the normal showncorresponding in Figure to 8.the The power specifications flow in M of3 as the shown PVDC inM Figure system 2d. are Based the onsame the as above that inanalysis, Table 2,it canwhere be battery voltage Vbat is 36 V, which is composed of three 12 V battery modules, and the IRFP4668PbFs theconcluded normal that battery the PVDCMvoltage Vsystembat is 36 can V, operwhichate is stably composed in all threeof three operating 12 V battery modes. modules, and the are adopted as the switches Q ~ Q , and the 60APU02PbF is used as power diode D. IRFP4668PbFs are adopted as 1the switches3 Q1 ~ Q3, and the 60APU02PbF is used as power diode D. When Vpv = 31 V with different Ipvref and Vocbat, the stable-state experiment waveforms at full load in three operating modes are exhibited in Figure 9a–d. In Figure 9a–c, the waveforms from the top to the bottom are the DC bus voltage vo, the drive signals for Q1 and Q2, VGS1 and VGS2, the two inductor currents iLb1 and iLb2, respectively. In Figure 9d, the waveforms from the top to the bottom are vo, vbat, iLb1, and iLb2, respectively. From Figure 9a, when Ipvref = 0.53 A (current sampling coefficient Ks = 0.1),

Figure 8. Picture of the prototype. Figure 8. Picture of the prototype.

When Vpv = 31 V with different Ipvref and Vocbat, the stable-state experiment waveforms at full load in three operating modes are exhibited in Figure9a–d. In Figure9a–c, the waveforms from the top to the bottom are the DC bus voltage vo, the drive signals for Q1 and Q2, VGS1 and VGS2, the two inductor currents iLb1 and iLb2, respectively. In Figure9d, the waveforms from the top to the bottom are vo, vbat, iLb1, and iLb2, respectively. From Figure9a, when Ipvref = 0.53 A (current sampling coefficient Ks = 0.1), the equivalent PV panels’ power is smaller than the load, i.e., ppv < Po, thus the battery provides the complementary power to the load, here, iLb2 > 0, corresponding to the power flow in M1 as in Figure2a. In Figure9b, when Ipvref = 1.1 A, ppv > Po, excessive power is provided to the battery, and the measured average value I is 2.5 A, so I < 0, corresponding to the power flow in M as shown in Lb2 − Lb2 1 Figure2b (only the inductor current is reversed compared to the previous mode in M ). It can be seen 1 (a) (b)

(c) (d)

Figure 9. Steady experiment waveforms in three operating modes: (a) M1 with Ipvref = 0.53 A, and Vocbat

= 39 V; (b) M1 with Ipvref = 1.1 A, Vocbat = 39 V; (c) M2 with Ipvref = 2.5 A, and Vocbat = 39 V; (d) M3 with Ipvref =

2.5 A, and Vocbat ≈ 40 V.

Electronics 2020, 9, x FOR PEER REVIEW 13 of 17

the equivalent PV panels’ power is smaller than the load, i.e., ppv < Po, thus the battery provides the complementary power to the load, here, iLb2 > 0, corresponding to the power flow in M1 as in Figure 2a. In Figure 9b, when Ipvref = 1.1 A, ppv > Po, excessive power is provided to the battery, and the measured average value ILb2 is −2.5 A, so ILb2 < 0, corresponding to the power flow in M1 as shown in Figure 2b (only the inductor current is reversed compared to the previous mode in M1). It can be seen from Figure 9c, when Ipvref = 2 A, theoretically the average value of iLb1 can reach 20 A, but the actual average value is measured to be 12.2 A. This is because the charge current is controlled and ILb2 = −3 A, the PV panels change from the MPPT mode to the constant voltage mode, corresponding to the power flow in M2 as shown in Figure 2c. Under the same condition, if Vbat reaches 40 V, the charge voltage control loop will be triggered and the charge current will decrease, as demonstrated in Figure 9d, corresponding to the power flow in M3 as shown in Figure 2d. Based on the above analysis, it can be concluded that the PVDCM system can operate stably in all three operating modes.

Electronics 2020, 9, 941 13 of 17

from Figure9c, when Ipvref = 2 A, theoretically the average value of iLb1 can reach 20 A, but the actual average value is measured to be 12.2 A. This is because the charge current is controlled and I = 3 A, Lb2 − the PV panels change from the MPPT mode to the constant voltage mode, corresponding to the power flow in M2 as shown in Figure2c. Under the same condition, if Vbat reaches 40 V, the charge voltage control loop will be triggered and the charge current will decrease, as demonstrated in Figure9d, corresponding to the power flow in M3 as shown in Figure2d. Based on the above analysis, it can be concluded that the PVDCM system canFigure operate 8. Picture stably of the in allprototype. three operating modes.

(a) (b)

(c) (d)

FigureFigure 9. 9. Steady experiment experiment waveforms waveforms in in three three operating operating modes: modes: (a) M (a1)M with1 withIpvref = I0.53pvref A,= and0.53 V A,ocbat and= 39V V;ocbat (b=) M391 V;with (b )MIpvref1 =with 1.1 A,Ipvref Vocbat= 1.1= 39 A, V;V (ocbatc) M=2 with39 V; Ipvref (c)M = 2.52 with A, andIpvref Vocbat= 2.5 = 39 A, V; and (d)V Mocbat3 with= 39 Ipvref V; = (d2.5)M A,with and IVocbat =≈ 402.5 V. A, and V 40 V. 3 pvref ocbat ≈ To further examine the dynamic responses and the operating mode switching procedures, the load stepping up from 10% load to full load and then stepping down to 10% load are implemented, the experimental results are shown in Figure 10, where vo and vbat are only given the AC components. From Figure 10a, it can be observed that when the PV panels’ maximum power Pm = 105 W, which is not enough to power the full load but is much larger than 10% load, then excessive power will be provided to the battery and the charge current is smaller than Ibmax. Therefore, the PVDCM is working in M1 before and after the load changes, only the battery exits from providing power to the load and is charged. Here, the PV panels are operating in MPPT mode with ILb1 kept constant, and the output power is almost constant, which agrees with the theoretical design. In Figure 10b, Pm = 600 W, the PVDCM are always working in M2 with an ILb2 which doesn’t change, the power provided by the PV panels varies to keep power balanced, while the battery is always in a constant current charging mode with charge current of 3 A. In Figure 10c, Pm = 600 W, the battery is basically full-charged at this time, so the PVDCM is working in M3 all the time, the power provided by the PV panels varies to supply the load before and after the load changes, while the battery is in a constant voltage charging mode and the charge current is relatively small. When the load changes, the operating mode also switches, the corresponding experimental waveforms are shown in Figure 10d,e. In Figure 10d, when the load steps up to full load and then steps down to 10% load, the system will switch from M2 Electronics 2020, 9, x FOR PEER REVIEW 14 of 17

To further examine the dynamic responses and the operating mode switching procedures, the load stepping up from 10% load to full load and then stepping down to 10% load are implemented, the experimental results are shown in Figure 10, where vo and vbat are only given the AC components. From Figure 10a, it can be observed that when the PV panels’ maximum power Pm = 105 W, which is not enough to power the full load but is much larger than 10% load, then excessive power will be provided to the battery and the charge current is smaller than Ibmax. Therefore, the PVDCM is working in M1 before and after the load changes, only the battery exits from providing power to the load and is charged. Here, the PV panels are operating in MPPT mode with ILb1 kept constant, and the output power is almost constant, which agrees with the theoretical design. In Figure 10b, Pm = 600 W, the PVDCM are always working in M2 with an ILb2 which doesn’t change, the power provided by the PV panels varies to keep power balanced, while the battery is always in a constant current charging mode with charge current of 3 A. In Figure 10c, Pm = 600 W, the battery is basically full-charged at this time, so the PVDCM is working in M3 all the time, the power provided by the PV panels varies to supply the load before and after the load changes, while the battery is in a constant voltage charging mode Electronicsand the charge2020, 9, 941current is relatively small. When the load changes, the operating mode also switches,14 of 17 the corresponding experimental waveforms are shown in Figure 10d,e. In Figure 10d, when the load steps up to full load and then steps down to 10% load, the system will switch from M2 to M1 to M1 automatically, and then switch back to M2 again. From it, it can be seen that both ILb1 and ILb2 automatically, and then switch back to M2 again. From it, it can be seen that both ILb1 and ILb2 varies to varies to keep power balanced when the load changes. Figure 10e shows that the system will switch keep power balanced when the load changes. Figure 10e shows that the system will switch from from mode M3 to M1 automatically, and then switch back to M3 again when the load steps up and mode M3 to M1 automatically, and then switch back to M3 again when the load steps up and steps steps down. down.

(a) (b)

(c) (d)

(e)

Figure 10. 10. ExperimentExperiment waveforms waveforms of load of load steppi steppingng up and up load and stepping load stepping down: ( down:a) M1 with (a)M Ipvref1 =with 0.35 IApvref (Pm= =0.35 105A W), (Pm V=ocbat105 = 39 W), V;V (ocbatb) M=2 39with V; (Ibpvref)M = 22with A (PImpvref = 600= 2 W), A ( PVmocbat= 600= 39 W), V; (Vc)ocbat M3 =with39 V;Ipvref (c )M= 23 Awith (Pm I = 2 A (Pm = 600 W), V 40 V; (d) I = 0.93 A (Pm = 280 W), V = 39 V; (e) I = 0.93 A pvref ocbat ≈ pvref ocbat pvref (Pm = 280 W), V 40 V. ocbat ≈ The above experimental results come from the stable system which is designed based on the stability boundaries in Section5. To further verify the stability analysis, the controller parameters are chosen in the unstable region are tested. Such as τi1 should be larger than 1.1 ms to maintain the output voltage control loop stable from Figure7, and τi3 > 8.7 µs and Vp > 0.08 V should be guaranteed in M3 to keep the system stable. Here, τi1 = 0.8 ms in M1 and τi3 = 4.7 µs, Vp = 0 V in M3 are performed in Figure 11, the other controller parameters are kept the same as the stable operation in Figure9; Figure 10. From Figure 11a, it can be clearly seen that a low frequency oscillation occurs as τi1 is too small and in the unstable region in Figure7. Figure 11b exhibits the coexistence of a low frequency oscillation and subharmonic oscillation, as a small τi3 mainly affects the low frequency stability and Vp has a great influence on the high frequency stability. All the above experiment results demonstrate that when the power supplied by the PV panels and the load have variations, the PVDCM system is capable of switching among the three operating Electronics 2020, 9, x FOR PEER REVIEW 15 of 17

= 600 W), Vocbat ≈ 40 V; (d) Ipvref = 0.93 A (Pm = 280 W), Vocbat = 39 V; (e) Ipvref = 0.93 A (Pm = 280 W), Vocbat ≈ 40 V.

The above experimental results come from the stable system which is designed based on the stability boundaries in Section 5. To further verify the stability analysis, the controller parameters are chosen in the unstable region are tested. Such as τi1 should be larger than 1.1 ms to maintain the output voltage control loop stable from Figure 7, and τi3 > 8.7 μs and Vp > 0.08 V should be guaranteed in M3 to keep the system stable. Here, τi1 = 0.8 ms in M1 and τi3 = 4.7 μs, Vp = 0 V in M3 are performed

Electronicsin Figure2020 11,, 9the, 941 other controller parameters are kept the same as the stable operation in Figure15 of 179; Figure 10. From Figure 11a, it can be clearly seen that a low frequency oscillation occurs as τi1 is too small and in the unstable region in Figure 7. Figure 11b exhibits the coexistence of a low frequency modesoscillation smoothly, and subharmonic and indicating oscillation, that the energyas a small management τi3 mainly strategyaffects the proposed low frequency in this paper stability and and the nonlinearVp has a great analysis influence method on inthe the high closed-loop frequency design stability. are effective.

(a) (b)

Figure 11.11. Experiment waveformswaveforms inin operating operating mode mode M M1 and1 and M M3:(3: a()Ma) M1 1with withI pvrefIpvref == 0.3 A,A, VVocbatocbat == 3838 V, V, VVpv == 2626 V, V, IIpv_refpv_ref = 0.3= 0.3 A, A,Io =I o3.3= 3.3A and A and τi1 =τ 0.8i1 = ms;0.8 ( ms;b) M (b3 with)M3 Vwithpv = 24.5Vpv =V,24.5 Ipvref V, = I2pvref A, I=o =2 1 A, A,I oτi=3 =1 4.7 A, τμis,3 =Vp4.7 = 0µ V.s, Vp = 0 V.

6. ConclusionsAll the above experiment results demonstrate that when the power supplied by the PV panels and theIn orderload have to make variations, sure the the PVDCM PVDCM system system can is capable switch betweenof switching different among modes the three smoothly operating and automatically,modes smoothly, a control and indicating strategy with that optimizedthe energy power management utilization strategy is proposed proposed in this in this paper, paper and and the principlethe nonlinear of this analysis strategy method is explicitly in the described. closed-loop Then, design in order are effective. to guarantee the system stable under all required conditions, the stability analysis based on the nonlinear analysis method with a discrete-time mapping6. Conclusions model is adopted to design the closed loop parameters. With the discrete-time model, the stabilityIn order boundaries to make sure of the diff erentPVDCM parameters system can are switch derived, between which different first is used modes to findsmoothly the worst and operatingautomatically, condition a control for eachstrategy control with loop optimized and then powe therstable utilization region is canproposed be derived in this under paper, the and worst the operatingprinciple of conditions. this strategy The is controller explicitly parametersdescribed. Then, then can in order be chosen to guarantee in the stable the system region tostable ensure under the PVDCMall required system conditions, can operate the stability stably in analysis all operating based modes. on the Finally,nonlinear a prototype analysis method is built in with the laboratory,a discrete- thetime experimental mapping model results is adopted verify the to e designffectiveness the closed of the loop proposed parameters. energy With management the discrete-time strategy andmodel, the stabilitythe stability analysis boundaries based on of the differ nonlinearent parameters analysis methodare derived, used inwhich the closed-loopfirst is used design. to find the worst operatingIn the condition future, more for each works control need toloop be and completed. then the First, stable the region critical can and be quantitativederived under comparison the worst betweenoperating the conditions. proposed The method controller in this parameters paper and then the ca othern be presentedchosen in the methods stable areregion worth to ensure studying. the Second,PVDCM more system complicated can operate DC microgridsstably in all need operating to be covered. modes. Such Finally, as the a systemprototype multiple is built integrated in the renewablelaboratory, energy the experimental resources simultaneously, results verify the the systemeffectiveness with multipleof the proposed energy storage energy devices management and so on.strategy Second, and the the control stability strategy analysis for thebased complicated on the no systemnlinear will analysis be studied method and used try to in provide the closed-loop a unified controldesign. method for the standalone application and grid-connected application. Third, the stability issueIn should the future, be further more addressed works need and to compared be completed. with First, different the modelingcritical and methods. quantitative comparison between the proposed method in this paper and the other presented methods are worth studying. Author Contributions: Conceptualization, methodology, software, validation, formal analysis, investigation, resources,Second, more data curation,complicated writing—original DC microgrids draft need preparation, to be covered. visualization, Such as supervision, the system project multiple administration, integrated andrenewable funding energy acquisition, resources X.X.; writing—reviewsimultaneously, and the editing,system Y.Y.,with X.X. multiple All authors energy have storage read anddevices agree and to the so publishedon. Second, version the ofcontrol the manuscript. strategy for the complicated system will be studied and try to provide a Funding: This research was funded by the National Natural Science Foundation of China under Grant 51707065.

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

References

1. Xu, M.; Ruan, X.B.; Liu, F.X.; Yang, D.S. Energy Management for hybrid photovoltaic-fuel cell power system. Trans. China Electrotech. Soc. 2010, 25, 166–175. 2. Zhou, H.H.; Bhattacharya, T.; Duong, T.; Siew, T.S.T.; Khambadkone, A.M. Composite Energy Storage System Involving Battery and Ultracapacitor with Dynamic Energy Management in Microgrid Applications. IEEE Trans. Power Electron. 2011, 26, 923–930. [CrossRef] Electronics 2020, 9, 941 16 of 17

3. Liao, Z.L.; Xu, Y.J.; Shi, W.D. Wind-Photovoltaic Hybrid Double-Input Buck-Boost DC/DC Converter. IEEE Trans. Ind. Electron. 2014, 51, 63–66. 4. Umuhoza, J.; Zhang, Y.Z.; Zhao, S.; Mantooth, H.A. An adaptive control strategy for power balance and the intermittency mitigation in battery-PV energy system at residential DC microgrid level. In Proceedings of the 2017 IEEE Applied Power Electronics Conference and Exposition (APEC), Tampa, FL, USA, 26–30 March 2017. 5. Das, S.; Akella, A.K. A Control Strategy for Power Management of an Isolated Micro Hydro-PV-Battery Hybrid Energy System. In Proceedings of the ICEES, Chennai, India, 7–9 February 2018. 6. Xu, Q.; Hu, X.; Wang, P. A Decentralized Dynamic Power Sharing Strategy for Hybrid Energy Storage System in Autonomous DC Microgrid. IEEE Trans. Ind. Electron. 2017, 64, 5930–5941. [CrossRef] 7. Jia, Y.H.; Liu, T.; Wu, H.F. A SiC-Based Dual-Input Buck-Boost Converter with Independent MPPT for Photovoltaic Power Systems. In Proceedings of the IECON, Washington, DC, USA, 21–23 October 2018. 8. Qin, W.P.; Liu, X.S.; Han, X.Q.; Liu, J.Y.; Zhu, X.; Mi, X.D. An Improved Control Strategy of Automatic Charging/Discharging of Energy Storage System in DC Microgrid. Power Syst. Technol. 2014, 38, 1827–1834. 9. Anounce, K.; Bouya, M.; Ghazouani, M. Hybrid renewable energy system to maximize the electrical power production. In Proceedings of the IRSEC, Marrakech, Morocco, 14–17 November 2016. 10. Kwon, M.H.; Choi, S.W. Control Scheme for Autonomous and Smooth Mode Switching of Bidirectional DC-DC Converters in a DC Microgrid. IEEE Trans. Power Electron. 2018, 33, 7094–7104. [CrossRef] 11. Mobarrez, M.; Fregosi, D.; Jalali, G.; Bhattacharya, S.; Bahmani, M.A. A Novel Control Method for Preventing the PV and Load Fluctuations in a DC Microgrid from Transferring to the AC Power Grid. In Proceedings of the 2017 IEEE Second International Conference on DC Microgrids (ICDCM), Nuremburg, Germany, 27–29 June 2017. 12. Mi, Y.; Wu, Y.W.; Zhu, Y.Z.; Fu, Y.; Wang, C.S. Coordinated Control for Autonomous DC Microgrid with Dynamic Load Power Sharing. Power Syst. Technol. 2017, 41, 440–447. 13. Lu, X.N.; Sun, K.; Guerrero, J.M.; Vasquez, J.C.; Huang, L.P. State-of-Charge Balance Using Adaptive Droop Control for Distributed Energy Storage Systems in DC Microgrid Applications. IEEE Trans. Ind. Electron. 2014, 61, 2804–2815. [CrossRef] 14. Sharma, R.K.; Mishra, S. Dynamic Power Management and Control of a PV PEM Fuel-Cell-Based Standalone ac/dc Microgrid Using Hybrid Energy Storage. IEEE Trans. Ind. Appl. 2018, 54, 526–538. [CrossRef] 15. Guo, L.; Feng, Y.B.; Li, X.L.; Wang, C.S.; Li, Y.W. Stability Analysis and Research of Active Damping Method for DC Microgrids. Proc. CSEE 2016, 36, 927–936. 16. Gu, Y.J.; Li, W.H.; He, X.N. Frequency-Coordinating Virtual Impedance for Autonomous Power Management of DC Microgrid. IEEE Trans. Power Electron. 2015, 30, 2328–2337. [CrossRef] 17. Gu, Y.J.; Xiang, X.; Li, W.H.; He, X.N. Mode-Adaptive Decentralized Control for Renewable DC Microgrid with Enhanced Reliability and Flexibility. IEEE Trans. Power Electron. 2014, 29, 5072–5080. [CrossRef] 18. Khorsandi, A.; Ashourloo, M.; Mokhtari, H. A Decentralized Control Method for a Low-Voltage DC Microgrid. IEEE Trans. Energy Convers. 2014, 29, 793–801. [CrossRef] 19. Xie, Y.; Jia, R.; Dong, K.S.; Shen, W.C.; Li, Z.; Yang, N. Modeling and Simulation of an AC Microgrid. High Volt. Appar. 2015, 51, 101–107. 20. Li, X.L.; Guo, L.; Wang, C.S.; Li, Y.W. Key Technologies of DC Microgrids: An overview. Proc. CSEE 2016, 36, 2–17. 21. Su, M.; Liu, Z.J.; Sun, Y.; Han, H.; Hou, X.C. Stability Analysis and Stabilization Methods of DC Microgrid with Multiple Parallel-Connected DC-DC Converters Loaded by CPLs. IEEE Trans. 2018, 9, 132–142. [CrossRef] 22. Merabet, A.; Ahmed, K.; Ibrahim, H.; Beguenane, R.; Ghias, A. Energy Management and Control System for Laboratory Scale Microgrid based Wind-Pv-Battery. IEEE Trans. Sustain. Energy 2017, 8, 145–154. [CrossRef] 23. Xu, Q.; Zhang, C.; Wen, C.; Wang, P. A novel composite nonlinear controller for stabilization of constant power load in dc microgrid. IEEE Trans. Smart Grid 2019, 10, 752–761. [CrossRef] 24. Yi, Z.H.; Dong, W.X.; Etemadi, A.H. A Unifified Control and Power Management Scheme for PV-Battery-Based Hybrid Microgrids for Both Grid-Connected and Islanded Modes. IEEE Trans. Smart Grid 2018, 9, 5975–5985. [CrossRef] 25. Abbes, D.; Martinez, A.; Champenois, G. Eco-design optimisation of an autonomous hybrid wind-photovoltaic system with battery storage. IET Renew. Power Gener. 2012, 6, 358–371. [CrossRef] Electronics 2020, 9, 941 17 of 17

26. Shi, J.; Zheng, Z.H.; Ai, Q. Modeling of DC microgrid and stability analysis. Electr. Power Autom. Equip. 2010, 30, 86–90. 27. Radwan, A.A.A.; Mohamed, Y.A.-R.I. Linear active stabilization of converter-dominated DC microgrids. IEEE Trans. Smart Grid 2012, 3, 203–216. [CrossRef] 28. Dragicevic, T.; Lu, X.; Vasquez, J.C.; Guerrero, J.M. DC microgrids—Part I: A review of control strategies and stabilization techniques. IEEE Trans. Power Electron. 2016, 31, 4876–4891. [CrossRef] 29. Li, Y.; Ruan, X.B.; Yang, D.S. Modeling, analysis and design for hybrid power systems with dual-input dc-dc converter. In Proceedings of the IEEE Energy Conversion Congress and Exposition (ECCE), San Jose, CA, USA, 20–24 September 2009. 30. Liu, D.W.; Li, H.; Marlino, L.D. Design of a 6 kW multiple-input bi-directional dc/dc converter with decoupled current sharing control for hybrid energy storage elements. In Proceedings of the IEEE Applied Power Electronics Conference and Exposition (APEC), Anaheim, CA, USA, 25 February–1 March 2007. 31. Middlebrook, R.D. Small-signal modeling of pulse-width modulated switched-mode power converters. Proc. IEEE 1988, 76, 343–354. [CrossRef] 32. Middlebrook, R.D. Modeling current-programmed buck and boost regulators. IEEE Trans. Power Electron. 1989, 4, 36–52. [CrossRef] 33. Lehman, B.; Bass, R.M. Switching frequency dependent averaged models for PWM DC-DC converters. IEEE Trans. Power Electron. 1996, 11, 89–98. [CrossRef] 34. Li, X.; Ruan, X.B.; Xiong, X.L.; Jin, Q.; Tse, C.K. Stability Issue of Cascaded Systems with Consideration of Switching Ripple Interaction. IEEE Trans. Power Electron. 2019, 34, 7040–7052. [CrossRef] 35. Qiu, Y.; Xu, M.; Sun, J.; Lee, F.C. A generic high-frequency model for the nonlinearities in buck converters. IEEE Trans. Power Electron. 2007, 22, 1970–1977. [CrossRef] 36. Yue, X.; Zhuo, F.; Yang, S.; Pei, Y.; Yi, H. A matrix-based multifrequency output impedance model for beat frequency oscillation analysis in distributed power systems. IEEE J. Emerg. Sel. Top. Power Electron. 2016, 4, 80–92. [CrossRef] 37. Wereley, N.M. Analysis and Control of Linear Periodically Time Varying Systems. Ph.D. Thesis, Department Aeronaut, Astronaut, Massachusetts Institute of Technology, Cambridge, MA, USA, 1990. 38. Tse, C.K. Complex Behavior of Switching Power Converters; CRC Press: Boca Raton, FL, USA, 2003. 39. Xiong, X.L.; Tse, C.K.; Ruan, X.B. Bifurcation analysis of standalone photovoltaic-battery hybrid power system. IEEE Trans. Circuits Syst. I Regul. Pap. 2013, 60, 1354–1365. [CrossRef] 40. Tse, C.K. Flip bifurcation and chaos in three-state boost switching regulators. IEEE Trans. Circuits Syst. I Fundam. Theory Appl. 1994, 41, 16–23. [CrossRef]

© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).