The invention discloses an automatic motor
calibration algorithm based on variable carrier frequency and composite modulation, and the
algorithm specifically comprises the steps: 1, employing a
switching frequency capable of covering all working conditions and an SVPWM modulation mode, building a motor twin
trawling rack test
system, guaranteeing the normal connection of a
motor controller with a power analyzer and a CAN communication
system, and enabling the
motor controller to be connected with a power analyzer; control instruction sending, torque
data acquisition and
system efficiency real-time transmission are realized; 2, calibrating a low rotating speed interval to obtain maximum torques and corresponding angles under different currents; 3, calibrating a high rotating speed interval so as to adapt to
torque optimization under the limit
voltage; step 4, system efficiency optimization calibration is carried out to determine an optimal modulation mode and
switching frequency; step 5, back
electromotive force monitoring and thermal management; step 6,
switching frequency processing and modulation mode correction; and step 7, integrating the calibration data of all the working condition points, extracting the optimal system efficiency point under each working condition and the corresponding modulation mode and switching frequency, generating a
motor control program file according to the optimal parameters, and completing all-working-condition calibration.