In-wheel motors are widely used in light electric vehicles due to its simple structure and flexible driving. The cogging effect, nonlinear problem of the inverter and harmonic current cause the ripple of electromagnetic torque, which affects the ride comfort of vehicles. It is found that electromagnetic torque harmonics are mainly low-order harmonics. In order to effectively minimize the torque ripple，an in-wheel motor structure with three-phase independent stator windings is designed，and a compensation current injection method based on current amplitude iteration tuning is proposed. By use of dynamic step dichotomy, the fast convergence of expected compensation current amplitude is realized. The research results show that the proposed method reduces the total harmonic distortion by 2.80%~ 5.84%, and has better harmonic torque suppression effects.