This paper presents a mathematical modeling and simulation of photovoltaic (PV) arrays essential for addressing power demands and resource depletion. It details a power electronics-based simulation model that accounts for factors affecting the non-linear voltage-current characteristics of PV modules, validated with a 36 W PV module. The findings show improved accuracy in the model, demonstrating its effectiveness under varying temperature and irradiance conditions.