The invention discloses a method for eliminating motor phase current temperature drift in a real-time way. In the method, a
current sensor is adopted to acquire motor phase current, and an acquisition
signal is processed via a proportion amplification module and a
digital signal processing module; when a sampling
system is electrified, an initial sampling value of the sampling
system is calculated via the
digital signal processing module so that motor initial zero offset current is obtained; and with
continuous operation of the motor, temperature rises, motor three-phase zero offset current changes, the sampling
system acquires motor three-phase current in the real-time way and performs corresponding calculation so that motor phase current secondary zero offset current is obtained, and when the system normally operates, the sampling value is processed and calculated via the proportion amplification module and the
digital signal processing module, a DC component caused by temperature drift is eliminated, and practical phase current is obtained. phase current temperature drift can be detected in the real-time way by the method, and temperature
drift current in the acquired motor phase current can be eliminated so that an
instability phenomenon of the system caused by temperature rise is overcome, stability of the
motor control system is guaranteed, and reliable operation of the motor is ensured.