1 Introduction

With the continuous increase in power demand due to the ever-increasing population, the power generation and distribution unit suffers from overburden and stress. To mitigate these, renewable energy came into existence by which a reliable and continuous power generation is promised by implementing microgrids [1, 2]. Among the investments in several renewable sources, wind and PV are in the frontline [3]. Around 26% of power is generated from renewable sources in all over the country in 2018, and by 2050 this production is expected to reach 100% by which the present global power demand will be made cheaper. Although the COVID-19 pandemic is severely affecting the global economy at higher rate, a significant investment growth has been continuously notified in the power sector. However, the primary issue associated with these renewable resources is its discontinuous nature and by which the reliability gets affected [4]. To compensate for this, a secondary energy storage such as battery backup system has been utilized with inverter; therefore, the flexibility in storing of power is improved when compared with load regulation-based improvement of power quality [5, 6].

This distributed power system can be stand-alone or grid-associated system where the portion of the power is utilized by system load and balance power is supplied to the grid only if some additional energy pervades. To enhance the stable power flow and power quality at the grid side, various control methods have been addressed in the literature [7,8,9,10]. To satisfy the local load feeding criteria and to maintain continuous power supply, grid-connected operation is highly recommended compared to stand-alone operation. Furthermore, there is a necessity that voltage and frequency of grid should be synchronized [11]. The configuration of microgrid is depending on the converter types used in between source and grid. As the outputs of PV and wind are different, converters like DC/DC and AC/DC are employed in addition to inverter for associating the grid with the energy sources. The type of converter to be utilized for a particular system will vary for all systems and is depending on various technical factors, configurations and power ratings [12,13,14,15].

As the PV array output is changing with time and of low amplitude, they cannot be applied directly to the inverter connected with grid. There arises a requirement of boost converters so that the panel voltage can be regulated and amplified. Therefore, the proper selection and design of converters is crucial as the system performance is highly relying on the efficiency of the DC-to-DC converters. The boosting ability of step-up converters can be improved using several ways such as cascaded switching technique [16], switched inductance [17], coupled components [18], voltage lift [19] and voltage multiplication [20]. A high voltage gain is possible with the above techniques at the cost of high duty cycle and low efficiency. The drawbacks of conventional converters are mitigated by Z-source network which becomes a hot research topic. The Z-source networks utilize the shoot-through mode of inverters to retain the voltage buck inversion capability. The drawbacks of this network such as discontinuous current conduction, limited boosting ability and high voltage stress are overcome by modifying the conventional structure with switched topology which can also be used as a converter, inverter and rectifier [21]. This converter is more suitable for PV application where a converter with high voltage boost is always in demand. The below table justifies the selection of proposed converter in this work.

The control algorithm of maximum power point tracking (MPPT) is executed using either direct duty cycle or closed-loop control. As seen in studies, trial-and-error-based fixed perturbations with constant scaling are required to be initialized in direct duty cycle-based control. But this method results in reduction in tracking efficiency with extended MPP tracking time. To overcome the drawbacks of this adaptive technique, a reference voltage-based closed-loop PI controller can be implemented due to the fact that the MPP voltage difference is comparatively smaller than the difference in MPP current for various insolations [22,23,24,25]. Considering the advantages of PI controller and to achieve better control performance over the former adaptive method, a PI controller-based MPPT is adopted for both the converters of PV and wind system. It is essential to operate both the PV and wind system in such a way that they produce maximum power to obtain high efficiency of the proposed system. The above-cited and other existing works concentrate on improving particular section but in this paper each and every module of the grid-connected hybrid renewable systems is presented. Moreover in this paper, automatic control of state of charging of battery is performed using ANN and its performance is compared with artificial intelligence (AI)-based fuzzy controller to prove the energy management effectiveness. The developed model provides open testing platform for different control methods.

The contributions of this research work are given below.

  • The grid-connected hybrid renewable system is realized by separate voltage source converters and battery backup system so as to inject continuous power to the grid.

  • Independent and robust controls of MPPT of the presented renewable sources are performed by simple PI controller.

  • A bidirectional converter controlled by ANN controller is employed to maintain constant voltage at the PCC.

  • The state-space model of the switched Z-source converter is developed to analyze the system stability, and the simulated effectiveness of the overall system is validated by developing the prototype of the system.

All the above converters and control techniques work only the energy available in PV and wind, respectively. Besides the variation in available energy during daytime and wind blowing period, there may be some time that both the sources fail to produce power. To avoid such nonavailability of power, a battery backup is implemented in the grid-connected system. A smart dispatch system is required to control the power dispatch from battery unit [26]. As the loads connected with the grid are uncertain and are liable to vary, conventional battery management scheme cannot be utilized to manage power flow among the battery and grid. The existing controllers supply the entire power of the battery to the grid if the load value increases and the battery may drain out completely. If this process continues, the battery lifespan minimized which in turn causes power outage and reduces the reliability of entire system. Thus, it is essential to implement smart controllers for efficient management of battery system [27,28,29,30]. The outputs of converters of PV and wind sources and battery are connected at the common coupling point where a steady DC voltage is maintained the proposed system. This voltage is coupled to the grid via 3Ф voltage source inverter (VSI) and filter circuits. As multilevel inverter [31, 32] and z-source inverter [33, 34] employment makes the circuit complex and costly and reduces the system efficiency, a conventional VSI with LC filter is implemented in our system. Moreover, hybrid system facilitates continuity in power flow, thereby improving the reliability [35, 36] (Fig. 1).

2 Proposed system

Figure 2 shows the hybrid energy setup with its converter and control system. The power source consists of an array of PV panels, a wind generator and a storage battery and power-conditioning converters to standardize the power output from the sources and an inverter to interface the grid and energy sources. The PV system is composed of an array of solar panels that are tied up with each other to extract the power output. A switched Z-source converter is implemented to increase the array voltage to a level equal to the DC voltage at the PCC. The wind system has wind blades, a turbine generator and a PWM rectifier to regulate the wind power. A series of batteries is placed to maintain a fixed voltage at the PCC and delivers the power to the grid when there is no output from the renewable sources. The secondary storage system has battery bank and a bidirectional converter that controls the battery’s charging and discharging mode via ANN controller. This converter is used as an interface to link the battery terminal and the PCC and controls the flow of current when the voltage levels at the PCC and battery terminal are different. The grid-interfaced inverter delivers the DC power generated from the hybrid resources into the grid as alternating power. A supervisory control scheme is implemented for the inverter and battery and closed-loop PI controllers are dedicated for renewable system, which all together form a hybrid power control and management system. The supervisory-control system consists of artificial intelligence-enabled neural and fuzzy networks to coordinate the dynamic and steady power flow.

Fig. 1
figure 1

Diagrammatic representation of proposed system

Fig. 2
figure 2

Diagrammatic representation of overall system

2.1 Modeling of PV system

The PV system converts light energy into electric energy without polluting the environment. A PV cell is the essential component in PV array, which can be resembled as a pn junction diode. The electrical circuit of PV system shown in Fig. 3 is composed of a current source (photocurrent) connected in parallel with a diode, a series resistor to describe the current flow and a shunt resistor to express a leakage current.

Fig. 3
figure 3

Electrical circuit

The current delivered out from the PV array is expressed as

$$ I = I_{{{\text{PV}}}} - I_{0} \left[ {\exp \left( {\frac{{V + IR_{{\text{S}}} }}{{\alpha V_{{\text{T}}} }}} \right) - 1} \right] - \left( {\frac{{V + IR_{{\text{S}}} }}{{R_{{\text{P}}} }}} \right) $$
(1)

The equation which relates the voltage and current is given below

$$ V_{{{\text{PV}}}} = n_{{\text{S}}} \frac{AKT}{q} \ln \left\{ {\frac{{n_{{\text{p}}} I_{{{\text{SC}}}} - I_{{{\text{PV}}}} + n_{{\text{p}}} I_{{\text{o}}} }}{{n_{{\text{p}}} I_{{\text{o}}} }}} \right\} - \frac{{n_{{\text{s}}} }}{{n_{{\text{p}}} }} I_{{{\text{PV}}}} R_{{\text{S}}} $$
(2)

where \(V_{{{\text{PV}}}} \) and \(I_{{{\text{PV}}}} \) are the voltage and current output of the PV. \(R_{{\text{S}}} \) is the series resistor; q is the electron charge; \(I_{{{\text{SC}}}}\) is the short-circuit current; \(I_{{\text{o}}}\) is reverse saturation current; \(n_{{\text{s}}} \;{\text{and}}\;n_{{\text{p}}}\) are the number of series- and parallel-connected cells. The PV output power is given by

$$ P_{{{\text{PV}}}} = V_{{{\text{PV}}}} \cdot I_{{{\text{PV}}}} $$
(3)

The above equations represent the power output of the solar PV array.

2.2 Wind turbine design

The turbine generator transfers the torque produced from the turbine blades to the rotor of the generator by which alternating electrical energy is produced. This generator is associated with a rectifier circuit to give a DC power equivalent to the one generated from the wind system. The rectifier output is controlled to extricate optimum power from the breeze turbine as per the accompanying standards.

The basic condition which governs the mechanical power of rotor edges and by which the electrical power is driven is given by

$$ P = \frac{1}{2}\rho AC_{P} V^{3} $$
(4)

where \(\rho\) is the density of air (kg/m3), A is the territory covered by the blades of the turbine (m2), V is the velocity of wind (m/s) and Cp is the coefficient of power. Consequently, if the density of air, the region covered by wind and speed are kept as constant, then the power output will vary with its coefficient. The breeze turbine is typically characterized by its Cp-TSR, where the TSR is the tip-speed proportion and is expressed as:

$$ {\text{TSR}} = \frac{{\omega_{{\text{m}}} R}}{V} $$
(5)

R and ωm are the radius or turbine blade and the rotational angular velocity. The maximum value of power coefficient is expressed if the tip-speed ratio value is optimum, TSRopt which brings about maximum efficiency, and thus the maximum power is absorbed by the turbine.

As observed from (5), the maximum power output is varying wind and rotor speeds. As the wind speed is not controlled, the rotor speed ought to be controlled to follow the TSRopt. This is accomplished by implementing a speed control mechanism in the system so that the rotor runs at high speed when wind speed is high and runs at low speed as wind speed lowers. The speed control of the rotor is employed to control and maximize the TSR and the power coefficient.

Using (5), the maximum rotor speed is calculated as

$$ \omega_{{{\text{opt}}}} = \frac{{{\text{TSR}}_{{{\text{opt}}}} V}}{R} $$
(6)

Combining Eqs. (4) and (6), the output torque corresponding to maximum power is

$$ T = \frac{1}{2}\frac{{\rho AC_{{{\text{P}}\;{\text{max}}}} }}{{\omega_{{{\text{opt}}}} }}\left\{ {\frac{{R\omega_{{{\text{opt}}}} }}{{{\text{TSR}}_{{{\text{opt}}}} }}} \right\}^{3} $$
(7)

2.3 Proposed switched Z-source (SZS) converter

The idea behind the proposed converter is to use a capacitor switch (C2, D2) and combined with another capacitor switch branch (C1, D1) in the conventional Z-source converter to produce a switched-capacitor cell (C1, C2, D1, D2). With this combination, the proposed converter conducts continuous current and attains a higher voltage gain.

The following two assumptions are made to analyze the steady-state behavior of the SZS converter.

  1. 1.

    The switch S, diodes, load resistance RL, inductance and capacitance are assumed as ideal, and their parasitic effects are omitted.

  2. 2.

    Let L1 = L2 = L and C1 = C3 = C in the Z-source converter, and C1 = C2 = C in the switched-capacitor cell, thus C1 = C2 = C3 = C.

As shown in Fig. 4, two modes of operation are possible when the SZS converter is working in continuous current mode (Figs. 5, 6, 7, 8, 9, 10, 11).

Fig. 4
figure 4

Switched Z-source converter. a Mode I. b Mode II

Fig. 5
figure 5

Bidirectional power flow in battery setup

Fig. 6
figure 6

ANN based control of converter

Fig. 7
figure 7

Space vector representation

Fig. 8
figure 8

Transformation of 3ϕ to stationary \(\alpha \beta\) reference frame

Fig. 9
figure 9

Relation between stationary and rotating frame

Fig. 10
figure 10

Solar parameters

Fig. 11
figure 11

Output measured at wind turbine side

2.3.1 Mode I

When switch S is closed, diodes D1 and D2 are opened as they are connected in antiparallel with capacitor. The inductance L1 charges via Vi and C3, and Vi and C1 charge L2. As Vi and C1 and C2 are in series, the load gets supply via switch S. KVL is applied to derive the following steady-state equations:

\(V_{{{\text{L}}1}} = V_{i} + V_{{{\text{C}}3}} ,\; V_{{{\text{L}}2}} = V_{i} + V_{{{\text{C}}1}} \) and

$$ V_{0} = V_{i} + V_{{{\text{C}}1}} + V_{{{\text{C}}2}} $$

When S is opened, D1 and D2 are closed, Do is in reverse blocking state, capacitances C1 and C3 are charged via L1 and L2, and C2 gets charged as Vi and L1 are in series with L2, and the current flows through the load RL via capacitor Co. The resultant steady-state equations are: \(V_{{{\text{L}}1}} + V_{{{\text{C}}1}} = 0,\; V_{{{\text{L}}2}} + V_{{{\text{C}}3}} = 0 \) and \({\text{ V}}_{{\text{i}}} = {\text{V}}_{{{\text{L}}1}} - {\text{V}}_{{{\text{C}}3}} + {\text{V}}_{{{\text{C}}2}}\). According to volt-time balance condition of the inductance, the average voltage across the inductance in the steady state is ‘0.’ The duty proportion of switch is defined as, D = Ton/Ts, where Ton is the conduction period of switch S, Ts is the total switching time. Thus,

$$ V_{{{\text{C}}1}} = V_{{{\text{C}}3}} = \frac{D}{1 - 2D}V_{i} $$
(8)
$$ V_{{{\text{C}}2}} = V_{i} + V_{{{\text{C}}1}} + V_{{{\text{C}}3}} = \frac{2 - D}{{1 - 2D}}V_{i} $$
(9)

From (8) and (9), the output voltage \(V_{0}\) can be derived as

$$ V_{0} = V_{i} + V_{{{\text{C}}1}} + V_{{{\text{C}}3}} = \frac{2 - D}{{1 - 2D}}V_{i} $$
(10)

The gain (G) in voltage of the SZS converter can be obtained as:

$$ G = \frac{{V_{0} }}{{V_{i} }} = \frac{2 - D}{{1 - 2D}} $$
(11)

2.3.2 Mode II

In the same sense, as the switch S is closed in mode II, diodes D1 and D2 get opened, L1 charged via Vi and C3, and L2 via Vi and C1. Meanwhile, C1 and C2 are in series with Vi and C3 to provide current for the load. The following equations are obtained by applying KVL.

Those equations are: \(V_{{{\text{L}}1}} = V_{i} + V_{{{\text{C}}3}} ,\;V_{{{\text{L}}2}} = V_{i} + V_{{{\text{C}}1}}\) and \(V_{0} = V_{i} + V_{{{\text{C}}1}} + V_{{{\text{C}}2}} + V_{{{\text{C}}3}}\) when S is switched off, D1 and D2 are turned on, diode Do is reverse blocking, the inductor L1 charges C1 and C2 in parallel, L2 charges C3, and the load is powered by capacitor Co. Thus, \(V_{{{\text{L}}1}} + V_{{{\text{C}}1}} = 0,\;V_{{{\text{L}}1}} + V_{{{\text{C}}2}} = 0 \;{\text{and}}\;V_{{{\text{L}}2}} + V_{{{\text{C}}3}} = 0\).

Using the volt–time balancing condition of inductances L1 and L2, the following equations are obtained:

$$ V_{{{\text{C}}1}} = V_{{{\text{C}}2}} = V_{{{\text{C}}3}} = \frac{D}{1 - 2D}V_{i} $$
(12)
$$ V_{0} = V_{i} + V_{{{\text{C}}1}} + V_{{{\text{C}}2}} + V_{{{\text{C}}3}} = \frac{1 + D}{{1 - 2D}}V_{i} $$
(13)

The output voltage gain

$$ G = \frac{{V_{0} }}{{V_{i} }} = \frac{1 + D}{{1 - 2D}} $$
(14)

2.4 Converter controls

A variable velocity wind turbine and time-varying PV insolation are utilized. The output of wind system depends on the wind velocity which is then rectified using PWM rectifier and coupled at the PCC.

The operation of SZS converter and rectifier is individually controlled by PI controller whose parameters Kp and Ki are manually tracked to reduce the error voltage e(t) so that the desired performance can be achieved.

The PI controller output u(t) is expressed as,

$$ u\left( t \right) = K_{P} e\left( t \right) + K_{i} \mathop \smallint \limits_{0}^{t} e\left( t \right){\text{d}}t $$
(15)

By properly varying the parameters of Kp and Ki, the controller produces the required reference signal. This reference signal is contrasted with the carrier wave to obtain PWM pulses for switched Z-source converter and PWM rectifier.

2.5 Modeling of bidirectional converter

The energy management of the proposed work is performed by battery units and a bidirectional converter so that the potential at PCC will be at the optimum level of 600 V which is more than the maximum storage capacity of batteries (540 V). The properly connected low-voltage battery series eliminates the voltage equalization problem found in single-cell battery. Thus, the optimum DC link voltage is maintained at the PCC with increased battery life cycle.

At first the ON time of the pulse period is maintained at 50% and the converter will neither work in step up nor step down mode and there will not be power stream between battery and grid. The contrast between the PCC voltage amplitude and terminal voltage level of batteries varies the obligation pattern of the converter using the ANN controller.

At the point when the output of the sustainable sources is beneath the battery voltage level, the bidirectional converter operates in a boost mode and the power from batteries i extricated to the PCC. Also, when the PCC potential is more than the battery voltage, the converter converts its mode to buck and the power starts to flow from the PCC to battery and thus battery gets charged.

Additionally to decrease the tension at the PCC and to ensure a stable power flow, batteries are included at the PCC. To guarantee ideal planning, it is critical to have precise breeze determining and the information on SOC of the battery. SOC provides the data with respect to how much power available in the battery, and it is depending on inward boundaries, temperature and aging of the batteries. The exact estimation of SOC is yet at research. Among the various techniques to quantify SOC, estimation using ampere hour tallying is utilized in most of the applications. SOC at ‘t’ is gotten by utilizing (16) where Q is to the battery limit, SOC(0) is the underlying SOC, I(t) is the charging or releasing current of the

$$ {\text{SOC}}\left( t \right) = {\text{SOC}}\left( 0 \right) - \frac{1}{Q}\mathop \smallint \limits_{0}^{t} I\left( t \right){\text{d}}t $$
(16)

It is necessary to keep up SOC of the battery inside the base and most extreme levels for efficient utilization of battery energy and hence for power booking. The favored degrees of battery activity considered are 20–90% of SOC.

When the renewable power is not exactly the planned worth, battery gives the rest of the power, and when the power is overabundance than the network request, power is consumed by the battery. Using the ANN controller, the control pulse is produced by contrasting voltage at the PCC with the battery terminal voltage.

2.6 Controlling of inverter

The output of three-phase inverter is standardized by maintaining the optimum and phase-synchronized power at the grid side. To extract the reference pulses for the inverter controller, a PI, fuzzy and ANN controllers are considered in this paper.

  1. (i)

    PI controller: The self-tuning ability, simple construction and easy availability make them suitable for most of the applications. However, they suffer from slow tracking and response delay and inability to deal with stable error.

  2. (ii)

    Fuzzy controller: The error in power tracking and its derivative are fed as input to the fuzzy controller. The design of fuzzy controller is depending on the awareness, information, skill and exposure of the functional designer. Because of the nonlinearity of the inverters, the controller is insensitive to parameter variation and types of inverter and can operate at stable condition. Among the nonlinear and repetitive controllers, the fuzzy controller is best controller. Solid suppositions and sufficient experience are required in the fuzzification process as it is depending on the system information and makes determinations as per the rule set appointed to them during the modeling and designing procedure.

  3. (iii)

    ANN controller: The ANN controller works like human brain. It has number of artificial neurons that behave as a human brain. The reference tracking error information is given through a suitable scaling factor as input to the ANN to produce the control pulses for the inverter. A constant operating frequency is achieved in both online and offline modes to control the inverter. The functional mapping estimation of ANN controller provides high level of fault tolerance. Knowledge on inverter model is not needed for ANN controller, but, the functional behavior of inverter should be precisely known while designing the ANN controller.

  4. (iv)

    Space vector modulation: Space vector modulation (SVM) is a regulatory strategy that becomes famous in the control and is generally applied in three-stage network associated inverter. SVM is complimenting best pulse width modulation (PWM) strategy because of the numerous highlights of SVM; for example, SVM can give 20% higher yield voltage than the sinusoidal PWM.

SVM can be structured as a solitary unit. This unit has eight exchanging levels; each exchanging state depicts the voltage space vector as a point in two-dimensional complex vector planning in αβ. The beneath figure shows the vector hexagonal state of the SVM where the shape is separated in six nonzero changing areas from V1 to V6 in which V0 and V7 are lining in the inception position of the hexagon.

The control system is dedicated to control the power flow using closed-loop PI controller by which actual grid power is compared with the reference power.

In this control, an LC filter is utilized to synchronize the grid voltage and current. As such, it is significant to control the phase and recurrence of the system. The error between the actual and estimated grid power is given to PI controller whose transfer function is

$$ G = k_{p} + \frac{{k_{i} }}{s} $$
(17)

The output of PI controller serves as a current reference in dq frame.

Using SVM, the 3Ф reference voltages Va, Vb, and Va are transformed into αβ orthogonal plane using Clarks transformation

$$ \left[ {\begin{array}{*{20}c} {V_{\alpha } } \\ {V_{\beta } } \\ {V_{0} } \\ \end{array} } \right] = \frac{2}{3}\left[ {\begin{array}{*{20}c} 1 & { - 0.5} & { - 0.5} \\ 0 & {0.866} & { - 0.866} \\ {0.5} & {0.5} & {0.5} \\ \end{array} } \right]*\left[ {\begin{array}{*{20}c} {V_{a} } \\ {V_{b} } \\ {V_{c} } \\ \end{array} } \right] $$
(18)

Different control techniques are accessible to control the 3ϕ inverter associated with grid to enable dynamic power flow. A notable sign model can be utilized in which 3ϕ quantity is converted into dq outline (pivoting reference) which is said as Park's transform.

The 3ϕ SVPWM controller gives PWM signals by utilizing Clarke transform where 3ϕ vector into 2ϕ fixed reference outline segments. The last two parts assume an essential job in producing the PWM signals.

The below matrix equation indicates the Park transform where the stationary vector is transformed into rotating vector.

$$ \left[ {\begin{array}{*{20}c} {V_{d} } \\ {V_{q} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {\cos \theta_{e} } & {\sin \theta_{e} } \\ { - \sin \theta_{e} } & {\cos \theta_{e} } \\ \end{array} } \right]*\left[ {\begin{array}{*{20}c} {V_{\alpha } } \\ {V_{\beta } } \\ \end{array} } \right] $$
(19)

Thus, Clarke transform (3ϕ−2ϕ) transforms three-phase into two-phase stationary reference vector and Park transform changes 2ϕ stationary vector into rotating vector. These changes are conceivable to deduce DC control loop for effective tracking of the AC quantities with reduced steady-state errors.

To coordinate the yield current frame to follow the reference frame, the SVM method uses the ideal yield voltage vector esteem. Notwithstanding, the figuring is not down to earth. Thus, the HCC can be used to make the line current frame to track the order vector with practically slow reaction time and lack of care toward the line voltage and boundary variety. Notwithstanding, because of misunderstanding between individual HCC, high exchanging recurrence may happen and the current mistake is not carefully constrained. This issue in the HCC can be understood utilizing the space-vector idea.

3 Results and discussion

A periodical scale reproduction arrangement is created for the PV-wind framework in MATLAB to assess and approve the framework execution (Table 1). A 1 KW is picked as the appraisal of the PV-wind generator. The whole models are built utilizing the sim power-framework tool stash. The discrete sort recreation is utilized with an inspecting time of 20 ms. The ratings of PV panels given below are chosen to provide a maximum power of 1000 W. The specifications of the solar panel chosen are given in Table 2.

Table 1 Comparison of components count of different converters
Table 2 Specification of the solar panel
Table 3 Performance comparison of conventional PI controller with P&O and fuzzy controller

The point of the proposed framework is to give steady power for the grid under a few producing circumstances by utilizing renewable sources (Table 3).

The PV insolation is constrained by changing the temperature and consequently by giving different irradiation levels from 800 W/m2 to 1000 W/m2. The breeze speed is constrained by varying the speed of the fan blower from 4 m/s to 12 m/s.

3.1 Design of SZS converter

The inductor L1, L2 in the SZS converter is calculated by,

$$ L_{1} , L_{2} = \frac{{2V_{{{\text{pv}}}} D\left( {1 - D} \right)}}{{x_{L} \cdot I_{o} f_{{{\text{sw}}}} }} $$

L1 = L2 = 2.53 mH.

The following equation calculates the capacitors C1, C2 in the SZS converter,

$$ C_{1} , C_{2} = \frac{{I_{o} D}}{{x_{{\text{C}}} \cdot f_{{{\text{sw}}}} V_{i} \left( {1 - 2D} \right)}} $$

C1 = C2 = 2800µF.

Around ten quantities of 12 V batteries are sequentially associated to obtain a yield voltage of 120 V. With the underlying power of 1000 W, the board clusters keep up a normal of 800 W over the reenactment time.

In spite of the fact that the adjustments in the PV insolation and wind speed are just step variations that never occur in the down to earth because of the changing condition conditions.

The scopes of significant worth are chosen to transform from the usable least and most extreme operational scopes of the PV cluster and wind framework in order to approve the exhibition of the framework for these changes.

Additionally, for this situation, the framework is variable as it would show up in a continuous domain under the nonstacking condition in order to quantify the operational exhibition of the force transformation and the battery frameworks for the adjustments in the power delivered by the PV and wind system.

The SZS converter output is shown in Fig. 12. When Vin = 200 V and duty cycle is 0.35, the voltages across C1 and C2 are 300 V, and the output is stepped up to 450 V. When the duty ratio changes to 0.4, the voltages at the output, C1 and C2 are 600 V, 350 V and 400 V, and it is noticed from that the output is increased to 600 V and the voltages across C1 and C2 are 350 V and 400 V.

Fig. 12
figure 12

Output of PI-controlled SZS

Using the ANN controller, the SOC is balanced effectively and the power is found to be continuously flowing to and from the battery. Initially, the SOC is assumed at 70%. Based on the change in output of PV converter and PWM rectifier, the SOC will get varied. The controller maintains the constant voltage at the PCC within the time period of 0.2ecs and the battery settles at this voltage. Thus, the controller shows the excellent tracking and learning ability. It is understood that an efficient energy management has been acquired by which a stable PCC voltage is maintained irrespective of change in source variations.

A stable DC link voltage is attained at PCC with fixed amplitude of 600 V, and in addition the nature of the grid current is also preserved with a THD of 1.26% when ANN controller is used to control inverter and closed-loop PI controller is used for SZS controller. Any problems that exist at any point of the system will get reflected at the grid side in terms of harmonics The value of THD determines the overall performance which includes the conversion efficiency, gain of converters, SOC of battery and effective inverter action of the system connected with grid.

The voltage and current in Fig. 12 and THD analysis result in Fig. 13 indicate the efficient dynamic power flow and energy management of the proposed system (Figs. 14, 15).

Fig. 13
figure 13

Voltage at PCC and battery terminal

Fig. 14
figure 14

Output measure at grid side

Fig. 15
figure 15

THD at the grid side

3.2 Hardware results

The FPGA-based laboratory setup of the renewable power system with battery backup is developed to analyze and estimate the attributes of the proposed power conversion system. Figure 16a shows a 1 kW PV and DFIG system and battery arrangements. The PI controller of PV and wind power has not optimized; instead, just a conventional type is utilized for quick tracking of MPPT. The controller utilizes only PCC voltage as a reference signal and feeds back the control signal using power-conditioning circuits via proper filters. Internal PWM modules are needed by the ANN controller to drive the inverter via isolated driver circuit. The input–output connecting pins are utilized to operate the power contactor via EM relay. The total control system is automated using the dsPIC3050 FPGA controller.

Fig. 16
figure 16

a Hardware implementation circuit 2. b Hardware implementation circuit 3

The hardware setup of converter needs an inbuilt driver circuits so as to handle the required power-driving capability. For the circuits shown in Fig. 16a, the developed prototype is given below. The wind energy conversion system model is shown in Fig. 16b. A DC shunt motor is a prime mover which generates mechanical energy and coupled with DFIG to produce AC electrical power. This system is just a functional demonstration of the proposed system, and actual experiment will be discussed in the future.

The output of PV panel is varied by varying the irradiance level as shown in Fig. 17. The aim is to deliver constant power irrespective of any change in input and load. The required power balance is attained by maintaining the DC link at a constant value.

Fig. 17
figure 17

Solar PV voltage

The current through inductors L1 and L2 shown in Fig. 18a and b reveals that no energy is stored in converter and hence all the power flowing into the circuit will get forwarded to the next stage.

Fig. 18
figure 18figure 18

a Current through inductor L1 of SZS converter. b Current through inductor L2 of SZS converter. c Voltage across capacitor C1 of SZS converter. d Voltage across capacitor C2 of SZS converter. e SZS converter output voltage

At the initial time, the current amplitudes are at positive and negative peaks in L1 and L2 which indicates that charging and discharging are taking place at the same time.

Similarly, the voltage amplitudes at C1 and C2 of SZS converter shown in Fig. 18c and d indicate that a fixed voltage is available at the converter output as shown in Fig. 18e.

Thus, with simple PI controller, a fixed voltage is maintained at the converter output (Figs. 19, 20).

Fig. 19
figure 19

a DFIG output voltage. b PWM rectifier output

Fig. 20
figure 20

a Stored voltage in battery

The hardware output of PV and wind shows that the performance is not compromised with developed prototype as the simulation results are reflected in the hardware results.

The voltage at the battery terminal is maintained at high level as the power will be available either from any one source, and the SOC is varied based on the magnitude of DC link voltage. This developed model seems to have continuous voltage at the PCC.

Hence, even though there is no output from PV or wind turbine, there will be DC link voltage available at the PCC because of battery setup. The DC link voltage is shown in Fig. 21.

Fig. 21
figure 21

DC link voltage

This voltage is fed to inverter and converted into appropriate AC voltage and injected into the grid (Fig. 22).

Fig. 22
figure 22

Output of VSI

Using ANN controller, the switches of the inverter are pulsed at different intervals to produce AC waveform with less THD.

The hardware result of the injected voltage waveform is given in Fig. 23.The grid current is sinusoidal and is in phase with the grid voltage explicitly, which mentions dynamic power flow at the grid. Further, the harmonic content in the grid current shown in Fig. 24 is nearly 2%.

Fig. 23
figure 23

Voltage injected at the grid

Fig. 24
figure 24

Grid current THD

The THD at the grid current is 2.2% when SVPWM is used by inverter and 3.2% is acquired with SPWM controller.

It is to be noted that with PI controller, the tr (rise time), tp (peak time) and ess (steady-state error) are reduced comparatively better than P&O and fuzzy controllers. The objective function is also reduced. The effectiveness of different controllers is compared with the proposed SZS converter. The comparison between different controllers chosen under this work has been tabulated in 3.

The tracking performance of PI controller is compared with P&O and fuzzy controllers in Fig. 25. For the same environmental conditions and simulation settings, the performance is varied and improved much with PI controller. A maximum efficiency of 98% is achieved with the proposed controller, and that for fuzzy and P&O is 96.5% and 90%.

Fig. 25
figure 25

Comparison of MPPT algorithms

3.3 SZS converter performance

Figure 26 represents the comparison of voltage gain of different converters, which indicates that the voltage transfer ratio is linearly varying with duty proportion. The voltage gain attains the peak value with 40% duty cycle and for the proposed SZS converter is nearly 10, and those for Landsman and LUO converters are 6 and 3.5 for 40% duty cycle. As the duty cycle is decreased, the switching losses are decreased but the overall performance of the system is not improved.

Fig. 26
figure 26

Voltage conversion ratio

3.4 Inverter side performance

The comparison of THD for the SVPWM and SPWM is made for the SZS converter controlled by PI controller, fuzzy controller and ANN controller. The SVPWM shows better performance when the inverter is controlled by ANN controller. The graphical representation of this comparison is shown in Fig. 27, and the THD values obtained are detailed in Table 4. From Table 4, it is also visible that compared to conventional PI and AI-enabled fuzzy logic controller, ANN controller provides superior performance with both SPWM and SVPWM methods.

Fig. 27
figure 27

THD comparison

Table 4 THD comparison of SPWM and SVPWM

4 Conclusion

A dynamic power flow control using switched Z-source converter for the hybrid renewable source associated with grid via three-phase inverter is discussed in this work. A continuous power flow is achieved by balancing the energy between source and grid using battery storage system. The THD content in the grid current is maintained well below the IEEE standard level. The results discussed above prove that the individual control of the distributed sources is possible with the proposed system. The efficient tracking of optimum power of solar, the effective control of the rectified output of the wind turbine unit to follow the optimum power and the smart control of battery energy satisfy the continuous power availability, and also a steady power is given to the grid. The system thus made gives a power that is equal to the maximum capacity of the distributed system even when the environmental condition is unfavorable and delivers stable supply even when the power from PV and wind sources is nil. Also SPWM provides fixed switching frequency and easy control methods but suffers from compact efficacy of the DC voltage at the PCC. The proposed SVPWM gives out enough DC voltage by utilizing the proper duty cycle control and minimizes the harmonic content better than SPWM scheme.