1 Introduction

For decades, renewable and sustainable energies have become one of the most important topics nowadays. The impact of conventional power resources on the environment is being more and more hazardous. As a matter of fact, research and development of novel green and sustainable solutions have interested many researchers and manufacturers [1]. Among these new alternatives, there is photovoltaic solar energy which has received a great interest in recent years. The research on PV energy has trended essentially towards the PV optimization using Maximum Power Point Tracking (MPPT) algorithms and the solar connected inverters for grid injection. However, the development of these fields requires mainly real-time experimentation without depending on weather conditions such as temperature (T) and solar irradiance (G) [2]. Besides, the cost of real PV panels is actually expensive and a large area is required by PV modules. For those reasons, PV researchers though to invent a laboratory equipment so-called PV emulator able to behave electrically as an actual PV source. This innovative device has to mimic accurately the PV panels and reproduce nearly the same current and voltage. It should not depend on atmospheric conditions and it has to allow choosing the desired numerical weather conditions in which the experiment would be carried out [1,2,3,4,5,6].

In the literature review, many researchers are being interested in PV source emulators, all these researchers aim to satisfy the PV emulation requirements which are basically the accuracy, speed, use easiness and efficiency [3]. The majority of them have used switched-mode power supplies that are more efficient than linear regulators [2, 7], especially the DC–DC buck converter which is the simplest power converter topology [8,9,10,11]. Furthermore, in the control part, the direct referencing methods with the proportional integrator (PI) regulator are the most used control strategy of existing PV emulators thanks to their simplicity and easiness [9, 10, 12,13,14,15,16,17,18]. However, due to the nonlinearity of the PV characteristics, the conventional control techniques based on linear compensators cannot guaranty the required performances of the PV emulation [2]. The stability of the closed-loop could be affected while using classical control especially when the good dynamic response is intended [2, 19]. Moreover, the dynamic performances are highly needed for PV emulators for testing, for instance, MPPT algorithms. Nevertheless, the commercial PV emulators based on programmable power supply have a poor dynamic response between 10 and 100 ms [2]. That is why the present paper aims to deal with those problems by improving the static and dynamic performances of the PV emulators and ensuring good stability and accuracy. The proposed PV system makes significant contributions in terms of accuracy and dynamic response compared to the existing solutions and ensures high emulation performances using a simple control strategy, unlike many researches that have used iterative solutions such as hill-climbing method, resistance comparison method, resistance line method [2] and many other strategies that need an iterative cycles number to reach the required operating point [2]. The developed PV emulator is based essentially on an adaptive state feedback controller which regulates both the current and voltage of the PV emulator circuit and takes into consideration the nonlinearity of the PV characteristics. This controller is implemented in the dSpace platform to ensure real-time control.

This study is organized as follows: the materials and system description are presented in section II, while the proposed method is described in section III. The experimental results are given in section IV, and finally the analysis and discussion are provided in section V.

2 Materials and system components

The proposed system is based essentially on two parts, the power part which consists of the DC–DC buck converter, and the control part which is based on the dSpace 1104 board. This calculator contains the implementation of the PV characteristics of the desired PV module to be emulated beside the state feedback controller. The PV characteristics are implemented using Look-Up-Table (LUT) technique which ensures high speed and does not require an additional algorithm for solving the mathematic PV model [20,21,22,23]. The LUT constitutes the reference generator that determines the operating point of the system and delivers, as a result, the voltage reference to the state feedback controller. The latter tracks accurately this reference and deliver as a result the duty cycle that will be used by the pulse width modulation (PWM) bloc of the dSpace card to generate the control signal of the converter transistor. The Control Desk platform is used for real-time monitoring of the PV emulator outputs as well as the variation of the climatic parameters and the controller gains. Figure 1 illustrates the overall architecture of the PV emulator.

Fig. 1
figure 1

Overall descriptive structure of the proposed PV source emulator

The parameters of the PV emulator and the chosen PV module are given in Table 1.

Table 1 Parameters of the PV emulator and LA30-12S LORENTZ PV module

3 Proposed method of control

The adaptive state feedback controller is used to track faithfully the I–V characteristic of the PV module, this controller permits regulating both the current and voltage, unlike the PID controller which utilizes either current or voltage feedback. Besides, for the aim of ensuring good accuracy and I–V curve tracking, an Integrator is used in the controller expression so that the static error converges to zero. Moreover, the controller gains are adjusted according to the desired speed, accuracy and I–V curve region.

The DC–DC buck converter is used in this application as shown in Fig. 2 controlled by the dSpace board.

Fig. 2
figure 2

DC–DC buck converter

The augmented state-space model of the DC–DC buck converter is written as:

$$\left\{ {\begin{array}{*{20}l} {\frac{dx1}{dt} = \frac{{x_{2} }}{C} - \frac{{x_{1} }}{RC} } \hfill \\ {\frac{dx2}{dt} = - \frac{{x_{1} }}{L} + \frac{Vdc}{L}u} \hfill \\ {\frac{dx3}{dt} = Vref - x_{1} } \hfill \\ \end{array} } \right.$$
(1)

with x1 = Vc the capacitance voltage, x2 = iL the self-current and x3 = \(\frac{1}{s}\left( {Vref - Vc} \right)\), the integral of the error between the voltage reference Vref delivered by the reference generator and the output voltage Vc.

The augmented simplified state-space model can be expressed as:

$$\left\{ {\begin{array}{l} {\dot{x} = Ax + Bu} \\ {y = Cx } \\ \end{array} } \right.$$
(2)
$$\begin{aligned} {\text{with}}\;\;\;x & = \left( {\begin{array}{*{20}c} {\begin{array}{*{20}c} {Vc} \\ {i_{L} } \\ \end{array} } \\ {\frac{1}{s}\left( {Vref - Vc} \right)} \\ \end{array} } \right)\quad A = \left( {\begin{array}{*{20}c} {\frac{ - 1}{RC}} & {\begin{array}{*{20}c} {\frac{1}{C}} & 0 \\ \end{array} } \\ {\begin{array}{*{20}c} {\frac{ - 1}{L}} \\ { - 1} \\ \end{array} } & {\begin{array}{*{20}c} {\begin{array}{*{20}c} 0 \\ 0 \\ \end{array} } & {\begin{array}{*{20}c} 0 \\ 0 \\ \end{array} } \\ \end{array} } \\ \end{array} } \right) \\ B & = \left( {\begin{array}{*{20}c} 0 \\ {\begin{array}{*{20}c} {\frac{Vdc}{L}} \\ 0 \\ \end{array} } \\ \end{array} } \right)\quad C = \left( {\begin{array}{*{20}c} 1 & {\begin{array}{*{20}c} 0 & 0 \\ \end{array} } \\ \end{array} } \right) \\ \end{aligned}$$

The control law u has the following form:

$$u = - k1Vc - k2IL - \frac{k3}{s}\left( {Vref - Vc} \right)$$
(3)

where k1, k2 and k3 are the real positive gains of the state feedback controller and s is the Laplace operator.

For the closed-loop system:

$$\dot{x} = Ax + Bu = \left( {A - BK} \right)x$$
(4)

with K  = (k1, k2, k3)

$$A - BK = \left( {\begin{array}{*{20}c} {\frac{ - 1}{RC}} & {\frac{1}{C}} & 0 \\ {\frac{ - 1 - Vdc*k1}{L}} & { - \frac{Vdc*k2}{L}} & { - \frac{Vdc*k3}{L}} \\ { - 1} & 0 & 0 \\ \end{array} } \right)$$

According to the I–V curve region, either a constant current region or constant voltage region, the controller gains are twisted in order to deal with the nonlinearity of the I–V curve and have thereby more accuracy and stability. Indeed, the PV current and voltage dynamics are not the same in the whole I–V curve, they vary depending on the operating point position. In the constant current region, the PV current is almost constant while the PV voltage varies strongly, and in the constant voltage region, the PV voltage is nearly constant while the PV current changes intensively. Therefore, the controller gains take into consideration this particularity and changes according to the I–V curve zone as shown in Table 2. The controller parameters have been chosen so that the closed-loop matrix (A-BK) stays always Hurwitz stable, then they have been twisted practically using trial and error method by the Control Desk interface until finding the ones giving the desired performances of the system.

Table 2 Controller gains values

The synoptic schema in Fig. 3 illustrates the adaptive state feedback structure.

Fig. 3
figure 3

The adaptive state feedback controller

4 Experimental results

The experimental setup of the PV emulator is depicted in Fig. 4, it is composed of the control desk interface, hardware dSpace card where the adaptive state feedback controller is implemented, the DC–DC buck converter, the signal conditioning and sensing system used to measure the output current and voltage of the PV emulator and adapt it to the dSpace interface, beside the power part which includes the DC–DC buck converter, the DC input supply and the resistive load.

Fig. 4
figure 4

Experimental setup of the proposed PV source emularor

For the purpose of making sure that the proposed controller tracks with accuracy the voltage reference, we have subjected the circuit to successive voltage reference steps and we have measured the output current and voltage as given in Fig. 5.

Fig. 5
figure 5

Output current and voltage of the proposed circuit for R = 50 Ω

The dynamic performances are shown in Fig. 6 where the PV emulator is subjected to the load variation. The main objective is to show the ability of the proposed PV emulator to generate the same current and voltage as an actual PV module. The transient part is zoomed- in as shown in Fig. 7.

Fig. 6
figure 6

PV emulator under resistance load variation

Fig. 7
figure 7

PV emulator under variation of the resistance load

The static performances are assessed in Fig. 8 where different operating points are measured. The resistance load has been changed so that the whole I–V characteristic curve can be covered. Besides, the solar insolation and ambient temperature have been changed numerically to sweep different weather parameters and deliver therefore approximately the same PV characteristics as the PV module technical datasheet ones.

Fig. 8
figure 8

I–V characteristic curves of the PV module and the PV emulator for different solar irradiances and temperatures

5 Discussion

As displayed in Figs. 5, 6 and 7, the proposed PV emulator circuit is able to track accurately the voltage reference, it is endowed with a good dynamic response since the settling time does not exceed 2 ms. Besides, the proposed system remains stable and accurate while varying the resistance value thanks to the adaptive state feedback controller. Moreover, according to Fig. 8, it is obvious that the static performances of the system are very high since the static error does not exceed 5% for the whole I–V curve, the proposed system has good adaptability to the environmental parameters variation of temperature and irradiance. It can generate nearly the same current and voltage of the PV module for different values of solar irradiance and temperature. It is up to the user thus to provide the datasheet parameters of the desired PV module to emulate, then the proposed system can follow the corresponding PV characteristic.

6 Conclusion

This paper presents some experimental results of the PV source emulator used to act as an actual PV module and provide thus similar I–V characteristic curves. An adaptive state feedback controller implemented in dSpace board has been used to ensure real-time control as well as good static and dynamic performances. The given experimental results showed that the proposed PV emulator can achieve a good dynamic response and have a better bandwidth compared to the existing commercial PV emulators based on programmable power supply. Besides, the accuracy is not affected while changing the resistance load and thus the operating point of the system. It has been proven that the realized power circuit can sweep the whole I–V curve for different values of solar irradiance and temperature. Future works will focus on the emulation of the partial shading conditions and the PV array configurations, as well as the implementation of this simplified control technique in low-cost platforms such as a microcontroller, DSPIC… in order to reduce the total cost of the developed PV emulator, so that it can be commercialized in the future.