As a kind of clean energy, solar energy plays a great role in helping China achieve the “double carbon” goal. However, dust cover will greatly affect the power generation efficiency of solar panels. In order to solve this problem, based on the self-designed independent traveling solar panel cleaning machine, orthogonal experiments were carried out, to study the influence of factors such as the no-load rotating speed of the roller brush, the flow rate of the front water spray component, the flow rate of the rear water spray component and the nozzle type on the improved value of the cleanliness after cleaning. The experimental verification of the optimal parameters of the power generation was also conducted. The results show that the nozzle type has the greatest impact on the cleaning effect, followed by the spray flow of the spray components on both sides of the roller brush. Taking the cleaning effect as the optimization index, the water mist nozzle should adopt the wide-angle small-aperture fan-shaped nozzle (11004 type), the cleaning water flow on both sides of the roller brush should be controlled at 500 L/h, and the rotational speed of the roller brush off the plate should be controlled at 200 rpm. If it is necessary to pay attention to water conservation, the water spray flow of the two ways can be moderately reduced. The optimized cleaning efficiency parameter configuration scheme has an obvious cleaning effect on the photovoltaic array, which can greatly improve the power generation of the array.