| CPC H02P 23/14 (2013.01) [H02P 23/0004 (2013.01); H02P 25/03 (2016.02); H02P 2205/01 (2013.01); H02P 2209/11 (2013.01)] | 20 Claims |

|
10. A motor control circuit for controlling a motor to operate, the motor control circuit comprising:
a power supply, comprising a live wire and a natural wire;
a first rectification circuit and a second rectification circuit, connected in parallel between the live wire of the power supply and the natural wire of the power supply, and configured to rectify the power supply;
a driving circuit, wherein an output end of the first rectification circuit is connected to the motor through the driving circuit;
a sampling resistor, connected to the driving circuit; and
a controller, connected to an output end of the second rectification circuit through a voltage detection circuit, wherein the controller is configured to:
obtain a periodic waveform signal of a bus voltage;
collect a bus current value through the sampling resistor;
sample the periodic waveform signal for a plurality of times;
linearly fit a plurality of voltage values obtained at a plurality of sampling time points t to obtain a plurality of slopes;
obtain a power frequency f according to the plurality of slopes;
calculate a compensation current value according to the power frequency; and
generate a control signal according to the compensation current value and the bus current value to control the motor.
|