Motor controller and motor control method
11183957 · 2021-11-23
Assignee
Inventors
Cpc classification
H02P21/24
ELECTRICITY
H02P21/09
ELECTRICITY
H02P27/12
ELECTRICITY
International classification
H02P6/04
ELECTRICITY
H02P21/09
ELECTRICITY
H02P27/12
ELECTRICITY
Abstract
A motor control method is provided. The method includes: receiving a plurality of voltage control signals from a rotation speed controller to output a plurality of PWM signals; receiving the plurality of PWM signals to output three phase currents, so that a motor rotates; sensing three phase current values of the three phase currents; directly calculating a real rotor angle of the motor according to two of the three phase current values; and adjusting the plurality of the outputted voltage control signals according to an expected rotor speed and the calculated real rotor angle, so as to make the real rotor speed of the motor reach the expected rotor speed.
Claims
1. A motor controller, adapted to control a three-phase alternating current motor, wherein neither of the motor controller and the three-phase alternating current motor comprises a rotor angle sensor configured to sense a real rotor angle of the three-phase alternating current motor, and the motor controller comprises: a rotation speed controller; a pulse width modulation (PWM) circuit unit, configured to receive a plurality of voltage control signals from the rotation speed controller of the motor controller, so as to output a plurality of PWM signals; an inverter, configured to receive the plurality of PWM signals to output three phase currents to three stator windings of the three-phase alternating current motor, so that the three-phase alternating current motor rotates; a current sensing circuit, electrically connected to the inverter, wherein the current sensing circuit is configured to sense three phase current values of the three phase currents outputted to the three stator windings, wherein a phase difference of 120 degrees is provided among the three phase currents from each other, wherein the three phase current values comprise a U-phase current value, a V-phase current value, and a W-phase current value; and a rotor angle calculation circuit, configured to directly calculate the real rotor angle of the three-phase alternating current motor according to a trigonometric function relationship between the real rotor angle and two of the three phase current values, wherein the rotation speed controller is configured to adjust the plurality of the outputted voltage control signals according to the expected rotor speed and the calculated real rotor angle, so as to make the real rotor speed of the three-phase alternating current motor reach the expected rotor speed, wherein the U-phase current value (Iu), the V-phase current value (Iv), and the W-phase current value (Iw) are defined according to the following formulas (1), (2), and (3):
2. The motor controller according to claim 1, wherein the motor controller further comprises: a rotor speed calculation circuit, configured to perform a differential operation on the real rotor angle to obtain the real rotor speed of the three-phase alternating current motor; and a trigonometric function circuit, configured to calculate a sine function of the real rotor angle and a cosine function of the real rotor angle according to the real rotor speed.
3. The motor controller according to claim 2, wherein the rotation speed controller further comprises: a first proportional-integral (PI) controller, configured to output a Q-axis current control signal according to the input expected rotor speed and the calculated rotor speed; a second PI controller, configured to calculate a Q-axis voltage control signal according to the Q-axis current control signal and a Q-axis current feedback signal; and a third PI controller, configured to calculate a D-axis voltage control signal according to a default D-axis current control signal and a D-axis feedback signal.
4. The motor controller according to claim 3, wherein the rotation speed controller performs a Park inverse transform operation according to the sine function and the cosine function of the real rotor angle, the Q-axis voltage control signal, and the D-axis voltage control signal to obtain a first voltage control signal and a second voltage control signal, and the rotation speed controller performs a Clark inverse transform operation according to the first voltage control signal and the second voltage control signal to obtain a third voltage control signal, a fourth voltage control signal, and a fifth voltage control signal, wherein the third voltage control signal, the fourth voltage control signal, and the fifth voltage control signal are transmitted to the PWM circuit unit.
5. The motor controller according to claim 3, wherein the rotation speed controller performs a Clark transform operation according to the three phase current values to obtain a first current feedback signal and a second current feedback signal, and the rotation speed controller performs a Park transform operation according to the first current feedback signal and the second current feedback signal, to obtain the D-axis current feedback signal and the Q-axis current feedback signal.
6. The motor controller according to claim 1, wherein in the operation of directly calculating, by the rotor angle calculation circuit, the real rotor angle of the three-phase alternating current motor according to the two of the three phase current values, if the U-phase current value, the V-phase current value, and the W-phase current value are defined according to the formulas (1), (2), and (3), the rotor angle calculation circuit directly calculates the real rotor angle according to the U-phase current value and the V-phase current value through the following formula (4):
7. The motor controller according to claim 1, wherein in the operation of directly calculating, by the rotor angle calculation circuit, the real rotor angle of the three-phase alternating current motor according to the two of the three phase current values, if the U-phase current value, the V-phase current value, and the W-phase current value are defined according to the formulas (1), (2), and (3), the rotor angle calculation circuit directly calculates the real rotor angle according to the V-phase current value and the W-phase current value through the following formula (5):
8. The motor controller according to claim 1, wherein in the operation of directly calculating, by the rotor angle calculation circuit, the real rotor angle of the three-phase alternating current motor according to the two of the three phase current values, if the U-phase current value, the V-phase current value, and the W-phase current value are defined according to the formulas (1), (2), and (3), the rotor angle calculation circuit directly calculates the real rotor angle according to the U-phase current value and the W-phase current value through the following formula (6):
9. A motor control method, adapted to control a three-phase alternating current motor by a motor controller, wherein neither of the motor controller and the three-phase alternating current motor comprises a rotor angle sensor configured to sense a real rotor angle of the three-phase alternating current motor, and the method comprises: receiving a plurality of voltage control signals from a rotation speed controller of the motor controller through a pulse width modulation (PWM) circuit unit of the motor controller to output a plurality of PWM signals; receiving the plurality of PWM signals through an inverter of the motor controller to output three phase currents to three stator windings of the three-phase alternating current motor, so that the three-phase alternating current motor rotates; sensing, through a current sensing circuit of the motor controller, three phase current values of the three phase currents outputted to the three stator windings, wherein a phase difference of 120 degrees is provided among the three phase currents from each other, wherein the three phase current values comprise a U-phase current value, a V-phase current value, and a W-phase current value, and wherein the current sensing circuit is electrically connected to the inverter; directly calculating the real rotor angle of the three-phase alternating current motor through a rotor angle calculation circuit of the motor controller according to a trigonometric function relationship between the real rotor angle and two of the three phase current values; and adjusting, through the rotation speed controller of the motor controller, the plurality of the outputted voltage control signals according to the expected rotor speed and the calculated real rotor angle, so as to make the real rotor speed of the three-phase alternating current motor reach the expected rotor speed, wherein the U-phase current value (Iu), the V-phase current value (Iv), and the W-phase current value (Iw) are defined according to the following formulas (1), (2), and (3):
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
DESCRIPTION OF THE EMBODIMENTS
(10) Embodiments of the invention will be illustrated below with the accompanying drawings. The directional terms mentioned in the invention, like “above”, “below”, “left”, “right”, “front” and “back”, refer to the directions in the appended drawings. Therefore, the directional terms are only used for illustration instead of limiting the invention.
Embodiment 1
(11)
(12)
(13) Referring to
(14) In particular, the rotation speed controller 210 receives a default expected rotor speed ω.sub.r*, the expected rotor speed ω.sub.r* being set based on a rotation speed instruction received by the rotation speed controller 210. Operation details of the rotation speed controller 210 are described below using
(15) Referring to
(16) The rotor speed calculation circuit is configured to perform a differential operation on a real rotor angle θ.sub.e to obtain the real rotor speed ω.sub.r of the three-phase alternating current motor.
(17) The trigonometric function circuit 2102 is configured to calculate a sine function sin θ.sub.e of the real rotor angle θ.sub.e and a cosine function cos θ.sub.e of the real rotor angle according to the real rotor angle θ.sub.e. The trigonometric function circuit 2102 is, for example, a programmable circuit unit that applies a CORDIC algorithm. In an embodiment, the rotation speed controller 210 may also obtain the sine function sin θ.sub.e and the cosine function cos θ.sub.e of the real rotor angle θ.sub.e by querying a table without the disposed trigonometric function circuit 2102.
(18) In the present embodiment, a vector of a current input to a stator winding may be defined using a coordinate system of “d, q” axes. A current component of a field flux linkage corresponds to a positive d (direct) axis (also referred to as a D axis), and a current component of a torque corresponds to a positive q (quadrature) axis (also referred to as a Q axis). The “d, q”-axis coordinates of the motor may correspond to an “a, b, c” three-phase sine wave system. Generally, current vectors of the “d, q” axes may be respectively controlled by a PI controller, that is, a PID controller without a differential (D) unit.
(19) The Clark transform unit 2108 and the Clark inverse transform unit 2107 are calculation circuit units respectively configured to perform a Clark transform operation and a Clark inverse transform operation. The Clark transform operation is used to convert a vector corresponding to an “a, b, c” three-phase coordinate system to a vector corresponding to an “α, β” two-phase coordinate system. The Clark inverse transform operation is used to convert a vector corresponding to an “α, β” two-phase coordinate system to a vector corresponding to an “a, b, c” three-phase coordinate system.
(20) The Park transform unit 2109 and the Park inverse transform unit 2106 are calculation circuit units respectively configured to perform a Park transform operation and a Park inverse transform operation. The Park transform operation is used to convert a vector corresponding to an “α, β” two-phase coordinate system to a vector corresponding to a “d, q” two-phase coordinate system. The Park inverse transform operation is used to convert a vector corresponding to a “d, q” two-phase coordinate system to a vector corresponding to an “α, β” two-phase coordinate system.
(21) The foregoing Clark transform operation, Clark inverse transform operation, Park transform operation, and Park inverse transform operation are technical means frequently used by those skilled in the art, and the descriptions thereof are omitted herein.
(22) The first proportional-integral (PI) controller 2103 is configured to output a Q-axis current control signal i.sub.qs* according to the input expected rotor speed ω.sub.r* and the calculated rotor speed ω.sub.r. The second PI controller 2104 is configured to calculate a Q-axis voltage control signal v.sub.qs* according to a Q-axis current control signal i.sub.qs* and a Q-axis current feedback signal i.sub.qs. The third PI controller 2105 is configured to calculate a D-axis voltage control signal v.sub.ds* according to a default D-axis current control signal i.sub.ds* and a D-axis current feedback signal i.sub.ds. A manufacturer may set a default D-axis current control signal i.sub.ds* as needed.
(23) The rotation speed controller 210 (the Park inverse transform unit 2106) performs a Park inverse transform operation according to the sine function singe and the cosine function cos θ.sub.e of the real rotor angle, the Q-axis voltage control signal v.sub.qs*, and the D-axis voltage control signal v.sub.ds* to obtain a first voltage control signal v.sub.a* and a second voltage control signal v.sub.β*.
(24) The rotation speed controller 210 (the Clark inverse transform unit 2107) performs a Clark inverse transform operation according to the first voltage control signal v.sub.a* and the second voltage control signal v.sub.β* to obtain a third voltage control signal v.sub.a*, a fourth voltage control signal v.sub.b* and a fifth voltage control signal v.sub.c*. The third voltage control signal v.sub.a*, the fourth voltage control signal v.sub.b*, and the fifth voltage control signal v.sub.c* are transmitted to the PWM circuit unit 220.
(25) The rotation speed controller (the Clark transform unit 2108) performs a Clark transform operation based on three phase current values I.sub.u, I.sub.v, and I.sub.w to obtain a first current feedback signal i.sub.a and a second current feedback signal i.sub.a.
(26) The rotation speed controller (the Park transform unit 2109) performs a Park transform operation according to the first current feedback signal i.sub.a and the second current feedback signal i.sub.β to obtain the D-axis current feedback signal i.sub.ds and the Q-axis current feedback signal i.sub.qs.
(27) Referring back to
(28) In step S23, the three phase current values I.sub.u, I.sub.v, and I.sub.w of the three phase currents U, V, and W outputted to the three stator windings 10(1)-10(3) are sensed through a current sensing circuit 240 of the motor controller 20. The current sensing circuit 240 is electrically connected to the inverter 230. The current sensing circuit 240 is, for example, a circuit unit including a single-resistor current feedback circuit, a dual-resistor current feedback circuit, or a three-resistor current feedback circuit.
(29) It is worth mentioning that specific circuit architectures of the pulse width modulation (PWM) circuit unit 220, the inverter 230, and the current sensing circuit 240 are not a key point of the invention, and are also technical means frequently used by those skilled in the art. Therefore, the descriptions thereof are omitted herein.
(30) In step S24, the real rotor angle θ.sub.e of the three-phase alternating current motor 1 is directly calculated through a rotor angle calculation circuit 250 of the motor controller 20 according to two of the three phase current values I.sub.u, I.sub.v, and I.sub.w.
(31) In particular, in the present embodiment, the rotor angle calculation circuit 250 is, for example, an application-specific integrated circuit, a programmable processor, or a microprocessor for implementing a rotor angle calculation algorithm. The rotor angle calculation algorithm in Embodiment 1 defines relationships between the three phase current values I.sub.u, I.sub.v, and I.sub.w and the real rotor angle θ.sub.e through the following formulas (1-1), (1-2), and (1-3):
(32)
(33) θ.sub.e is the real rotor angle with a unit of degree; I.sub.u is the U-phase current value, I.sub.v is the V-phase current value, and I.sub.w is the W-phase current value with a unit of ampere (A).
(34)
(35) Next, with the relationships defined above, a formula for calculating the real rotor angle θ.sub.e may be derived using two of the three phase current values I.sub.u, I.sub.v, and I.sub.w. It should be noted that a detailed derivation process is not a key point of the invention, and therefore the descriptions thereof are omitted herein.
(36) For example, the rotor angle calculation circuit 250 may directly calculate the real rotor angle θ.sub.e according to the U-phase current value I.sub.u and the V-phase current value I.sub.v through the following formula (1-4):
(37)
(38)
(39)
is obtained after 2I.sub.v+I.sub.u is divided by the U-phase current value I.sub.u;
(40)
is obtained after
(41)
is multiplied by √{square root over (3)};
(42)
is obtained after inversion of
(43)
and the real rotor angle θ.sub.e is obtained after arc tangent of
(44)
(45) For another example, the rotor angle calculation circuit 250 may directly calculate the real rotor angle θ.sub.e according to the V-phase current value I.sub.V and the W-phase current value I.sub.w through the following formula (1-5):
(46)
(47) Referring to
(48) For another example, the rotor angle calculation circuit 250 may directly calculate the real rotor angle θ.sub.e according to the U-phase current value I.sub.u and the W-phase current value I.sub.w through the following formula (1-6):
(49)
(50) Referring to
(51) Referring back to
(52) In particular, during obtaining of the real rotor angle θ.sub.e, the rotor speed calculation circuit 2101 may perform, based on a plurality of real rotor angles θ.sub.e continuously obtained in a time sequence, a differential operation to obtain the real rotor speed ω.sub.r. In this way, the real rotor speed ω.sub.r is regarded as a feedback rotor speed, so that the rotation speed controller 210 adjusts the plurality of outputted voltage control signals v.sub.a*-v.sub.c*, thereby making the real rotor speed ω.sub.r gradually approach the expected rotor speed ω.sub.r*.
Embodiment 2
(53) A difference between Embodiment 2 and Embodiment 1 lies in an implementation of the rotor angle calculation circuit 250. Other hardware elements are the same as those of Embodiment 1, and therefore the descriptions thereof are omitted herein.
(54) In particular, the rotor angle calculation algorithm implemented on the rotor angle calculation circuit 250 in Embodiment 2 defines relationships between three phase current values I.sub.u, I.sub.v, and I.sub.w and the real rotor angle θ.sub.e through the following formulas (2-1), (2-2), and (2-3):
(55)
(56) θ.sub.e is the real rotor angle with a unit of degree; I.sub.u is the U-phase current value, I.sub.v is the V-phase current value, and I.sub.w is the W-phase current value with a unit of ampere (A).
(57) Similarly, with the relationships defined above, a formula for calculating the real rotor angle θ.sub.e may be derived using two of the three phase current values I.sub.u, I.sub.v, and I.sub.w.
(58) For example, the rotor angle calculation circuit 250 may directly calculate the real rotor angle θ.sub.e according to the U-phase current value I.sub.u and the V-phase current value I.sub.v through the following formula (2-4):
(59)
(60)
(61) For another example, the rotor angle calculation circuit 250 may directly calculate the real rotor angle θ.sub.e according to the V-phase current value I.sub.V and the W-phase current value I.sub.w through the following formula (2-5):
(62)
(63) Referring to
(64) For another example, the rotor angle calculation circuit 250 may directly calculate the real rotor angle θ.sub.e according to the U-phase current value I.sub.u and the W-phase current value I.sub.w through the following formula (2-6):
(65)
(66) Referring to
Embodiment 3
(67) A difference between Embodiment 3 and Embodiment 1 lies in an implementation of the rotor angle calculation circuit 250. Other hardware elements are the same as those of Embodiment 1, and therefore the descriptions thereof are omitted herein.
(68) In particular, the rotor angle calculation algorithm implemented on the rotor angle calculation circuit 250 in Embodiment 3 defines relationships between the three phase current values I.sub.u, I.sub.v, and I.sub.w and the real rotor angle θ.sub.e through the following formulas (3-1), (3-2), (3-3):
(69)
(70) θ.sub.e is the real rotor angle with a unit of degree; I.sub.u is the U-phase current value, I.sub.v is the V-phase current value, and I.sub.w is the W-phase current value with a unit of ampere (A).
(71) Similarly, with the relationships defined above, a formula for calculating the real rotor angle θ.sub.e may be derived using two of the three phase current values I.sub.u, I.sub.v, and I.sub.w.
(72) For example, the rotor angle calculation circuit 250 may directly calculate the real rotor angle θ.sub.e according to the U-phase current value I.sub.u and the V-phase current value I.sub.v through the following formula (3-4):
(73)
(74)
(75) For another example, the rotor angle calculation circuit 250 may directly calculate the real rotor angle θ.sub.e according to the V-phase current value I.sub.V and the W-phase current value I.sub.w through the following formula (3-5):
(76)
(77) Referring to
(78) For another example, the rotor angle calculation circuit 250 may directly calculate the real rotor angle θ.sub.e according to the U-phase current value I.sub.u and the W-phase current value I.sub.w through the following formula (3-6):
(79)
(80) Referring to
Embodiment 4
(81) A difference between Embodiment 4 and Embodiment 1 lies in an implementation of the rotor angle calculation circuit 250. Other hardware elements are the same as those of Embodiment 1, and therefore the descriptions thereof are omitted herein.
(82) In particular, the rotor angle calculation algorithm implemented on the rotor angle calculation circuit 250 in Embodiment 4 defines relationships between the three phase current values I.sub.u, I.sub.v, and I.sub.w and the real rotor angle θ.sub.e through the following formulas (4-1), (4-2), and (4-3):
(83)
(84) θ.sub.e is the real rotor angle with a unit of degree; I.sub.u is the U-phase current value, I.sub.v is the V-phase current value, and I.sub.w is the W-phase current value with a unit of ampere (A).
(85) Similarly, with the relationships defined above, a formula for calculating the real rotor angle θ.sub.e may be derived using two of the three phase current values I.sub.u, I.sub.v, and I.sub.w.
(86) For example, the rotor angle calculation circuit 250 may directly calculate the real rotor angle θ.sub.e according to the U-phase current value I.sub.u and the V-phase current value I.sub.v through the following formula (4-4):
(87)
(88)
(89) For another example, the rotor angle calculation circuit 250 may directly calculate the real rotor angle θ.sub.e according to the V-phase current value I.sub.V and the W-phase current value I.sub.w through the following formula (4-5):
(90)
(91) Referring to
(92) For another example, the rotor angle calculation circuit 250 may directly calculate the real rotor angle θ.sub.e according to the U-phase current value I.sub.u and the W-phase current value I.sub.w through the following formula (4-6):
(93)
(94) Referring to
(95) In summary, according to the motor controller and the motor control method in the embodiments of the invention, the three phase current values of the three-phase alternating current motor may be directly used to calculate the real rotor angle of the three-phase alternating current motor without utilizing a rotor angle sensor, so as to adjust the plurality of outputted voltage control signals according to the expected rotor speed and the calculated real rotor angle, thereby making the real rotor speed of the three-phase alternating current motor reach the expected rotor speed. In this way, not only hardware costs of the rotor angle sensor are reduced, but also the real rotor speed of the three-phase alternating current motor can still be controlled effectively through the calculated real rotor angle, thereby enhancing efficiency of the three-phase alternating current motor.
(96) Although the invention is described with reference to the above embodiments, the embodiments are not intended to limit the invention. A person of ordinary skill in the art may make variations and modifications without departing from the spirit and scope of the invention. Therefore, the protection scope of the invention should be subject to the appended claims.