Field oriented control of a motor with a single shunt

Information

  • Patent Grant
  • 8829846
  • Patent Number
    8,829,846
  • Date Filed
    Tuesday, August 16, 2011
    13 years ago
  • Date Issued
    Tuesday, September 9, 2014
    10 years ago
Abstract
A method for driving a motor is provided. Pulse width modulation (PWM) signals are generated from a voltage signal and a commanded angle signal, which drives a motor with multiple phases. A motor current from a motor is measured with a single shunt and converted into a digital signal. Based on the digital signal and the commanded angle signal, direct-axis and quadrant-axis currents for the motor can be determined, and the voltage signal and the commanded angle signal can be adjusted based at least in part on the direct-axis and quadrant-axis currents.
Description
TECHNICAL FIELD

The invention relates generally to motor control and, more particularly, to sensorless control of a permanent magnet synchronous motor (PMSM), brushless direct current motor (BLDC), or an induction motor.


BACKGROUND

Turning to FIG. 1, a conventional system 100 can be seen. This system 100 generally comprises a motor controller 102, a power supply 104, an inverter 106, and a motor 108 (which is typically a PMSM, BLDC, or induction motor). In operation, the motor controller 102 provides generally continuous pulse width modulation (PWM) signals (i.e., 6 PWM signals if the motor 108 is a three-phase motor). These PWM signals are used to control the inverter 106, so that the inverter 106 can provide the commanded voltage to each phase of motor 108 from power supply 104.


The motor controller 102 provides control of motor 108 (through the application of the PWM signals) based on a field-oriented control (FOC) algorithm. For conventional FOC control, there are typically three control loops (one speed loop and two current loops) that are employed to provide adjustments. Typically, the observer 120 forms a portion of the speed loop and determines a feedback speed or feedback signal ω from the PWM signals (provided to the inverter 106) and from the motor 108. A difference between this feedback signal ω and a reference speed or reference signal ω* (which is determined by assert 110-1) is adjusted by the proportional-integral (PI) controller 112-1 to generate the reference torque current iq* for the quadrature axis or q-axis. Additionally, a field weakener 114 provides the reference field current id* for the direct axis d-axis (in normal operation, id*=0 for PMSM and BLDC motors and id* is constant for induction motors). The observer 120 also determined the rotor position or angle and provides the angle signal θ to the Park converter 118 and PWM controller 116. The current loops generally include the Park converter 118, which determines currents id and iq from phase current measurements and the angle signal θ. These currents id and iq are then compared to or subtracted from the reference current id* and iq* by adders 110-2 and 110-3, respectively, to generate errors ΔId and ΔIq. These errors ΔId and ΔIq can then be further adjusted by PI controllers 112-2 and 112-3, and the commanded voltages Vd and Vq, along with the angle signal θ (which form a voltage command vector {right arrow over (V)}), can be used to generate the PWM signals, and generation of the PWM signals is usually accomplished by an inverse Park transformation (performed by an inverse Park converter within PWM controller 116) and a space vector PWM generator (within the PWM controller 116) so as to generate three phase voltages.


Turning to FIGS. 2A and 2B, an example of the construction of a voltage command vector {right arrow over (V)} from the voltage signals Vq* and Vd* and the commanded angle signal θ* for a three-phase motor can be seen. Typically, though, voltage signal Vd* much less than Vq*. The example voltage vector {right arrow over (V)} is located in sector I (having an angle σ). From this voltage vector {right arrow over (V)}, there are two resultant projections T1 and T2 that correspond to intervals over which the vectors V1 and V2 are applied over the associated PWM period (shown in FIG. 2B). These intervals T1 and T2 and vectors V1 and V2 are typically generated by a space vector PWM (SVPWM) in PWM controller 116. For this example, one-half of each of intervals T1 and T2 (over which vectors V1 and V2 are applied, respectively) are located are at each end of the PWM period with the remainder of the PWM period being the zero vector V7 or V0 (where no current is flowing in a direct current link or DC-link single-shunt). For low speed and some operations, intervals T1 and T2 (either one or both) are very small (as shown in FIGS. 3A and 3B), so a fast (and costly) analog-to-digital converter (ADC), which performed the data conversion for Park converter 118, is generally employed.


Thus, there is a need for a lower cost motor controller.


Some examples of conventional systems are: U.S. Pat. No. 5,886,498; U.S. Pat. No. 7,202,629; U.S. Pat. No. 7,208,908; U.S. Pat. No. 7,339,344; U.S. Pat. No. 7,646,164; U.S. Pat. No. 7,808,201; U.S. Patent Pre-Grant Publ. No. 2010/0201298; U.S. Patent Pre-Grant Publ. No. 2011/0012544; Ancuti et al., “Sensorless V/f control of high-speed surface permanent magnet synchronous motor drives with two novel stabilizing loops for fast dynamics and robustness,” IET Electr. Power Appl., Vol. 4, Iss. 3, 2010, pp. 149-157; Itoh et al., “A comparison between V/f control and position-sensorless vector control for the permanent magnet synchronous motor,” Proc. of the Power Conversion Conf., 2002. PCC Osaka 2002, pg. 1310-1315; and Perera et al., “A Sensorless, Stable V=f Control Method for Permanent-Magnet Synchronous Motor Drives”, IEEE Trans. on Ind. Appl., Vol. 39, No. 3, May/June 2003.


SUMMARY

An embodiment of the present invention, accordingly, provides a method. The method comprises generating a plurality of pulse width modulation (PWM) signals from a voltage signal and a commanded angle signal; driving a motor with the plurality of PWM signals, wherein the motor has a plurality of phases; measuring a motor current from a motor with a single shunt; converting the motor current to a digital signal; determining at least one of a direct-axis current and a quadrant-axis current for the motor from the digital signal and the commanded angle signal; and adjusting the voltage signal and the commanded angle signal based at least in part on the direct-axis and quadrant-axis currents.


In accordance with an embodiment of the present invention, the method further comprises generating the voltage signal and the commanded angle signal from a reference signal.


In accordance with an embodiment of the present invention, the step of generating the voltage signal and the commanded angle signal from the reference signal further comprises: generating the voltage signal from a frequency of the reference signal; and integrating the reference signal to determine the commanded angle signal.


In accordance with an embodiment of the present invention, the motor current is a peak current.


In accordance with an embodiment of the present invention, the step of driving further comprises applying the plurality of PWM signals to an inverter.


In accordance with an embodiment of the present invention, the direct-axis current is ∥{right arrow over (iR)}∥ cos θ*, wherein ∥{right arrow over (iR)}∥ is the peak current and θ* is the commanded angle signal, and wherein the quadrant-axis current is ∥{right arrow over (iR)}∥ cos θ*.


In accordance with an embodiment of the present invention, the step of determining at least one of the direct-axis and quadrant-axis currents further comprises: determining the direct-axis current to be the motor current when the commanded angle is zero; and determining the quadrant-axis current to be the motor current when the commanded angle is 270°.


In accordance with an embodiment of the present invention, an apparatus is provided. The apparatus comprises an inverter; a motor that is coupled to the inverter; a shunt that is coupled to the inverter; a voltage generator that generates a voltage signal from a reference signal; an integrator that generates an angle signal from the reference signal; a feedback loop that is coupled to the shunt, wherein the feedback loop is configured to measure a motor current from the shunt, to determine direct-axis and quadrant-axis currents from the motor current and the commanded angle signal, and to generate a control signal; a first adder that adds the voltage signal to the control signal; a second adder that subtracts the control signal from the commanded angle signal; and a PWM controller that is coupled to the inverter and that generates a plurality of PWM signals in response to outputs from the first and second adders.


In accordance with an embodiment of the present invention, the feedback loop further comprises: a stator circuit that measures the envelop current and that determines the stator current; and a PI controller that generates the control signal based at least in part on the stator current measurement.


In accordance with an embodiment of the present invention, the PWM controller further comprises: an inverse Park converter that performs an inverse Park transformation on the voltage signal and the commanded angle signal; and a space vector PWM (SVPWM) generator that generates the plurality of PWM signals based at least in part on outputs from the inverse Park converter.


In accordance with an embodiment of the present invention, the stator circuit further comprises: a measurement circuit that is coupled to the shunt; and a stator current calculator that is coupled to the measurement circuit.


In accordance with an embodiment of the present invention, the voltage generator, the integrator, the first adder, the second adder, the stator calculator, the PI controller, and the inverse Park converter are implemented in software that is embodied on a processor and memory.


In accordance with an embodiment of the present invention, an analog-to-digital converter (ADC) that is coupled to the shunt.


In accordance with an embodiment of the present invention, the motor current is a peak current, and wherein the stator circuit further comprises an envelop detector coupled between the ADC and the shunt.


In accordance with an embodiment of the present invention, an apparatus is provided. The apparatus comprises an inverter; a motor that is coupled to the inverter; a shunt that is coupled to the inverter; a measurement circuit that is coupled to the shunt so as to measure a motor current; a processor having a memory with a computer program embodied thereon, the computer program including: computer code for generating a voltage signal and a commanded angle signal from a reference signal; computer code for determining at least one of a direct-axis current and a quadrant-axis current for the motor from the motor current and the commanded angle signal; and computer code for adjusting the voltage signal and the commanded angle signal based at least in part on the direct-axis and quadrant-axis currents; and a PWM generator that is coupled to the processor and the inverter, wherein the PWM generator receives the drive signals and generates a plurality of PWM signals from the drive signals.


In accordance with an embodiment of the present invention, the computer code for generating the voltage signal and the commanded angle signal from the reference signal further comprises: computer code for generating the voltage signal from a frequency of the reference signal; and computer code for integrating the reference signal to determine the commanded angle signal.


In accordance with an embodiment of the present invention, the measurement circuit further comprises an ADC that is coupled to the shunt and the processor.


In accordance with an embodiment of the present invention, the PWM generator further comprises an SVPWM generator, and wherein the computer program further comprises computer code for performing an inverse Park transformation on the voltage signal and the commanded angle signal.


In accordance with an embodiment of the present invention, wherein the motor current is a peak current, and wherein the measurement circuit further comprises an envelop detector that is coupled between the shunt and the ADC to measure the peak current, and wherein the direct-axis current is ∥{right arrow over (iR)}∥ cos θ* wherein ∥{right arrow over (iR)}∥ is the peak current and θ* is the commanded angle signal, and wherein the quadrant-axis current is ∥{right arrow over (iR)}∥ cos θ*.


In accordance with an embodiment of the present invention, the computer code for determining at least one of the direct-axis and quadrant-axis currents further comprises: computer code for determining the direct-axis current to be the motor current when the commanded angle is zero; and computer code for determining the quadrant-axis current to be the motor current when the commanded angle is 270°.


The foregoing has outlined rather broadly the features and technical advantages of the present invention in order that the detailed description of the invention that follows may be better understood. Additional features and advantages of the invention will be described hereinafter which form the subject of the claims of the invention. It should be appreciated by those skilled in the art that the conception and the specific embodiment disclosed may be readily utilized as a basis for modifying or designing other structures for carrying out the same purposes of the present invention. It should also be realized by those skilled in the art that such equivalent constructions do not depart from the spirit and scope of the invention as set forth in the appended claims.





BRIEF DESCRIPTION OF THE DRAWINGS

For a more complete understanding of the present invention, and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:



FIG. 1 is a diagram of an example of a conventional system;



FIG. 2A is a vector diagram depicting an example of a command voltage vector for the system of FIG. 1;



FIG. 2B is a SVPWM diagram for the voltage vector of FIG. 2A;



FIG. 3 is a diagram of an example of a system in accordance with an embodiment of the present invention;



FIGS. 4A and 4B are diagrams of examples of configurations for the shunt of FIG. 3; and



FIGS. 5A to 5F are diagrams depicting examples of a resultant current vector for the system of FIG. 3.





DETAILED DESCRIPTION

Refer now to the drawings wherein depicted elements are, for the sake of clarity, not necessarily shown to scale and wherein like or similar elements are designated by the same reference numeral through the several views.


Turning to FIG. 3, an example of a system 200 in accordance with an embodiment of the present invention can be seen. In operation, the motor controller 202 provides control of motor 108 (through the application of the PWM signals) based on a hybrid gain and field-oriented control (FOC), and, as shown, this motor controller 202 employs a current control loop to control the motor 108. A voltage generator 207 and integrator 209 are employed to generate the voltage signal Vq* and commanded angle signal θ*, respectively, from reference speed or reference signal ω*, and the stator circuit 204 is able to determine the measured stator currents id and iq from shunt 206 and the command angle signal θ*. The measured stator currents id and iq can then be used by the proportional-integral (PI) controller 210 (which can be comprised of multiple PI controllers) to generate a control signal. The voltage signal Vq* and commanded angle signal θ* are then adjusted with the output of the PI controller 210 by way of adders 208-1 and 208-2, which adds and subtracts a control signal to and from the voltage signal Vq* and commanded angle signal θ* (respectively). The PWM controller 216 then is able to convert the voltage signal Vq* and commanded angle signal θ* to PWM signals (which are used to control the phases of motor 108) by way of an inverse Park converter and a space vector PWM (SVWPM) controller. Additionally, each of the voltage generator 207, integrator 209, adders 208-1 and 208-2, PI controller 210, inverse Park converter (which is generally part of the PWM controller 216), and SVPWM (which is generally part of the PWM controller 216) can be implemented in hardware or in software that is stored in a memory and embodied on a processor.


As a result, system 200 has a significant advantage over system 100 in that the two shunts of system 100 (shown as the two connections to motor 108) have been replaced with a single shunt 206 without the need for a high performance ADC and without further introduction of noise. Examples of shunt 206 (which are labeled 206-1 and 206-2) can be seen in FIGS. 4A and 4B. As shown, the inverter 106 is generally comprised of switches S1 to S6, where each pair of switches S1/S2, S3/S4, and S5/S6 are each coupled to one of the phases of the motor 108, and a resistor R1 can form the shunt 206. For the configuration shown in FIG. 4A, resistor R1 for shunt 206-1 is coupled to each pair of switches S1/S2, S3/S4, and S5/S6 (and each phase of motor 108), and for the configuration shown in FIG. 4B, resistor R1 is coupled to one of the switch pair S1/S2 (although resistor R1 can be coupled to any of the switch pairs S1/S2, S3/S4, or S5/S6.


Additionally, the Park converter 118 has been replaced with stator circuit 204. The stator circuit 204 generally includes an ADC (where the shunt 206 and ADC can collectively be considered to be a measurement circuit) and stator current calculator (which can be implemented in hardware or software). Depending on the configuration of the shunt 206 (namely, if shunt 206-1 is employed), stator circuit 204 can also include an envelop detector. By having this arrangement, stator calculator does not perform a Park transformation, but, instead, can directly calculate the stator currents id and iq. Typically, for shunt 206-1, a hardware envelop detector (which can detect an envelop current by eliminating narrow pulses and noises or a peak current) is employed, and, for both shunt 206-1 and 206-2, the envelop detector can be implemented in software or hardware.


To preface, for a typical Park transformation (as shown in equation (1) below), stator currents id and iq are constructed or calculated from two or three phases (of a three phase motor, for example) and a commanded angle signal θ*.










(




i
d






i
q




)

=


2
3



(




cos






θ
*





cos


(


θ
*

-


2

π

3


)





cos


(


θ
*

+


2

π

3


)








-
sin







θ
*





-

sin


(


θ
*

-


2

π

3


)






-

sin


(


θ
*

+


2

π

3


)






)



(




i
a






i
b






i
c




)






(
1
)








This is the transformation undertaken by Park converter 118 of system 100, and elimination of one or two of the shunts (so as to use the single shunt 206) is very difficult using the arrangement of FIG. 1. Yet, this is achievable with the use of envelop circuit 204 (which is generally comprised of an envelop detector and ADC) if some approximations are made.


Looking to the voltage vector {right arrow over (V)} of FIGS. 2A and 2B as an example to illustrate the approximations used by the system 200, the motor equations in the synchronous frame are:











V
d

=



i
d



R
s


+


L
d

·




i
d




t



-

ωΨ
q



,




(
2
)








V
q

=



i
q



R
s


+


L
q

·




i
q




t



+

ωΨ
d



,




(
3
)








Ψ
d

=



i
d



L
d


+

Ψ
m



,




and




(
4
)








Ψ
q

=


i
q



L
q



,




(
5
)








where ω is the angular speed, Vd and Vq are stator voltages for the d-axis and q-axis, respectively, Ψd and Ψq are flux linkages for the d-axis and q-axis, respectively, Ld and Lq are stator inductances for the d-axis and q-axis, respectively, Ψm is the flux linkage of the permanent magnet, and Rs is the stator resistance. Because stator inductances Ld and Lq are small while current iq is small, flux linkage Ψd is approximately equal to flux linkage of the permanent magnet Ψm, while flux linkage Ψq is approximately equal to zero. As a result, equations (2) through (5) can be reduced as follows:











V
d

=




i
d



R
s


+


L
d

·




i
d




t



-

ωΨ
q





i
d



R
s



0


,




(
6
)








V
q

=




i
q



R
s


+


L
q

·




i
q




t



+

ωΨ
d






i
q



R
s


+

ωΨ
d




ωΨ
d



,




(
7
)








Ψ
d

=




i
d



L
d


+

Ψ
m




Ψ
m



,




and




(
8
)








Ψ
q

=



i
q



L
q



0


,




(
9
)








From equations (6) and (7), the magnitude of voltage vector {right arrow over (V)} is:

∥{right arrow over (V)}∥≈Vq≈ωΨm,  (10)

Thus, from equation (10), the rotor quadrant position is approximately in alignment with the resultant voltage command (i.e., voltage vector {right arrow over (V)}) in stable control of a motor 108 (which can, for example, be a PMSM, BLDC motor, or induction motor).


From this, it follows that stator currents id and iq can be determined from a current measurement and the commanded angle signal θ*. Turning back to equation (1) and employing either shunt 206-1 or 206-2, when phase a (for example) reaches a peak, then the resultant current vector {right arrow over (iR)} is aligned with the a-axis (as shown in FIG. 5A) or anti-aligned with the a-axis (as shown in FIG. 5B). The measurement by shunt 206 should then be at a peak, that is:

max(ia)=∥{right arrow over (iR)}∥  (11)

Stator currents id and iq, then, are

id=∥{right arrow over (iR)}∥ cos θ*  (12)
iq=∥{right arrow over (iR)}∥ sin θ*  (13)

Because stator circuit 204 determines a peak current, the stator current calculator (within envelop circuit 204) is able to use the peak current (which is ∥{right arrow over (iR)}∥) in conjunction with the commanded angle signal θ* to generate a control signal. Thus, it becomes practical to determine stator currents id and iq without performing a Park transformation or a narrow ADC pulse.


Alternatively, when shunt 206-1 or 206-2 is employed, the rotor position may be used instead of a peak current to directly calculate currents id and iq. Turning, again, back to equation (1), when the commanded angle signal θ* becomes 0, the equation (1) becomes:













i
d

=


2
3



(




cos





0




cos


(

-


2

π

3


)





cos
(

+


2

π

3






)



)



(




i
a






i
b






i
c




)


=



2
3



(


i
a

-


1
2



i
b


-


1
2



i
c



)


=

i
a






(
14
)








This means that the vector for current id is aligned with the a-axis (as shown in FIG. 5C). Similarly, (as shown in FIGS. 5D through 5F), the stator currents id and iq become:











i
q

=



-

i
a







for






θ
*


=


π
2

=

90

°











i
d

=



-

i
a







for






θ
*


=

π
=

180

°











i
q

=



i
a






for






θ
*


=



3

π

2

=

270

°








(
15
)








Again, it becomes practical to use the configuration for both shunts 206-1 and 206-2 and determine stator currents id and iq without performing a Park transformation.


Having thus described the present invention by reference to certain of its preferred embodiments, it is noted that the embodiments disclosed are illustrative rather than limiting in nature and that a wide range of variations, modifications, changes, and substitutions are contemplated in the foregoing disclosure and, in some instances, some features of the present invention may be employed without a corresponding use of the other features. Accordingly, it is appropriate that the appended claims be construed broadly and in a manner consistent with the scope of the invention.

Claims
  • 1. An apparatus comprising: an inverter;a motor that is coupled to the inverter;a shunt that is coupled to the inverter;a voltage generator that generates a voltage signal from a reference signal;an integrator that generates an angle signal from the reference signal;a feedback loop that is coupled to the shunt, wherein the feedback loop is configured to measure a motor current from the shunt, to determine direct-axis and quadrant-axis currents from the motor current and the commanded angle signal, and to generate a control signal;a first adder that adds the voltage signal to the control signal;a second adder that subtracts the control signal from the commanded angle signal; anda PWM controller that is coupled to the inverter and that generates a plurality of PWM signals in response to outputs from the first and second adders.
  • 2. The apparatus of claim 1, wherein the feedback loop further comprises: an stator circuit that measures the motor current and that determines the stator current; anda PI controller that generates the control signal based at least in part on the stator current measurement.
  • 3. The apparatus of claim 2, wherein the PWM controller further comprises: an inverse Park converter that performs an inverse Park transformation on the voltage signal and the commanded angle signal; anda space vector PWM (SVPWM) generator that generates the plurality of PWM signals based at least in part on outputs from the inverse Park converter.
  • 4. The apparatus of claim 3, wherein the stator circuit further comprises: a measurement circuit that is coupled to the shunt; anda stator current calculator that is coupled to the measurement circuit.
  • 5. The apparatus of claim 4, wherein the voltage generator, the integrator, the first adder, the second adder, the stator calculator, the PI controller, and the inverse Park converter are implemented in software that is embodied on a processor and non-transitory memory.
  • 6. The apparatus of claim 5, wherein the measurement circuit further comprises an analog-to-digital converter (ADC) that is coupled to the shunt.
  • 7. The apparatus of claim 6, wherein the motor current is a peak current, and wherein the stator circuit further comprises an envelope detector coupled between the ADC and the shunt.
US Referenced Citations (13)
Number Name Date Kind
5886498 Sul et al. Mar 1999 A
6563496 Sakurai May 2003 B1
7202629 Jadot et al. Apr 2007 B2
7208908 Anghel Apr 2007 B2
7339344 Borisavljevic Mar 2008 B2
7646164 Malrait et al. Jan 2010 B2
7808201 Borisavljevic Oct 2010 B2
20010007416 Koide et al. Jul 2001 A1
20040104704 Hirono Jun 2004 A1
20100201298 De Filippis Aug 2010 A1
20110012544 Schulz et al. Jan 2011 A1
20120098472 Wrobel et al. Apr 2012 A1
20120249033 Qin Oct 2012 A1
Non-Patent Literature Citations (3)
Entry
“Sensorless V/f Control of High-Speed Surface Permanent Magnet Synchronous Motor Drives With Two Novel Stabilising Loops for Fast Dynamics and Robustness,” IET Electr. Power Appl., vol. 4, Iss. 3, 2010, pp. 149-157 (Ancuti, et al.).
“A Comparison Between V/f Control and Position-Sensorless Vector Control for the Permanent Magnet Synchronous Motor,” Proc. of the Power Conversion Conf., PCC Osaka 2002, pp. 1310-1315 (Itoh, et al.).
“A Sensorless, Stable V=f Control Method for Permanent-Magnet Synchronous Motor Drives,” IEEE Trans. on Ind. Appl., vol. 39, No. 3, May/Jun. 2003, pp. 783-791 (Perera, et al.).
Related Publications (1)
Number Date Country
20130043811 A1 Feb 2013 US