1 Introduction

By the increasing growth in the population of the world, the demand for new energy sources is significantly increasing. Today, fossil fuel resources are the major energy sources used for generating electricity. These resources include petroleum, natural gas, coal, etc. [1], which also result in serious environmental pollution and contribute to global warming by releasing the harmful carbon dioxide into the atmosphere. In addition, such resources are non-renewable limited energy sources that cannot fulfill the ever increasing demand for energy.

Renewable sources of energy such as biomass, wave energy, wind power, hydroelectricity, and solar power could be alternative sources to replace fossil energy resources. Renewable resources provided for about 18% of global energy consumption in 2006 [2]. Wind power is currently widely used in the United States and Europe. It is installed capacity of over 100 GW and growing rate of over the 30% per annum. Photovoltaic industry could produce more than 2000 MW of electricity power in 2006 [2]. Because of their reliability and easy access to the energy source, photovoltaic systems have attracted much more attention than other technologies that use renewable energy sources. Advantages of photovoltaic (PV) systems outweigh their drawbacks. Some of these advantages are long life, low maintenance needs, ease of installation and no need for fuel; drawbacks are low output in cloudy days and high costs of initial setup [3]. The voltage generated by a PV cell is low (about 0.5 to 0.7 V); thus, it is necessary to connect a series of cells in a PV panel. In addition, the panels can be linked in parallel or in series to produce higher voltage with a greater current with same voltage, or the same current, respectively [4]. Generally, grid connected PV inverters can be divided into two groups: single stage inverters and two stage inverters. Previous studies were mainly centered on single stage inverters, while present and future studies mainly focus on two stage inverters. In two stage inverters, a DC/DC converter connects the PV panel and the DC/AC inverter. The PV panel converts sunlight to DC electricity (for a PV panel with low output voltage, a DC/DC boost converter is used [5]); DC voltage can then be converted to AC voltage with a power electronics system (inverter).

In either grid-connected or stand-alone applications of such devices, DC voltage can be converted to AC voltage by a DC/AC inverter system [4]. Grid-connected or stand-alone, these devices are used in a wide range of systems today, from streetlights to space vehicles. They are used as an attempt to improve reliability, efficiency and cost [6].

In the past, galvanic isolation in photovoltaic grid-connected inverters was mainly realized through employing line frequency transformers between the photovoltaic system and the grid. These transformers were not only difficult to install, but also large and heavy. In addition, they increased system complexity and were inefficient due to several power stages [7, 8]. To solve the problems of efficiency, cost and size of inverters, transformer-less inverters were introduced. Removing the transformer causes a galvanic connection between the photovoltaic system and the power grid. Thus, the common mode leakage current may follow through the parasitic capacitors between photovoltaic system and ground [9]. This leakage current increases system losses and grid current harmonics and leads to serious unsafety [10]. Therefore, the common mode leakage current must be taken into account in designing transformer-less PV inverters.

The efficiency of a PV system is directly affected by the intensity of sun radiation and ambient temperature. In power applications, the efficiency of a PV systems needs be high if it is to deliver the power to the grid. Therefore, it is necessary to track the maximum power under changing surrounding conditions. In a two-stage inverter, the first stage – DC/DC boost converter –delivers maximum power to the second stage and regulates the DC-link voltage [11, 12]. There are various types of controllers, e.g., P&O, Fuzzy, Neural network, sliding mode controller etc., to track the maximum power in the first stage [13]. In the second stage, the controller system controls power stability and quality. In PV applications, good inverter controllers are essential for enhancing the inverter performance since the conversion process depends on control algorithms [14]. This paper reviews the literature on the design of grid-connected PV systems containing DC/DC boost converters, DC/AC inverters, and controllers used for converters and inverters.

2 Photovoltaic device

Several energy sources are available for energy conversion systems, including batteries, PV devices, fuel cells and wind generators. Each energy source is connected to its inverter through a specific integration technique; sometimes, additional devices and extra steps may also be needed. For instance, a wind turbine generator needs an extra AC/DC converter (e.g. rectifier) to connect to an inverter [15], since it generates an AC instead of a DC current. On the contrary, a PV panel creates DC power; thus, it can be linked to the inverter directly or through a DC/DC converter. Favorably, this will decrease the total cost [16]. Essentially, a PV cell has a semiconductor P-N junction diode cell that directly transforms light into electricity [17]. When sunlight hits common junctions of a p-n diode, comprising of photons, the electron system of the material absorbs the energy and produces electron-hole pairs (charge carriers). These are detached by the potential wall, generating a voltage that uses an external circuit to drive a current through, known as the photovoltaic effect [18]. Different cell arrangements, such as series-parallel, parallel and series create a PV module that has a specific power capacity [19].

Likewise, modules are linked in series-parallel arrangement to gain higher power capacity and make a panel or array [20]. The solar cell’s output voltage is a function of the photocurrent that is contingent on the level of solar irradiation throughout the process [21].

Shortcomings of a PV device include low energy conversion efficiency and high cost of initial-installation [22,23,24,25,26]. The control system has an important role in a PV system that uses power converters, such as DC/DC converters and DC/AC inverters to safeguard the system’s overall operation [27].

3 DC/DC power converter

DC/DC power converters are employed in PV systems to change the output voltage. Normally, a DC/DC converter is sequentially inserted between the load and the PV panel to gain the power available from the panel through tracking methods. It is useful for a PV system with unstable and fluctuating output. If the PV system uses both AC and DC converters, a DC-link capacitor can enhance the DC output voltage stability, and therefore, reduce the effect of fluctuation on the AC output [28]. DC converters may be boost converters (step-up), buck converters (step-down), or a combination of both, like CUK converters and buck-boost converters. Converter type may be selected based on the desired capacity or size of the output voltage to provide the appropriate input voltage for the inverter with the dc voltage stabilization and regulation capability [29]. This is applicable for hybrid energy systems, grid-connected systems and standalone systems. DC/DC converter in such systems works with a maximum power operating algorithm so that the PV system generates more power. The performance of a converter varies based on the specific application.

4 DC/AC inverter

An inverter is a power electronic converter, which converts DC power to AC power [30] to generate a sinusoidal AC output with controllable frequency and magnitude [31]. Inverters are classified into two types: a voltage source inverter (VSI) is an inverter which is fed with constant voltage, while a current source inverter (CSI) is fed with constant current. Generally, CSIs are used for applications that need very high power AC motor drives. According to the aims, a single-phase VSI was used in this study.

The single-phase inverter involves power stage of two legs, a DC-link capacitor, and a DC input voltage source (VDC). The DC input voltage source is basically a constant voltage source that can be connected to the DC-link capacitor. DC input voltage level is determined by the inverter’s specifications. For a power system, the dc input voltage level of a single-phase inverter should be greater than the peak voltage of the inverter’s line-to-line AC output voltage. The capacitor’s properties are important when there is a fluctuating input DC power, as is the case for a PV panel, to ensure that the DC-link voltage is kept stable during switching between power devices [32]. The DC-link capacitance must be sufficient enough to decrease the DC-link voltage ripple, in order to generate quality output power [33].

Switching devices is an important part of DC/AC conversion. Each leg has two insulated gate bipolar transistors (IGBTs) with anti-parallel diodes so that the legs never work simultaneously [30]. Switching device is selected based on the specific design of a system, e.g. switching speed and power capacity. Generally, MOSFET is chosen for supplying lower power capacity with fast switching speed, whereas IGBT is used for higher power capacity with medium switching speed [31].

5 Design of grid-tied PV inverter

The inverter in the grid-tied PV system acts as an interface between energy sources: the utility grid on one side and the PV module on the other. As the inverter transforms DC power into AC power, it is in control of power quality that should be met as required by different standards. Based on the galvanic isolation between the grid and the PV module, the grid-tied PV inverters are grouped into isolated and non-isolated types. A high frequency transformer or a line frequency transformer can be used to observe the galvanic isolation that adjusts DC voltage of the converter [34,35,36]. Usually, this galvanic isolation is realized through a transformer that has a great effect on DC/AC efficiency of grid-connected PV systems [37]. In a grid connected PV system, the existence of galvanic isolation depends on the regulations of each country [38]. In countries, such as Italy and UK, it is a requirement and is implemented either by a high-frequency transformer on the DC side or by a low-frequency step-up transformer on the grid side, as shown in Fig. 1b, c.

Fig. 1
figure 1

Grid-connected PV system

Due to weight, size and cost problems, line frequency transformers are usually preferred to be removed when designing a new converter. Moreover, a high-frequency transformer requires numerous power stages, which makes it difficult to increase efficiency and reduce the costs [39].

On the other hand, in Spain and Germany galvanic isolation is not used if other technological solutions are employed to separate the electrical grid and the PV array. Figure 1a depicts a typical transformer-less PV system, which decreases installation complexity, weight cost and size of the whole system. One drawback of these systems is that DC currents may be produced in the injected AC current by the inverter because of the missing line-frequency transformer, causing overheating and failure [40, 41]. One of the advantages of these systems is 2% increase in the total efficiency [30, 42, 43].

6 Leakage ground current

There is no galvanic isolation between the grid and PV array in a transformer-less topology. As such, the grid and the PV panels are directly linked, so the leakage ground currents, created through the potential fluctuations between the grid and the PV array, have a direct path [44]. The parasitic capacitance created between the grounded frame and surface of the PV are charged and discharged by these voltage fluctuations, shown as CG-PV in Fig. 2.

Fig. 2
figure 2

Path of ground leakage current in transformer-less PV system

A resonant circuit is formed by the parasitic capacitance and the DC lines that link the inverter to the PV array. Resonance frequency in this circuit depends on the length of DC cables and PV array size [45, 46]. According to the inverter topology, modulation strategy and PV panel structure, a ground current can flow in the body if panel surfaces are touched; if the current is higher than a certain level, it can result in a shock or lead to injury [69]. The blue intermittent line in Fig. 2 shows the path of the ground current moving through the parasitic capacitance of the PV array.

Based on the VDE0126-1-1 standard, a residual current monitoring unit should be used to monitor secure operation of a grid-connected PV system. The LEM CT 0.2-P [47] is a commercial current sensor that has been studied by many scholars for potential use in ground leakage current measurement.

7 Transformer-less single phase inverters

7.1 Full H-bridge

Full H-bridge is commonly used in grid-connected photovoltaic inverters. It has 4 transistors, linked as shown in Fig. 3a.

Fig. 3
figure 3

Topology of inverters

Since many commercial inverters employ this topology together with a low frequency transformer, it is worth studying its use for transformer-less inverters. Unipolar PWM is the most commonly used modulation in this topology, since it offers several advantages compared to bipolar modulation, such as better efficiency or lower emission of electromagnetic interferences and lower current ripple at high frequencies [48]. Nevertheless, a high frequency common mode voltage of amplitude Vdc/2 is applied to the photovoltaic panels in unipolar PWM modulation, which produces a non-negligible leakage current due to the parasitic capacitance of photovoltaic panels. Thus, it is not recommended to use this modulation in transformer-less inverters [49]. In the full H-bridge photovoltaic inverter, the Bipolar PWM modulation is used to solve the problem of the leakage current. This eliminates high frequency components of the applied common-mode voltage to the panels [50]. The common mode voltage has only the low frequency component of the first harmonic and thus, leakage current is reduced [9, 46, 51]. However, gate signals of bridge transistors need to be synchronized so that peak leakage current is limited. Otherwise, leakage current might increase significantly [52]. Therefore, this topology is not suitable for transformer-less photovoltaic inverters, even when bipolar PWM modulation is used [53].

7.2 Half H-bridge

The half H-bridge topology involves a capacitive divider coupled with the photovoltaic module and 2 transistors shown in Fig. 3b.

The grid neutral wire connection to the capacitive divider midpoint warrants a more or less constant voltage that inhibits leakage current through the module’s parasitic capacitance [54]. The half H-bridge uses half of the semiconductors, which makes it simpler and less costly than the H-bridge topology [55]. However, serious disadvantages limit its use. For example, the switches need to support twice the voltage required in full H-bridge topology, the output waveform has only two levels, and the output current is so distorted that produces high electromagnetic interference emissions [54, 56]. Therefore, it needs higher blocking voltage power transistors that in turn increase the switching losses.

7.3 H5 topology

H5 topology was first introduced by the SMA [57]. Compared to the full-bridge, this topology requires only one extra transistor. This means that, the photovoltaic panels are disconnected from the grid during current freewheeling periods to inhibit switching of frequency ripple in panel poles’ the voltage to ground, keeping a nearly constant common mode voltage. The H5 topology shown in Fig. 3c uses a full-bridge consisting of a DC-bypass SW5 switch and 4 other switches: SW1, SW2, SW3 and SW4.

SW1 and SW2 switches work at grid frequency, while SW3, SW4 and SW5 function at high frequency. SW5 is open during current free-wheeling period, detaching the inverter of full H-bridge from photovoltaic panels. SW1 closes the free-wheeling path, by SW3 and SW1 inverse diode for the negative half-cycle and the SW3 inverse diode for the positive half-cycle of electrical grid. H5 transformer-less inverter topology is highly efficient, especially at partial load [58]. It only requires one extra transistor compared to the full H-bridge topology. Nevertheless, conduction losses may increase in case of a low-quality semiconductor, since the transistor is in series with the full H-bridge inverter [59]. Currently, this topology is used by some inverters in the market, particularly those from branded patent, as an alternative to transformer-less photovoltaic inverters [50].

7.4 H6 topology

Full-bridge with DC bypass (FB-DCBP) topology adds a bidirectional clamping branch and two switches to the FB topology shown in Fig. 3d [60]. The clamping branch has two diodes and a capacitive divider that clamp half of the DC input voltage to the CM voltage. SW1 and SW4 are commutated in anti-parallel to SW2 and SW3 with line frequency, depending on whether the grid voltage is in negative or positive half period. D1 or D2 (diodes of SW1 and SW2) work during freewheeling mode depending on whether freewheeling path potential is lower or higher than half of the DC link voltage. Effectiveness of leakage current removal in this topology depends only on the turn-on speed of the clamping diodes. The main disadvantage of FB-DCBP topology is conduction losses due to the flow of inductor current through four switches in the active mode [60].

7.5 NPC half-bridge

The NPC half-bridge is a single-phase version of the multilevel topology for high-power motor-drive uses [61]. It has been lately introduced as an alternative in designing photovoltaic inverters. It has a branch with two clamping diodes and 4 transistors shown in Fig. 3e.

The diodes provide a free-wheeling path for the output current, resulting in state of 0 V output voltage [50]. The NPC half-bridge topology functions in the same way as the half-bridge, but it has less current ripple, better efficiency and a constant common mode voltage [56], inhibiting leakage currents. The NPC topology’s voltage derivative and performance are also similar to full-bridge topology with unipolar PWM modulation that is three-level output inverter voltage. Therefore, the performance of both the converter and the output filter is comparable to a unipolar PWM modulated full-bridge [51].

This topology, however, has a number of disadvantages. It requires a high input voltage, several power semiconductors and a high capacity bank of capacitors [46, 62], which makes twice the full-bridge input voltage [50]. Another problem is the transient overvoltage in internal transistors because of lack of parallel capacitors [63]. This problem, however, can be solved by a snubber circuit. Moreover, not the same level of power loss occurs in all of the semiconductors [64]. Table 1 shows the efficiency, leakage current and input voltage of several previously validated methods. Nevertheless, determining the best method is difficult because each method has its own strengths and weaknesses.

Table 1 Major characteristics of different transformer-less topologies

8 Control structures for grid connected PV systems

Sinusoidal current is injected into the grid by DC/AC inverters. The inverter transforms the DC power into AC power for grid injection. Control is an important part of the system PV linked to the grid. Two types of controllers are used in these systems: ① MPP controller that mainly extracts the maximum power from the PV module; ② Inverter controller that controls DC-link voltage, active and reactive power fed into the grid, grid synchronization and the injected power.

The control structure has two controllers that work in two cascaded loops: an external voltage loop that regulates the DC-link voltage, and a fast internal current loop that controls the grid current or voltage. The DC-link voltage controller balances the system’s power flow. Typically, the external controller is intended to do optimal control and ensure the stability of systems with slow dynamics. The stability time in this loop should be 5–20 times more than that in the internal current loop. The external and internal loops work separately; therefore, the transfer role of the current control loop is not considered in the design of the voltage controller [35, 65,66,67]. Sometimes, the controller uses a cascaded DC-link voltage loop with an internal power loop rather than a current loop. In this way, the injected current is controlled indirectly. Figure 4 shows the control structure of a single phase inverter with a DC/DC converter, as introduced by Ciobotaru et al [68]. A current-controlled H-bridge PWM inverter with low-pass output filters is the most popular control structure for the DC/AC grid converter.

Fig. 4
figure 4

Control structure topology for single phase two stage inverter

8.1 MPPT control

To get the maximum power in the inverter, a maximum power point tracker (MPPT) is needed. This is achieved by regulating the operating current and voltage of the converter so that it remains close to MPP all the time. In MPPT, voltage and current of the PV array are detected by voltage and current sensors at a particular sampling cycle, respectively [69]. The values are then entered in a MPPT block that calculates the MPP. The MPP provides the reference values for voltage and current, which are transformed to a power value that should match the calculated value. If there is a difference, the converter’s duty cycle is adjusted. When the reference value and the measured power match, it means that the array is already working at maximum power. The converter is typically based on the standard non-isolated, boost or buck–boost topology. The most important advantage of the MPPT is its ability to find the MPP as fast and efficiently as possible. A number of algorithms can be used for the MPPT [70,71,72], including the incremental conductance, perturb and observe, constant voltage and parasitic capacitance. Incremental conductance and perturb and observe algorithms are the most common.

Perturb and observe (P&O) method has attracted much attention because of its simplicity [13, 72]. In this method, the system current is disturbed by a perturbation in the duty cycle of the converter and consequently, it perturbs the PV system voltage.

As it can be seen in Fig. 5, clearly when the power operating on the left side needs to increase the voltage, the one operating on the right side needs to decrease the voltage. Therefore, when the power increases, the next duty cycle should remain constant to obtain the maximum power point, while when the power decreases the duty cycle should be reversed to reach the MPP. This process is iterated until the system reaches the MPP. Owing to the ease of application and simplicity of the P&O technique, it is the most popular method in practice [13, 72].

Fig. 5
figure 5

Characteristic of PV panel power curve

This method has two major problems: ① determining the convergence rate of the tracking MPP; ② determining the oscillation amplitude. For large perturbations, the MPP is tracked faster, but causes higher oscillation amplitude. For small perturbations, the convergence rate is reduced, but the oscillation around the MPP is decreased as well. This results in a decline in steady oscillations around the MPP. To solve this, modified versions of P&O have been developed [73].

Various MPPT methods have been proposed [73,74,75,76,77,78,79,80,81,82], each with its own pros and cons, and it is quite difficult to decide which method to use. In fact, the decision depends on the specific application. For example, in solar vehicles the priority is fast convergence to the MPP. In this case, the intelligent methods are the most suitable option. In the case of space satellites, where reliability and performance of the MPPT are the most important factors and MPP tracking needs to be done almost in real-time, Hill-climbing methods such as P&O are the best choice. Characteristics of different MPPT techniques, i.e. complexity, convergence speed, and PV module dependency, are summarized in Table 2.

Table 2 Major characteristics of different MPPT methods

8.2 DC/AC inverter control

To control the output current, a control system is required that can automatically regulate the duty cycle. The DC/AC controller has two control loops: the external DC-bus voltage control loop, and the internal current control loop. The internal control loop controls sudden changes in AC current to maintain a sinusoidal current. A PLL sinusoidal signal reference generates the reference current (Iref), which synchronizes the grid voltage with the output inverter current [68, 83, 84]. The amplitude current is controlled by the external voltage loop. The external loop controls the DC-bus voltage (Vdc). This voltage should be limited; however, controlling Vdc is required for controlling the power fed into the grid.

9 Power quality

An important consideration in power quality is that, according to the standards (e.g. IEEE Std 519-1992) the output waveform should obtain low level of THD. The power conversion process can endanger quality [85]. Power quality consists of current quality and voltage quality [86]. Current and voltage quality are related to deviations from the standards [87]. A single-frequency sine wave of constant frequency and amplitude has perfect quality [87]. Harmonics, voltage flickers, voltage dips and noise are examples of problems that negatively affect power quality. The most important of these problems is harmonics [86], which can cause decreased volt-ampere capacity, equipment overheating, current and voltage waveform distortion and increased losses [88]. The harmonic level is determined by the THD value, which is a measure of similarity of shape between a waveform and its main mechanisms [30]. Inverter output involves harmonics that might be harmful to the loads. Therefore, the inverter must use filters prior to sending power to the loads [89]. In addition, in inverters, and generally power converters, the quality of DC input voltage has an important role in the quality of the output waveform [90]. Accordingly, one way of enhancing the quality of the output waveform is filtering the DC input voltage. Generally, the second order low-pass LC filter is used for this purpose. It is simple and inexpensive and can decrease the output waveform’s higher harmonics components.

10 Grid synchronization techniques

Traditionally, synchronization of grid connected DC/AC inverters is done by duplicating the grid voltage in a way that grid voltage and output current reference are in the same phase [91]. This technique is simple; however, it has a number of disadvantages. It transfers the grid transients and distortions to distort the output current, which is undesirable for grid-connected uses. Furthermore, this method does not enable inverters to control reactive power flow. Single phase grid connected inverters generally use phase locked loops (PLL). Stationary frame PLLs do not need extra signals, and therefore, they only take the grid voltage as input. A typical stationary frame PLL uses a voltage controlled oscillator (VCO), a loop filter (LF) and a sinusoidal multiplier phase detector (PD). Thacker et al. modified the stationary frame PLLs by adding extra state feedback terms [92], which improved immunity to input disturbances and noise, increased synchronization speed, and eliminated the double-line frequency ripple term created by the PD.

11 Requirements of grid

Grid-connected PV systems should adhere to certain standards specific to each country, such as EN 50106, IEEE 1547.1-2005, IEC61727 and VDE0126-1-1. These standards deal with issues like individual harmonic current levels, total harmonic distortion (THD), leakage current, injected DC current level, range of frequency and voltage for regular operation, detection of islanding operation, power factor (PF), automatic reconnection, synchronization and grounding of the system [35, 93]. In Germany, the VDE-0126-1-1 standard is the only one addressing leakage current levels or faults in transformer-less PV inverters. According to this standard, when the RMS of leakage current is above 30 mA, it takes 0.3 s to disconnect the inverter from the grid. Table 3 shows RMS values of the leakage current or faults and their disconnection times.

Table 3 Leakage current values and their corresponding disconnection times listed in VDE 0126-1-1 standard

12 Proposed grid connected system

A grid-connected photovoltaic system uses PV panels in parallel or series to convert sunlight to DC power, and converters to convert AC current to DC current. There also exist DC/DC converters that are used to keep the PV system at maximum power operation. In this study, the input energy was generated using a PV panel. The PV panel is connected to the DC/DC boost converter. The boost converter uses the soft switching technique to boost the DC input voltage (100 V to 400 V). The system was further modified and was connected to a grid to become a grid-connected system. AC current was created by a new single-phase transformer-less inverter using the sinusoidal pulse width modulation technique and synchronized utility grid. The power fed from the PV device was controlled by controlling the frequency and duty cycle of switches S1 and S2. Controlling frequency and duty cycles ensures power flow through the sources and between the source and the load.

Figure 6 shows the proposed two stage single phase transformer-less inverter, which consists of a resonant boost converter with an additional switch and a full bridge inverter with two additional switches SW5 and SW6. In the boost converter both switches (S1 and S2) are IGBT transistors because of zero current switching. The switches SW1-SW4 are high frequency MOSFET switches and the switches SW5 and SW6 are low frequency IGBT switches [94]. Furthermore, two extra capacitors connect switches SW2 and SW4 to eliminate the leakage current. In the second stage, the two phase leg including SW1-SW4 switches operating at the switching frequency, and two additional switches SW5 and SW6 operating at the grid frequency were added. In the positive half cycle, SW5 is always on and SW1 and SW4 commutate at the switching frequency in order to produce Vdc and 0 states. Likewise, in the negative half cycle, SW6 is always on and SW3 and SW2 commutate at the switching frequency to create –Vdc and 0 states. The proposed inverter was simulated in PSIM software. The candidate panel is assumed to generate a maximum power of 500 W. Details of the proposed panel used in the proposed Simulink model are shown in Table 4.

Fig. 6
figure 6

Proposed two stage PV system

Table 4 Characteristics of proposed PV panel

The operational characteristics of the proposed inverter was also analyzed. Design details of the proposed inverter are explained below. Power, input voltage, and DC output voltage of the system were arbitrarily chosen to be 500 W, 100 V and 400 V, respectively. Voltage gain (A) was approximately 4. A 40 µF capacitor was selected for input DC filtering. The resonant frequency was set to 50 KHz. For the selected resonance inductor and capacitor we had Lf = 100 µH and Cf = 100 nF. The total design parameters of the simulated system are shown in Table 5. Real effects, such as dead time delays and non-ideality of components were also considered in simulation, so that real and simulated performance were as close as possible.

Table 5 Simulation parameters

Figure 7 shows the block diagram of a MPPT controller. First, the power of the converter is calculated using current and voltage values. Second, maximum power is calculated using current and MPP voltage values and P&O method. Afterward, the calculated power value is compared with the previous power value. The calculated value is used to decide about the direction of further changes in frequency and duty cycle. If change in power is positive, the change in frequency (dF) will be also be positive. Otherwise, the change in frequency (dF) will be negative. Finally, the calculated frequency is divided by the maximum switching frequency (47 kHz) to determine the value of duty cycle.

Fig. 7
figure 7

Flowchart of MPPT controller of proposed DC/DC converter (first stage)

The proposed controller is designed as a double loop control system, in which the outer loop is used to regulate the DC bus voltage, while the inner loop regulates the AC line current. The inner loop has a high bandwidth, in order to provide fast dynamic responses. Gv and Gi are PI controllers. The magnitude of the output current (Ig) is given by the outer loop (Gv). This value is then multiplied by sine table in phase (sinϕ) with the grid voltage. In the final step, error followed by PI controller and proper SPWM is generated.

Figure 8 shows voltage and current waveforms of the boost converter’s switches. Switches S1 and S2 are turned on and off under zero current switching (ZCS). The current passing through the switches is sinusoidal, reducing switching loss.

Fig. 8
figure 8

Current waveform of inductor

Figure 9 shows the simulated current and voltage waveforms. The results show that (when working at full power) the proposed inverter and its controller can inject the input power into the grid with lower harmonic distortion (THD = 3.58%) and unity power factor. Figure 10 shows the simulated results of common mode voltage (VCM), VAN, VBN. As it can be seen, when voltages VAN and VBN do not fluctuate, VCM and VP remain constant, and thus the leakage current (Icm) is reduced considerably.

Fig. 9
figure 9

DC bus voltage and AC currents/voltages waveform

Fig. 10
figure 10

DM characteristics of proposed inverter with constant input

Figure 11 shows the simulation results under varying irradiance from 100% to 50%. The results show that the performance of the proposed system is satisfactory when working under changing irradiance. When irradiance is 1000 W/m2, the AC current is approximately 2.1 A, and when the radiation drops to 500 W/m2, the AC current approaches 1 A without any overshoot. As can be seen, maximum voltage is tracked by an MPPT controller. The proposed controller in the second stage maintains a proper DC voltage to ensure that the voltage is within a suitable range. In addition, RMS value of the leakage current (Icm) is below 15 mA that satisfies the standards given by VDE-0126-1-1. Figure 11 also shows the waveforms of the grid current, which are highly sinusoidal and synchronized with the grid voltage.

Fig. 11
figure 11

Performance of proposed PV system by changing irradiance

13 Conclusion

This paper was a review of the literature to help gain an understanding of the process of designing grid connected PV systems. It discussed DC/DC boost converters that boost the voltage of the current received from PV panels. It became clear that soft switching converters perform satisfactorily at high frequencies in reducing switching losses, decreasing the inductor and capacitor size, and increasing efficiency. Voltage-source inverters, such as full-bridge inverters and half bridge inverters, and their strengths and weaknesses were also discussed. Transformer-less inverters are used to improve the efficiency, lower the costs, and decrease the size. They were introduced to minimize the leakage current and enhance efficiency. A system was also proposed in this study that aimed to reduce the leakage current. It was able to provide a high quality output current and decrease the THD.