Skip to main content
Data in Brief logoLink to Data in Brief
. 2022 Sep 11;45:108581. doi: 10.1016/j.dib.2022.108581

Solar panels simulation data generated using LTSpice under different operating conditions

Kanika Sood a, Nathaniel Ruppert b, Rakeshkumar Mahto b,
PMCID: PMC9508499  PMID: 36164308

Abstract

This paper presents a detailed description of the circuit simulation data obtained using LTspice, a high-performance SPICE simulation software for easing the simulation of solar panel circuit data. The data represents the photovoltaic modules with different configurations and cells placed in series and parallel. The data are obtained from automated Python creation and simulation of PV cells in specified formats. The collected data are then organized in a CSV (Comma Separated Value) file. Each file contains properties of the photovoltaic cell, such as individual cell voltage, current, and others. The data are then used to evaluate each of the photovoltaic modules of an array.

Keywords: Photovoltaics, Spice, Machine learning, Artificial Intelligence, Renewable Energy

Specifications Table

Subject Computer Science, Engineering
Specific subject area Artificial intelligence, Photovoltaic energy, Optimization, Machine learning
Type of data Table
Image
Figure
How the data were acquired Data collection is performed by running SPICE-based equivalent PV module simulation and creating multiple CSV files with a total of 6965,234 data points. For simulating the PV cells using SPICE, we considered the area of PV cells to be 49 cm2 which gives out an open circuit voltage of 1.025 V, and a short circuit current equal to 30.5 mA/cm2. The saturation current density of the two diodes, D1 and D2, shown in Fig. 1, is equal to 0.16 aA/cm2 and 1.2 pA/cm2, respectively. The RS and RP values for the equivalent model shown in Fig. 1 are 28mΩ and 100 KΩ, respectively.
Data format Raw
Description of data collection This article presents an extensive dataset that is simulated by using the tools in Python and SPICE tools such as LTSpice. The various partial shading, open and short circuit conditions were emulated by utilizing SPICE netlist which is generated by using Python. Later by using the LTSpice simulation (Version 17.0.35), various datasets are generated for different configurations at different operating temperatures.
Data source location Institution: California State University
City/Town/Region: Fullerton
Country: United States
Latitude and longitude (and GPS coordinates) for collected samples/data: 33.8823° N, 117.8851° W
Data accessibility Primary Data
With the article
Repository name: Mendeley Data
Data identification number (DOI): 10.21227/fjbq-0321
Direct URL to data: https://data.mendeley.com/datasets/3fr92f4xy9/1

Value of the Data

  • The data presented in this work can interest a broader community of researchers involved in designing and modeling machine learning algorithms for optimizing solar panels.

  • With this data, the readers can evaluate the behavior of PV systems under different shading and fault conditions at various temperatures to better understand the performance of PV panels in different conditions.

  • In this research, we compare a variety of machine learning (ML) algorithms to identify faults in PV systems. These results can be helpful for comparing with other ML algorithms to enhance the performance of PV based systems to power drones, lookout towers, small electronic devices, embedded systems, and many others. Drones have shown their effectiveness during natural or human-made hazards such as forest fires, nuclear accidents, floods, and others. In such operation before the deployment of solar powered drones, the presented data will enable to test the performance of PV modules in different hazardous operating conditions. Even smart sensors installed at a remote location can be powered by PV based system. The presented dataset is useful for simulating its performance in various operating conditions.

  • Recently, machine learning [1], [2], [3], [4], [5] and fuzzy logic-based [6], [7], [8], [9] maximum power point tracking (MPPT) have been used to ensure the PV systems can operate at optimal efficiency. All the techniques require a dataset to test their algorithm's effectiveness before deploying it on an existing PV system. The data presented in this work is beneficial in testing the MPPT algorithm in a realistic virtual environment.

1. Data Description

The collected dataset presents ten attributes that describe the solar panel. Each solar cell is represented as an individual instance in the training dataset. The solar cells are modeled using the doubled diode based equivalent model shown in Fig. 1. For every instance, a unique serial number is assigned, incremented by one, and includes features associated with a PV cell.

Fig. 1.

Fig 1

Equivalent PV cell model.

Fig. 2 presents a snippet of the attributes of the solar panel that are used as descriptive features and fed as input to the machine learning algorithms. The complete dataset used in this work is available at the Mendeley Data repository [10]. The descriptive features are mapped using a hypothesis and the relationship between the input features and the target label is captured by the mapping function. The mapping function can be used to make predictions on new unseen data. Fig. 3 highlights the correlation between the input features. The correlation matrix highlights that the ‘series cells‘ feature is highly correlated with voltage and parallel cells.

Fig. 2.

Fig 2

Input features for machine learning models.

Fig. 3.

Fig 3:

Correlation matrix for the input features.

Additionally, power and current are highly correlated as well. Fig. 4 shows the relationship between variables categorized by their fault types. This work explores three types of faults in solar panels: shaded, short circuit, and open circuit. In the dataset, we use 0 for shaded, 1 for short circuit, and 2 for open circuit. Fig. 5 presents the features plotted based on temperatures ranging from 20 to 50 °Celsius.

Fig. 4.

Fig 4:

Feature Visualization plot by type.

Fig. 5.

Fig 5:

Feature visualization plot by temperature.

2. Experimental Design, Materials and Methods

For the ML based classifier to be effective, it is essential to have an accurate dataset with plenty of data points to train the ML classifier. However, generating such an extensive dataset with experimental data with all possible operating conditions probable during the mission is tedious. Hence, to simplify this lengthy task SPICE modeling technique can be used to generate the dataset. In [11], to generate the dataset for different operating conditions of PV module, Python, LTSPICE XVII (Version 17.0.35) [12], and 2-diode based equivalent PV module modeling technique is used, as shown in Fig. 1.

To create a dataset for training the ML algorithm, the following conditions include solar irradiation, various PV panel configurations, fault conditions (Short, Open), partial shading conditions, and temperature. The different PV configurations used resulted in the simulation of 6965,234 different scenarios. For emulating the partial shading conditions, we consider the solar irradiation from 500 to 1000 W/m2. An ideal unshaded PV cell is with solar irradiation of 1000 W/m2. For emulating the distinct types of shading conditions throughout the day, the solar irradiation of shaded PV cells varies from 900 W/m2 to 500 W/m2. Later, the Python program designed for this paper programmatically creates all the required scenarios via the following equations:

Copen[Ns,Np]=(NPi)xNS (1)
Cshort[Ns,Np]=NP*(NSj) (2)
Cshade[Ns,Np]=NP*NS (3)
SNs,Np=Copen[Ns,Np]+Cshort[Ns,Np]+Cshade[Ns,Np] (4)
Stot=Σ(SNs,Np)*Ts*Is (5)

where C is the number of different configurations for NP is the total number of PV cells from parallel and NS is the total number of PV cells in series, which are considered from 1 to 10. The variable i in the Eq. (1) is given by 0 < i ≤ NP −1 and variable j in Eq. (2) is given by 0 < j ≤ NS −1. For the short and open circuit emulation, a number of the PV cells in series and parallel were electrically removed, respectively.

Eqs. (1), (2), and (3) describe how the number of necessary simulations is determined for open, short, and shade conditions, respectively. Eq. (4) is the combination of (1), (2), and (3) and is the total simulations to be run based on the various PV panel configuration, with (5) being the total amount of simulations to run, where Ts is the number of temperature scenarios and Is is the amount of solar irradiation intensity scenarios. Once per PV configuration is determined from (4) for a set [NS,NP], the Python program generates SPICE netlist (.cir) files for simulation. After all PV panel per cell configurations have been created, LTSPICEXVII is run via the Python program across all .cir files, producing .raw files. The files contain output voltage, generated current, and total power per cell, which are collected via the Pandas library into a single .csv file, which is used in ML processing. The subsequent steps involve using ML tools in preprocessing, training, testing, and classification. The use of, which are collected via the Pandas library into a single .csv file, which is used in ML processing. All steps involved in generating the dataset are shown in Fig. 6.

Fig. 6.

Fig 6:

Steps involved in Dataset Generation.

Ethics Statements

These data are primary data and do not include human subjects, animal experiments, or social media platforms.

CRediT Author Statement

Kanika Sood: Machine Learning Modelling, Writing, Methodology, Software, Conceptualization; Rakeshkumar Mahto: Investigation, Validation, Conceptualization, Data curation, Writing; Nathaniel Ruppert: Visualization, Data analysis, Data Simulation.

Declaration of Competing Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Acknowledgments

Funding: This work is supported by the start-up fund provided by the Computer Science department and Summer Undergraduate Research Academy (SURE-A) funding offered by the Office of Research and Sponsors Project.

Data Availability

References

  • 1.Sood K., Mahto R., Shah H., Murrell A. 2021 IEEE Conference on Technologies for Sustainability (SusTech) Apr. 2021. Power Management of Autonomous Drones using Machine Learning; pp. 1–8. [DOI] [Google Scholar]
  • 2.Tina G.M., Ventura C., Ferlito S., De Vito S. A state-of-art-review on machine-learning based methods for PV. Appl. Sci. 2021;11(16):7550. [Google Scholar]
  • 3.Nkambule M.S., Hasan A.N., Ali A., Hong J., Geem Z.W. Comprehensive evaluation of machine learning MPPT algorithms for a PV system under different weather conditions. J. Electr. Eng. Technol. 2021;16(1):411–427. [Google Scholar]
  • 4.Kalogerakis C., Koutroulis E., Lagoudakis M.G. Global MPPT based on machine-learning for PV arrays operating under partial shading conditions. Appl. Sci. 2020;10(2):700. [Google Scholar]
  • 5.Takruri M., et al. Maximum power point tracking of PV system based on machine learning. Energies. 2020;13(3):692. [Google Scholar]
  • 6.Noman A.M., Addoweesh K.E., Mashaly H.M. IECON 2012-38th Annual Conference on IEEE Industrial Electronics Society. 2012. A fuzzy logic control method for MPPT of PV systems; pp. 874–880. [Google Scholar]
  • 7.Li X., Wen H., Hu Y., Jiang L. A novel beta parameter based fuzzy-logic controller for photovoltaic MPPT application. Renew. Energy. 2019;130:416–427. [Google Scholar]
  • 8.Shiau J.-.K., Wei Y.-.C., Chen B.-.C. A study on the fuzzy-logic-based solar power MPPT algorithms using different fuzzy input variables. Algorithms. 2015;8(2):100–127. [Google Scholar]
  • 9.Robles Algarín C., Giraldo J.Taborda, Rodriguez Alvarez O. Fuzzy logic based MPPT controller for a PV system. Energies. 2017;10(12):2036. [Google Scholar]
  • 10.K. Sood, N. Ruppert, and R. Mahto, “Simulation Dataset of Partial Shading and Fault of a Photovoltaic Module,” vol. 1, Aug. 2022, doi: 10.17632/3fr92f4xy9.1. [DOI]
  • 11.Mahto R., Ruppert N., Nguyen A., Kalotra G. presented at the IEEE Global Humanitarian Technology Conference (GHTC) 2021. Fuzzy Logic Based MPT Algorithm for Reconfigurable Photovoltaics. [Google Scholar]
  • 12.“LTSPICE.” https://www.analog.com/en/design-center/design-tools-and-calculators.html#LTspice. Accessed August 14, 2022.

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement


Articles from Data in Brief are provided here courtesy of Elsevier

RESOURCES