Design and implementation of PV emulator based on synchronous buck converter using Arduino Nano microcontroller
Design and implementation of PV emulator based on synchronous buck converter using Arduino Nano microcontroller
Corresponding Author:
Ahmad Saudi Samosir
Department of Electrical Engineering, Faculty of Technology, Universitas Lampung
Sumantri Brojonegoro St., No. 1, Bandar Lampung, Lampung 35145, Indonesia
Email: [email protected], [email protected]
1. INTRODUCTION
The growing interest in renewable energy sources has increased the need for efficient and accurate
simulation tools to aid the development and testing of photovoltaic systems. One tool that is widely used for
this purpose is the photovoltaic (PV) emulator [1]-[5]. The development and application of PV emulators have
received great attention in recent years, especially due to increasing research on renewable energy systems and
the need for efficient test platforms. PV emulators are designed to mimic the electrical characteristics of solar
panels in a variety of environmental conditions without requiring actual sunlight. This enables consistent and
repeatable testing of PV systems, including inverters, converters, and other associated electronic devices [6].
PV emulators can be categorized into three main types: analog, digital, and hybrid [7], [8]. Analog
PV emulators use analog circuitry to emulate the I-V characteristics of solar panels. These emulators are usually
simple and fast but lack flexibility in adapting to different conditions [9]. In contrast, digital PV emulators use
a digital signal processor (DSP) or microcontroller to simulate PV characteristics [10]. They offer greater
flexibility and precision, enabling the emulation of dynamic environmental conditions such as radiation and
temperature variations. Hybrid PV emulators combine analog and digital components to take advantage of both
advantages [11]. They offer high performance and adaptability, although they may be more complex and
expensive to implement.
To develop accurate PV cell models, extensive research has focused on modeling and simulation using
software tools like MATLAB/Simulink and PSpice [12], [13]. Such models are crucial for creating digital
emulators that can replicate the I-V characteristics of PV panels under various environmental
conditions [14], [15]. For hardware implementation, researchers frequently employ field programmable gate
arrays (FPGAs) and microcontrollers to build PV emulators [16]. This approach underscores the trade-offs
among cost, complexity, and performance: FPGA-based systems deliver high speed and precision at a higher
cost, while microcontroller-based systems are more affordable but often require advanced programming for
effective performance.
In this paper, the design of a PV emulator utilizing a synchronous buck converter is presented and
developed. The objective of this research is to design and implement a photovoltaic (PV) emulator that
accurately replicates the current voltage (I-V) characteristics of a real PV module, ensuring precise and reliable
performance under various operating conditions. By integrating a synchronous buck converter and utilizing an
Arduino Nano as the central microcontroller, the study aims to develop a control system capable of real-time
adjustments to emulate PV behavior accurately. This includes implementing a lookup table (LUT) for
characteristic reference, generating precise pulse-width modulation (PWM) signals, and utilizing feedback and
proportional-integral-derivative (PID) control to maintain stable and accurate output. Ultimately, this emulator
is designed to provide a reliable tool for testing and analysis of PV systems, allowing for controlled and
repeatable experiments that simulate real-world PV module responses.
The main contribution of this paper is to provide the design and validate a PV emulator using a
synchronous buck converter, which is effectively able to replicate the electrical behavior of real PV modules
under various environmental conditions. By utilizing MATLAB/Simulink simulations, this study verifies the
ability of the emulator to accurately mimic the I-V and P-V characteristics of the SolarWorld Sun-module
SW50 PV module under various load, irradiance, and temperature scenarios. This work offers a valuable tool
for testing and development in PV systems without the need for actual solar modules, making it a cost-effective
and flexible solution for controlled experimental environments. The hardware implementation with an Arduino
Nano controller further demonstrates the emulator's potential for real-time adjustment and practical
applications in laboratory or training settings.
2. METHOD
This research utilizes techniques such as implementing a lookup table (LUT) for real-time I-V
characteristic emulation, employing a PID controller to enhance feedback accuracy and stability, and
integrating a synchronous buck converter to efficiently regulate output voltage and current. Simulation results
and efficiency measurements validate the emulator’s performance in comparison to the reference PV module,
ensuring precise, and reliable emulation.
Design and implementation of PV emulator based on synchronous buck converter … (Ahmad Saudi Samosir)
450 ISSN: 2088-8694
(a) (b)
Figure 1. Effect of changes in (a) irradiation and (b) temperature on the I-V curve of solar PV
(a) (b)
Figure 2. Effect of changes in (a) irradiation and (b) temperature on the P-V curve of solar PV
Int J Pow Elec & Dri Syst, Vol. 16, No. 1, March 2025: 448-456
Int J Pow Elec & Dri Syst ISSN: 2088-8694 451
In this research, the Arduino Nano is selected as the core microcontroller to handle key control tasks
within the PV emulator system. Specifically, it facilitates real-time control and monitoring functions critical to
the emulator's accuracy and stability. The microcontroller's responsibilities include:
a. Lookup table control: The Arduino Nano utilizes a pre-stored lookup table (LUT) containing current-
voltage (I-V) characteristics data of the reference PV module. By referencing this LUT, the emulator can
dynamically replicate the I-V behavior of a real PV module under different conditions, allowing for accurate
emulation.
b. PWM signal generation: To regulate the output of the synchronous buck converter, the Arduino generates
high-frequency pulse-width modulation (PWM) signals. These PWM signals control the switching
operation of the converter, enabling precise voltage and current adjustments to match the desired output
characteristics.
c. Feedback control: The Arduino continuously monitors the output voltage and current of the PV emulator,
comparing them with the target values from the LUT. This real-time feedback ensures that any deviation
from the reference PV module characteristics is quickly corrected, maintaining accuracy.
d. PID control processing: The microcontroller executes a PID control algorithm to enhance stability and
response time. The PID controller dynamically adjusts the PWM duty cycle based on feedback, ensuring
smooth and accurate emulation of the reference PV module, even under changing load conditions [29].
The synchronous buck converter circuit is responsible for converting the input voltage to a desired
output voltage efficiently. The gate driver circuit, designed with precision, controls the switching of the
MOSFETs within the buck converter. The controller circuit, centered around the Arduino Nano, employs the
ATMega328P microcontroller to implement the PID-based control algorithm. This ensures that the emulator
can accurately replicate the behavior of a real photovoltaic module under various conditions.
The overall design of the PV emulator system, based on the synchronous buck converter, is illustrated
in Figure 4. This schematic provides a comprehensive overview of how the different components are
interconnected to form a cohesive and functional PV emulator. Through careful design and integration of these
components, the system aims to provide a reliable tool for simulating the electrical characteristics of
photovoltaic modules, thereby facilitating research and development in solar energy technologies.
The synchronous buck converter circuit generates output voltage and current that closely match the I-V
characteristics of an actual PV module. This output is fed back to the Arduino Nano controller for processing,
where the output voltage (Vout) is converted into a reference current (Iref) using a look-up table program. The
reference current (Iref) is then compared to the output current (Iout) of the synchronous buck converter, resulting
in an error value. This error value is processed by the Arduino Nano microcontroller as input for the PID controller.
The PID controller's output is used to generate PWM pulses through the Arduino Nano
microcontroller. However, these PWM pulses initially have a low amplitude and must be amplified using the
IR2110 IC gate driver circuit. This circuit boosts the amplitude of the pulses to appropriately drive the
MOSFET switching in the synchronous buck converter circuit. This closed-loop process continuously adjusts,
ensuring that the output current and voltage remain similar to the I-V characteristics of the actual PV module.
Through this iterative feedback mechanism, the PV emulator system maintains precise control over the output,
effectively simulating the behavior of a real PV module under varying conditions. This accuracy is crucial for
the reliable testing and development of photovoltaic systems.
Int J Pow Elec & Dri Syst, Vol. 16, No. 1, March 2025: 448-456
Int J Pow Elec & Dri Syst ISSN: 2088-8694 453
16-bit timer/counter with a separate prescaler, 6 PWM channels, and 8 10-bit ADC channels. Experimental
studies have been conducted on the developed PV emulator hardware. Figure 9 shows the waveforms
representing the output voltage, output current, and output power of the PV emulator when tested with a
resistive load with a resistance value of 6.6 ohms.
(a) (b)
Figure 6. PV characteristic curve for varying irradiation at 25 °C temperature: (a) I-V curve and (b) P-V curve
Design and implementation of PV emulator based on synchronous buck converter … (Ahmad Saudi Samosir)
454 ISSN: 2088-8694
(a) (b)
4. CONCLUSION
This paper presents the designed and implemented a photovoltaic (PV) emulator based on a
synchronous buck converter, utilizing an Arduino Nano microcontroller for effective control. The emulator
Int J Pow Elec & Dri Syst, Vol. 16, No. 1, March 2025: 448-456
Int J Pow Elec & Dri Syst ISSN: 2088-8694 455
was rigorously tested through simulations that evaluated its performance under varying irradiation levels and
temperature conditions. The results demonstrated that the emulator accurately replicates the expected current-
voltage (I-V) and power-voltage (P-V) characteristics of real PV modules.
Specifically, as irradiation levels increased from 200 W/m² to 1000 W/m², the short-circuit current
(Isc) rose significantly, reaching 2.95 A at maximum irradiation, with a corresponding peak power output of
50.29 W. Conversely, under decreasing irradiation, both the Isc and open-circuit voltage (Voc) declined,
affirming the emulator's capability to reflect the dynamic behavior of actual PV systems. Additionally,
simulations showed that as temperature increased from 25 to 50 °C, Isc remained relatively constant while the
maximum power and Voc decreased, confirming the influence of temperature on PV performance.
The comprehensive results affirm that the synchronous buck converter-based PV emulator effectively
mimics the behavior of real PV modules across a range of operating conditions. This emulator represents a
valuable tool for researchers and engineers in the field of solar energy, facilitating controlled experiments and
optimizations in PV system performance without the constraints of physical PV modules. Overall, the findings
underscore the emulator's potential in advancing solar energy research and development, making it a significant
contribution to the field.
ACKNOWLEDGEMENTS
The authors would like to express their gratitude to the University of Lampung for providing research
facilities. This research was supported by Research Funding from the Directorate General of Higher Education,
Research, and Technology of the Ministry of Education, Culture, Research, and Technology of the Republic of
Indonesia.
REFERENCES
[1] W. C. Sinke, “Development of photovoltaic technologies for global impact,” Renewable Energy, vol. 138, pp. 911–914, Aug. 2019,
doi: 10.1016/j.renene.2019.02.030.
[2] A. A. de M. Bento and R. P. Santiago, “A low cost photovoltaic panel emulator,” in 2019 IEEE 15th Brazilian Power Electronics
Conference and 5th IEEE Southern Power Electronics Conference (COBEP/SPEC), IEEE, Dec. 2019, pp. 1–5. doi:
10.1109/COBEP/SPEC44138.2019.9065629.
[3] A. Boucharef, A. Tahri, F. Tahri, S. Silvestre, and M. Bourahla, “Solar module emulator based on a low-cost microcontroller,”
Measurement, vol. 187, p. 110275, Jan. 2022, doi: 10.1016/j.measurement.2021.110275.
[4] C.-T. Ma, Z.-Y. Tsai, H.-H. Ku, and C.-L. Hsieh, “Design and implementation of a flexible photovoltaic emulator using a GaN-
based synchronous buck converter,” Micromachines, vol. 12, no. 12, p. 1587, Dec. 2021, doi: 10.3390/mi12121587.
[5] M. Alaoui, H. Maker, A. Mouhsen, and H. Hihi, “Photovoltaic emulator of different solar array configurations under partial shading
conditions using damping injection controller,” International Journal of Power Electronics and Drive Systems (IJPEDS), vol. 11,
no. 2, pp. 1019–1030, Jun. 2020, doi: 10.11591/ijpeds.v11.i2.pp1019-1030.
[6] A. Nazar Ali, K. Premkumar, M. Vishnupriya, B. V. Manikandan, and T. Thamizhselvan, “Design and development of realistic PV
emulator adaptable to the maximum power point tracking algorithm and battery charging controller,” Solar Energy, vol. 220, pp.
473–490, May 2021, doi: 10.1016/j.solener.2021.03.077.
[7] V. Milenov, I. Bachev, L. Stoyanov, Z. Zarkov, and V. Lazarov, “Indoor testing of solar panels,” in 2020 12th Electrical
Engineering Faculty Conference (BulEF), IEEE, Sep. 2020, pp. 1–4. doi: 10.1109/BulEF51036.2020.9326084.
[8] A. Al Mansur, M. I. Islam, M. A. ul Haq, M. H. Maruf, A. Shihavuddin, and M. R. Amin, “Investigation of PV modules electrical
characteristics for laboratory experiments using halogen solar simulator,” in 2020 2nd International Conference on Sustainable
Technologies for Industry 4.0 (STI), IEEE, Dec. 2020, pp. 1–6. doi: 10.1109/STI50764.2020.9350496.
[9] H. A. Khawaldeh, M. Al‐soeidat, D. D. Lu, and L. Li, “Simple and Fast dynamic photovoltaic emulator based on a physical
equivalent PV‐cell model,” The Journal of Engineering, vol. 2021, no. 5, pp. 276–285, May 2021, doi: 10.1049/tje2.12032.
[10] M. Alaoui, H. Maker, A. Mouhsen, and H. Hihi, “Real-time emulation of photovoltaic energy using adaptive state feedback control,”
SN Applied Sciences, vol. 2, no. 3, p. 492, Mar. 2020, doi: 10.1007/s42452-020-2294-2.
[11] H. A. Khawaldeh, M. Al-Soeidat, M. Farhangi, D. D.-C. Lu, and L. Li, “Efficiency improvement scheme for PV emulator based on
a physical equivalent PV-cell model,” IEEE Access, vol. 9, pp. 83929–83939, 2021, doi: 10.1109/ACCESS.2021.3086498.
[12] T. Nguyen-Duc, H. Nguyen-Duc, T. Le-Viet, and H. Takano, “Single-diode models of PV modules: a comparison of conventional
approaches and proposal of a novel model,” Energies, vol. 13, no. 6, p. 1296, Mar. 2020, doi: 10.3390/en13061296.
[13] A. S. Samosir, S. R. Sulistiyanti, H. Gusmedi, and A. F. Huda, “Modeling and simulation of buck converter-based PV emulator,”
in 2023 International Conference on Converging Technology in Electrical and Information Engineering (ICCTEIE), IEEE, Oct.
2023, pp. 27–31. doi: 10.1109/ICCTEIE60099.2023.10366746.
[14] A. Harrison, N. H. Alombah, S. Kamel, S. S. M. Ghoneim, I. El Myasse, and H. Kotb, “Towards a simple and efficient
implementation of solar photovoltaic emulator: An explicit PV model based approach,” in The 4th International Electronic
Conference on Applied Sciences, Basel Switzerland: MDPI, Nov. 2023, p. 261. doi: 10.3390/ASEC2023-16268.
[15] J. Li, R. Li, Y. Jia, and Z. Zhang, “Prediction of I–V characteristic curve for photovoltaic modules based on convolutional neural
network,” Sensors, vol. 20, no. 7, p. 2119, Apr. 2020, doi: 10.3390/s20072119.
[16] I. Moussa and A. Khedher, “Photovoltaic emulator based on PV simulator RT implementation using XSG tools for an FPGA control:
Theory and experimentation,” International Transactions on Electrical Energy Systems, vol. 29, no. 8, Aug. 2019, doi:
10.1002/2050-7038.12024.
[17] K. Hindocha and S. Shah, “Design of 50 MW grid connected solar power plant,” International Journal of Engineering Research
and, vol. V9, no. 04, May 2020, doi: 10.17577/IJERTV9IS040762.
[18] J. M. Álvarez et al., “Analytical modeling of current-voltage photovoltaic performance: An easy approach to solar panel behavior,”
Applied Sciences, vol. 11, no. 9, p. 4250, May 2021, doi: 10.3390/app11094250.
Design and implementation of PV emulator based on synchronous buck converter … (Ahmad Saudi Samosir)
456 ISSN: 2088-8694
[19] D. Revati and E. Natarajan, “I-V and P-V characteristics analysis of a photovoltaic module by different methods using Matlab
software,” Materials Today: Proceedings, vol. 33, pp. 261–269, 2020, doi: 10.1016/j.matpr.2020.04.043.
[20] C. Zhang, Y. Zhang, J. Su, T. Gu, and M. Yang, “Modeling and prediction of PV module performance under different operating
conditions based on power-law I – V Model,” IEEE Journal of Photovoltaics, vol. 10, no. 6, pp. 1816–1827, Nov. 2020, doi:
10.1109/JPHOTOV.2020.3016607.
[21] M. Seapan, Y. Hishikawa, M. Yoshita, and K. Okajima, “Temperature and irradiance dependences of the current and voltage at
maximum power of crystalline silicon PV devices,” Solar Energy, vol. 204, pp. 459–465, Jul. 2020, doi: 10.1016/j.solener.2020.05.019.
[22] T. N. Olayiwola, S.-H. Hyun, and S.-J. Choi, “Photovoltaic modeling: A comprehensive analysis of the I–V characteristic curve,”
Sustainability, vol. 16, no. 1, p. 432, Jan. 2024, doi: 10.3390/su16010432.
[23] D. Pilakkat and S. Kanthalakshmi, “Study of the importance of MPPT algorithm for photovoltaic systems under abrupt change in
irradiance and temperature conditions,” WSEAS Transactions on Power Systems, vol. 15, pp. 8–20, Feb. 2020, doi:
10.37394/232016.2020.15.2.
[24] Y. Zhang, H. Yang, and P. Wang, “Research on output characteristics of photovoltaic module,” in Proceedings of the 2020 2nd
International Conference on Big Data and Artificial Intelligence, New York, NY, USA: ACM, Apr. 2020, pp. 521–525. doi:
10.1145/3436286.3436496.
[25] R. W. Rachmad and T. Abuzairi, “Efficiency comparison of asynchronous and synchronous buck converter with variation in duty
cycle and output current,” Buletin Ilmiah Sarjana Teknik Elektro, vol. 5, no. 1, pp. 41–55, 2023.
[26] R. Ayop, C. W. Tan, S. N. Syed Nasir, K. Y. Lau, and C. Ling Toh, “Buck converter design for photovoltaic emulator application,”
in 2020 IEEE International Conference on Power and Energy (PECon), IEEE, Dec. 2020, pp. 293–298. doi:
10.1109/PECon48942.2020.9314582.
[27] I. D. G. Jayawardana, C. N. M. Ho, M. Pokharel, and G. E. Valderrama, “A fast-dynamic control scheme for a power-electronics-based
PV emulator,” IEEE Journal of Photovoltaics, vol. 11, no. 2, pp. 485–495, Mar. 2021, doi: 10.1109/JPHOTOV.2020.3041188.
[28] M. Troviano and G. G. Oggier, “Low-cost photovoltaic emulator with a high-dynamic response for small satellite applications,”
International Journal of Energy for a Clean Environment, vol. 25, no. 6, pp. 1–12, 2024, doi: 10.1615/InterJEnerCleanEnv.2024050320.
[29] A. S. Samosir, T. Sutikno, and L. Mardiyah, “Simple formula for designing the PID controller of a DC-DC buck converter,”
International Journal of Power Electronics and Drive Systems (IJPEDS), vol. 14, no. 1, pp. 327–336, Mar. 2023, doi:
10.11591/ijpeds.v14.i1.pp327-336.
BIOGRAPHIES OF AUTHORS
Int J Pow Elec & Dri Syst, Vol. 16, No. 1, March 2025: 448-456