Abstract:Corn harvesters operate with wrong rows and missed cuts, and the poor harvesting quality of corn plants with non-linear growth patterns, thus an automatic alignment system for corn harvesters was designed to meet the needs of practical use. The system mainly consisted of three parts: mechanical row alignment device, steering wheel deflection angle detection device, and steering control system. Among them, the mechanical row alignment device and the steering wheel deflection angle detection device can be based on a pure tracking model of the two-wheeled vehicle model in order to detect the lateral deviation and the current lateral error in real time. In addition, the steering control system used a control method based on improved PSO-PID to adjust the harvester’s travelling route to further eliminate the lateral deviation. Finally, the system was verified by Matlab simulation software analysis and experimented in simulated scenarios. The simulation results showed that compared with the traditional PSO-PID control, the improved PSO-PID control reduced the square wave overshoot by 94.3%, the sinusoidal maximum error by 95.5%, and the sinusoidal tracking delay was only 0.01s. The results of the experiments in the simulation scenarios showed that the percentage of the operating deviation within the range of ±20cm was higher than 80%. When the vehicle speed did not exceed 4km/h, the deviation of straight line path trajectory can be controlled within ±20cm, and the proportion of deviation within ±20cm in curve path was higher than 93%. The experimental results showed that the system met the requirements of actual operation and provided technical support for the automation of agricultural harvesting.