Solar power is a renewable energy source, and its efficient development and utilization are important for achieving global carbon neutrality. However, partial shading conditions cause the output of PV systems to exhibit nonlinear and multipeak characteristics, resulting in a loss of output power. In this paper, we propose a novel Maximum Power Point Tracking (MPPT) technique for PV systems based on the Dung Beetle Optimization Algorithm (DBO) to maximize the output power of PV systems under various weather conditions. We performed a performance comparison analysis of the DBO technique with existing renowned MPPT techniques such as Squirrel Search Algorithm, Cuckoo search Optimization, Horse Herd Optimization Algorithm, Particle Swarm Optimization, Adaptive Factorized Particle Swarm Algorithm and Gray Wolf Optimization Hybrid Nelder-mead. The experimental validation is carried out on the HIL + RCP physical platform, which fully demonstrates the advantages of the DBO technique in terms of tracking speed and accuracy. The results show that the proposed DBO achieves 99.99% global maximum power point (GMPP) tracking efficiency, as well as a maximum improvement of 80% in convergence rate stabilization rate, and a maximum improvement of 8% in average power. A faster, more efficient and robust GMPP tracking performance is a significant contribution of the DBO controller.