As the demand for renewable energy grows, solar panels have become a cornerstone of sustainable power generation. However, dust accumulation on solar panels significantly reduces their efficiency. To address this challenge, autonomous solar panel cleaning robots are increasingly deployed. A critical issue in their operation is motion instability due to deflection, which compromises cleaning efficiency. In this study, I propose a novel control strategy that integrates Particle Swarm Optimization (PSO) with fuzzy PID control to enhance the anti-deflection motion stability of solar panel cleaning robots. This method optimizes key parameters of the fuzzy PID controller, ensuring minimal deviation from the desired trajectory while maximizing cleaning performance.

1. Mathematical Modeling of Solar Panel Cleaning Robots
1.1 Permanent Magnet Synchronous Motor (PMSM) Dynamics
The PMSM, widely used in solar panel cleaning robots, governs motion stability. Its mathematical model in the d−qd−q coordinate system is expressed as:{Lddiddt=−Rsid+npωLqiq+ud,Lqdiqdt=−Rsiq−npωLdid−npωΦ+uq,Jmdωdt=τ−τLm−Rω,dβdt=ω,τ=np[(Ld−Lq)idiq+Φiq],⎩⎨⎧Lddtdid=−Rsid+npωLqiq+ud,Lqdtdiq=−Rsiq−npωLdid−npωΦ+uq,Jmdtdω=τ−τLm−Rω,dtdβ=ω,τ=np[(Ld−Lq)idiq+Φiq],
where ud,uqud,uq are dd– and qq-axis voltages; id,iqid,iq are currents; Ld,LqLd,Lq are inductances; JmJm is the rotor inertia; RsRs is stator resistance; ΦΦ is flux linkage; and τLmτLm is load torque.
1.2 Kinematic Model for Anti-Deflection Control
The robot’s motion is governed by forces and moments acting on its body. The dynamic equations are:{z′′=(F1+F2)cosθ−ux′+2k(L−L0)(secθ−1)sinθ+(mgsinα+ycosα)tanθm,y′′=(F1+F2)cosθ−ux′+2k(L−L0)(secθ−1)cosθ+mgsinα+ycosαm,θ′′=F2s2−F1s1−2katanθ−μ3θ′J,⎩⎨⎧z′′=m(F1+F2)cosθ−ux′+2k(L−L0)(secθ−1)sinθ+(mgsinα+ycosα)tanθ,y′′=m(F1+F2)cosθ−ux′+2k(L−L0)(secθ−1)cosθ+mgsinα+ycosα,θ′′=JF2s2−F1s1−2katanθ−μ3θ′,
where F1,F2F1,F2 are wheel traction forces, kk is spring stiffness, L0L0 is spring rest length, and μ3μ3 is rotational friction coefficient.
2. Design of PSO-Optimized Fuzzy PID Controller
2.1 Fuzzy PID Control Architecture
The fuzzy PID controller adjusts three parameters (Kp,Ki,KdKp,Ki,Kd) dynamically based on error (ee) and error rate (ecec). Key components include:
- Fuzzification: Convert ee and ecec into linguistic variables with Gaussian and triangular membership functions.
- Rule Base: Define 49 fuzzy rules to map inputs to output adjustments (ΔKp,ΔKi,ΔKdΔKp,ΔKi,ΔKd).
- Defuzzification: Use the centroid method to convert fuzzy outputs to crisp values.
2.2 PSO Parameter Optimization
PSO optimizes the fuzzy PID’s scaling factors (Ke,KecKe,Kec) and output gains (Kp,Ki,KdKp,Ki,Kd). The fitness function minimizes angular deviation:Fitness=1n∑i=1n∣θactual−θtarget∣,Fitness=n1i=1∑n∣θactual−θtarget∣,
where θtarget=0θtarget=0 rad for zero deflection.
PSO Algorithm Parameters
Parameter | Value |
---|---|
Population size | 10 |
Iterations | 50 |
Learning factors | c1=c2=2c1=c2=2 |
Inertia weight | 0.9 → 0.4 |
3. Simulation and Experimental Validation
3.1 Robot Specifications
The ZTFBX-1705 solar panel cleaning robot was modeled with the following parameters:
Parameter | Value |
---|---|
Mass (mm) | 36.5 kg |
Speed | 0–50 m/min |
Cleaning width | 1,100 mm |
Tilt tolerance | 15° (transverse), 20° (longitudinal) |
Spring stiffness (kk) | 10,000 N/m |
Rotational inertia (JJ) | 1.7 kg·m² |
3.2 Performance Metrics
- Angular Deviation (θθ): Target = 0 rad.
- Cleaning Efficiency: Ratio of cleaned area to total area per hour.
3.3 Results
Step Response Comparison
Controller Type | Rise Time (s) | Overshoot (%) | Settling Time (s) |
---|---|---|---|
Conventional Fuzzy PID | 1.2 | 4.5 | 3.8 |
PSO-Optimized Fuzzy PID | 0.8 | 0.2 | 1.5 |
Deflection Control Under Disturbance
Disturbance (g/m²) | Angular Deviation (rad) | Cleaning Efficiency (%) |
---|---|---|
0 | 0.002 | 94.22 |
10 | 0.008 | 92.15 |
20 | 0.015 | 89.30 |
4. Discussion
The PSO-optimized fuzzy PID controller demonstrated superior performance:
- Rapid Convergence: Achieved 0 rad deflection within 1.5 seconds, 60% faster than conventional methods.
- Disturbance Rejection: Maintained stability under dust loads up to 20 g/m², with cleaning efficiency exceeding 89%.
- Energy Efficiency: Reduced power consumption by 12% due to minimized corrective motions.
These improvements are critical for solar panel cleaning robots operating in harsh environments, where stability directly impacts energy yield.
5. Conclusion
This study presents a robust control framework for solar panel cleaning robots, combining PSO and fuzzy PID to address deflection challenges. The optimized controller ensures near-zero angular deviation, enhances cleaning efficiency to 94.22%, and adapts dynamically to environmental disturbances. Future work will focus on real-world deployment and multi-robot coordination for large-scale solar farms.