Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
MOTOR CONTROLLER WITH ACCURATE CURRENT MEASUREMENT
Document Type and Number:
WIPO Patent Application WO/2020/222953
Kind Code:
A1
Abstract:
A motor control system for reducing or eliminating current ripple error during current sampling comprises a motor having a plurality of phase coils, a motor driver circuit having a plurality of switches coupled to the plurality of phase coils to drive current through the phase coils, and a motor controller circuit configured to provide a plurality of output control signals coupled to the plurality of switches. A phase circuit modifies a first output control signal to produce a modified control signal that is out of phase with a second output control signal. A current measuring circuit is included to measure a current through the motor by measuring the current during a first time period when the first output control signal is active and measuring the current during a second time period when the modified control signal is active.

Inventors:
LU YISONG (US)
Application Number:
PCT/US2020/025657
Publication Date:
November 05, 2020
Filing Date:
March 30, 2020
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
ALLEGRO MICROSYSTEMS LLC (US)
International Classes:
H02P6/28; G01R19/00; H02P21/22; H02P27/08
Foreign References:
US20120163046A12012-06-28
DE102006052467A12008-05-08
EP1347567A12003-09-24
US20130158808A12013-06-20
US7590334B22009-09-15
US7747146B22010-06-29
US8729841B22014-05-20
US201213595430A2012-08-27
US9088233B22015-07-21
US9291876B22016-03-22
US201815967841A2018-05-01
Attorney, Agent or Firm:
CROWLEY, Judith, C. et al. (US)
Download PDF:
Claims:
CLAIMS

1. A system comprising:

a motor having a plurality of phase coils;

a motor driver circuit having a plurality of switches coupled to the plurality of phase coils to drive current through the phase coils;

a motor controller circuit configured to provide a plurality of output control signals coupled to the plurality of switches, each output control signal associated with a respective phase coil to control the switches to drive current through the respective phase coil;

a phase circuit to modify a first output control signal of the plurality of output control signals to produce a modified control signal that is out of phase with a second output control signal of the plurality of output control signals; and

a current measuring circuit to measure a current through at least one of the phase coils by:

measuring the current during a first time period when the first output control signal is active; and

measuring the current during a second time period when the modified control signal is active.

2. The system of claim 1 wherein the current measuring circuit is further configured to average the current measured during the first time period and the current measured during the second time period.

3. The system of claim 1 wherein the plurality of phase coils comprises three phase coils.

4. The system of claim 3 wherein the plurality of output control signals comprises three output control signals.

5. The system of claim 1 wherein the plurality of output control signals are pulse- width modulated control signals.

6. The system of claim 5 wherein the first time period corresponds to a time period when the modified control signal is high and the second time period corresponds to a time period when the second output control signal is high.

7. The system of claim 1 wherein the modified control signal and the second output control signal are about 180 degrees out of phase.

8. The system of claim 1 wherein the current measuring circuit is configured to measure the current at a midpoint of the first time period and at a midpoint of the second time period.

9. The system of claim 1 further comprising a single shunt resistor coupled to the current measuring circuit.

10. The system of claim 1 wherein the phase circuit comprises a phase shift circuit that shifts the center of the first output control signal by a half-period.

1 1. A circuit comprising:

a motor driver circuit having a plurality of switches configured to be coupled to a plurality of phase coils of a motor to drive current through the plurality of phase coils of the motor;

a motor controller circuit configured to provide a plurality of output control signals coupled to the plurality of switches, each output control signal associated with a respective phase coil to control the switches to drive current through the respective phase coil;

a phase circuit to modify a first output control signal of the plurality of output control signals to produce a modified control signal that is out of phase with a second output control signal of the plurality of output control signals; and

a current measuring circuit to measure a current through at least one of the phase coils by:

measuring the current during a first time period when the modified control signal is active; and

measuring the current during a second time period when the second output control signal is active.

12. The circuit of claim 1 1 wherein the current measuring circuit is further configured to average the current measured during the first time period and the current measured during the second time period.

13. The circuit of claim 1 1 wherein the plurality of phase coils comprises three phase coils.

14. The circuit of claim 13 wherein the plurality of output control signals comprises three output control signals.

15. The circuit of claim 1 1 wherein the output control signals are pulse- width modulated control signals.

16. The circuit of claim 15 wherein the first time period corresponds to a time period when the modified control signal is high and the second time period corresponds to a time period when the second output control signal is high.

17. The circuit of claim 1 1 wherein the modified control signal and the second output control signal are about 180 degrees out of phase.

18. The circuit of claim 1 1 wherein the current measuring circuit is configured to measure the current at a midpoint of the first time period and at a midpoint of the second time period.

19. The circuit of claim 1 1 further comprising a single shunt resistor coupled to the current measuring circuit.

20. The circuit of claim 1 1 wherein the phase circuit comprises an inverter.

21. A circuit comprising:

a motor driver circuit having a plurality of switches configured to be coupled to a plurality of phase coils of a motor to drive current through the plurality of phase coils, wherein the current comprises a ripple; and

means for taking a first measurement of the current at a halfway point of a rising edge of the ripple and taking a second measurement of the current at a halfway point of a falling edge of the ripple.

Description:
MOTOR CONTROLLER WITH ACCURATE CURRENT

MEASUREMENT

FIELD

[0001 ] This disclosure relates to motor controllers and, more particularly, to motor controllers that measure current flowing through the motor.

BACKGROUND

[0002] Circuits to precisely control, drive, and regulate brushless DC (“BLDC”) electric motors are required in many applications. These circuits often create pulse-width modulated (“PWM”) drive signals that are used to control power to the motor.

[0003] BLDC motors may include multiple coils. These coils, when energized, cause the motor to turn. However, for the motor to continuously turn, a motor controller circuit may have to energize one or more (but not all) of the coils at a time, energize the coils in a particular order, energize the coils in a forward and backward direction at different times, etc. The periods of time in which the coils are energized are often referred to as so-called“phases” of the motor. The coil (or coils) that are energized during a phase may be referred to as phase coils.

[0004] The sequence and timing of which coils are energized is dependent upon the design of the BLDC motor. As an example, one BLDC motor may have three coils that must be energized in sequence, i.e. a round -robin fashion, in order to turn the motor. Other sequences of energizing the coils may also be used. Such a motor may have three“phases.” In each phase, a different one or more of the three coils is energized. As the motor turns, the phase will change, and the motor driver will energize the next one or more coils in order to keep the motor spinning.

[0005] As each phase is energized, it physically drives the motor’s rotor. The amount of power supplied to the coils may be directly proportional to the amount of torque produced by the motor. In many BLDC motors, the amount of power provided to the coils rises and falls over time as the coils are energized. As a result, the motor does not produce a constant torque output. [0006] Various electric motor drive circuits are described in U.S. Patent No. 7,590,334

(filed Aug. 8, 2007); U.S. Patent No. 7,747,146 (filed Aug. 8, 2007), U.S. Patent No. 8,729,841 (filed Oct. 12, 201 1); U.S. Patent Application No. 13/595,430 (filed Aug. 27, 2012); U.S. Patent No. 9,088,233 (filed Dec. 18, 2012); U.S. Patent No. 9,291 ,876 (filed May 29, 2013); and U.S. Patent Application No. 15/967,841 (filed May 1, 2018), each of which is incorporated here by reference, and each of which is assigned to the assignee of this patent.

SUMMARY

[0007] In an embodiment, a system comprises a motor having a plurality of phase coils; a motor driver circuit having a plurality of switches coupled to the plurality of phase coils to drive current through the phase coils; and a motor controller circuit configured to provide a plurality of output control signals coupled to the plurality of switches. Each output control signal is associated with a respective phase coil to control the switches to drive current through the respective phase coil. A phase circuit is included to modify a first output control signal of the plurality of output control signals to produce a modified control signal that is out of phase with a second output control signal of the plurality of output control signals. A current measuring circuit is included to measure a current through at least one of the phase coils by measuring the current during a first time period when the first output control signal is active and measuring the current during a second time period when the modified control signal is active.

[0008] One or more of the following features may be included:

[0009] The current measuring circuit may be further configured to average the current measured during the first time period and the current measured during the second time period.

[0010] The plurality of phase coils may comprise three phase coils.

[001 1 ] The plurality of output control signals may comprise three output control signals.

[0012] The plurality of output control signals may be pulse-width modulated control signals. [0013 ] The first time period may correspond to a time period when the modified control signal is high and the second time period corresponds to a time period when the second output control signal is high.

[0014] The modified control signal and the second output control signal may be about 180 degrees out of phase.

[0015] The current measuring circuit may be configured to measure the current at a midpoint of the first time period and at a midpoint of the second time period.

[0016] A single shunt resistor may be coupled to the current measuring circuit.

[0017] The phase circuit may comprise a phase shift circuit that shifts the center of the first output control signal by a half-period.

[0018] In another embodiment, a circuit comprises a motor driver circuit having a plurality of switches configured to be coupled to a plurality of phase coils of a motor to drive current through the plurality of phase coils of the motor; and a motor controller circuit configured to provide a plurality of output control signals coupled to the plurality of switches. Each output control signal is associated with a respective phase coil to control the switches to drive current through the respective phase coil. A phase circuit is provided to modify a first output control signal of the plurality of output control signals to produce a modified control signal that is out of phase with a second output control signal of the plurality of output control signals. A current measuring circuit is provided to measure a current through at least one of the phase coils by: measuring the current during a first time period when the modified control signal is active; and measuring the current during a second time period when the second output control signal is active.

[0019] One or more of the following features may be included:

[0020] The current measuring circuit may be further configured to average the current measured during the first time period and the current measured during the second time period.

[0021 ] The plurality of phase coils may comprise three phase coils.

[0022] The plurality of output control signals may comprise three output control signals. [0023] The output control signals may be pulse-width modulated control signals.

[0024] The first time period may correspond to a time period when the modified control signal is high and the second time period corresponds to a time period when the second output control signal is high.

[0025] The modified control signal and the second output control signal may be about 180 degrees out of phase.

[0026] The current measuring circuit may be configured to measure the current at a midpoint of the first time period and at a midpoint of the second time period.

[0027] A single shunt resistor may be coupled to the current measuring circuit.

[0028] The phase circuit may comprise an inverter.

[0029] In another embodiment, a circuit comprises a motor driver circuit having a plurality of switches configured to be coupled to a plurality of phase coils of a motor to drive current through the plurality of phase coils and means for measuring an average current through at least one of the phase coils.

BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The foregoing features may be more fully understood from the following description of the drawings. The drawings aid in explaining and understanding the disclosed technology. Since it is often impractical or impossible to illustrate and describe every possible embodiment, the provided figures depict one or more exemplary embodiments. Accordingly, the figures are not intended to limit the scope of the invention. Like numbers in the figures denote like elements.

[0031 ] FIG. 1 is a circuit diagram of a motor control system.

[0032] FIG. 2 is a graph of motor current and phase signals.

[0033] FIG. 3 is a graph of actual motor current and sampled motor current.

[0034] FIG. 4 is a timing diagram of motor phase signals.

[0035] FIG. 5 is a graph of motor phase signals and motor current. [0036] FIG. 6 is a graph of actual motor current and sampled motor current.

DETAILED DESCRIPTION

[0037] FIG. 1 is a circuit diagram of a motor control system 100 for controlling motor 102.

Motor control system 100 includes a motor control circuit 104 coupled to motor driver circuit 106. Motor driver circuit 106 is coupled to motor 102 and provides power to motor 102. In

embodiments, motor control circuit 104 may be a non- sinusoidal brushless DC motor control circuit.

[0038] In the example shown in FIG. 1, motor 102 is a three-phase motor. Accordingly, motor driver circuit 106 has six field effect transistor (FET) switches coupled in pairs between power line 108 and return line 1 10. The nodes between the pairs (i.e. nodes A, B, and C) are coupled to the coils of motor 102. As the FET switches open and close, they provide power to motor 102 and provide a return path from motor 102. For example, if FET switch 1 12 and FET switch 1 14 are closed (e.g. in a conducting state) while the other FET switches are open (e.g. in a non-conducting state), current may flow from power line 108, through FET switch 1 12 to node A, from node A through the internal coils of motor 102 to node B, and from node B through FET switch 1 14 to ground.

[0039] For ease of illustration, only the gate of FET switches 1 12, 113, and 115 are shown coupled to motor control circuit 104. However, in embodiments, the gate of each FET switch within motor driver circuit 106 may be coupled to motor control circuit 104. Motor control circuit 104 may drive the gates of each FET switch with various signals (e.g. signals 104a, 104b, and 104c) to selectively open and close the FET switches. This effectively drives motor 102 by directing power to the coils of motor 102. One skilled in the art will recognize that, in other embodiments, the FET switches may be replaced by any device that can act as a switch such as a bipolar junction transistor (“BJT”), a relay, etc. [0040] In embodiments, motor control signals 104a, 104b, and 104c may be pulse width modulated (“PWM”) signals. As the PWM on-time increases from zero to one hundred percent, the amount of current supplied to the motor increases proportionally from zero to its maximum value. Thus, motor control circuit 104 can control the amount of current supplied to motor 102 by altering the pulse width of signals 104a-c.

[0041 ] In embodiments, motor control circuit 104 may include a phase circuit 105 that modifies signal 104a so that signal 104a (and thus phase A) is 180 degrees out of phase with signal 104b (i.e. phase B). The timing and phase of phase signals 104a-104c will be discussed in greater detail below.

[0042] Motor control system 100 may include sensors to measure the current supplied to (or returning from) motor 102. To measure the current flowing through motor 102, motor control system 100 may include a shunt resistor 120 in the current path. The inputs of differential amplifier 122 may be coupled across shunt resistor 120. Thus, amplified signal 122a (i.e. the output of differential amplifier 122) may represent the voltage across shunt resistor 120. ADC 124 may convert amplified signal 122a into digital signal 124a, which may also represent the voltage across shunt resistor 120. Because the resistance of shunt resistor 120 is known, motor control circuit 104 may use the voltage across shunt resistor 120 to measure the current flowing through motor 102. Thus, digital signal 124a may also represent a measured current.

[0043] In embodiments, the shunt resistor 120 may have a very small resistance so that it does not greatly impede the current flow and also does not dissipate a large amount of power. A typical value for shunt resistor 120 may be 0.1 Ohms or less. Also, although shunt resistor 120 is shown coupled to return line 1 10 to measure the current returning from motor 102 (lout), shunt resistor 120 could be coupled to power line 108 to measure the current flowing into motor 102 (Iin).

[0044] In embodiments, signal 124a may be coupled to and received by motor control circuit 104, which may allow motor control circuit 104 to measure and calculate the current through motor 102. For example, during operation, motor control circuit 104 may periodically sample signal 124a at various times. Motor control circuit 104 may use the sampled value directly or may perform mathematical operations on the samples (for example, computing an average of the samples) to determine the magnitude of current flowing through motor 102. Motor control circuit 104 may then use the measured current as a parameter for controlling motor 102.

[0045] Although motor 102 may have multiple phases, a single shunt resistor 120 may be used to measure the current. Because shunt resistor is located on return path 108 (or alternatively on power line 108), the current through shunt resistor 120 will reflect the current through the active motor phase. In order to sense the current associated with each of the motor phases A, B, and C (the summation of which equals zero), it is only necessary to sample the current during two of the three motor phases from which the third motor phase current can be calculated. In other words, the current through the shunt resistor 120 can be sampled during phase A to detect the phase A current, and then can also be sampled during phase B to detect the phase B current, and then the phase C motor current can be calculated from the detected phase A and phase B currents based on the equation IA + IB + IC = 0.

[0046] Referring to FIG. 2, graph 200 illustrates a potential error in calculating average motor phase current when a motor is driven by a motor control circuit of the prior art. Waveform 202 represents the real current for one phase of the motor. Waveform 204 represents the average phase A current through the motor. Waveforms 206, 208, and 210 represent control signals that activate each phase of the motor.

[0047] Waveforms 206, 208, and 210 illustrate traditional two-phase modulation for controlling a motor. In this type of modulation, during each PWM cycle, two of the three phases toggle and the center of the high pulse of each active phase is aligned (i.e., at time 216). In the illustrated example, the phase A motor control signal 206 transitions from low to high at time 212, then the phase B motor control signal 208 transitions high at time 214 while phase A signal 206 is still high. Sampling of the phase A current occurs at point SI, midway between time 212 and 214, and again at point S2 after time 214.

[0048] As shown by waveform 202, the phase current through motor 102 has ripple. In embodiments, the ripple may have a frequency equal to the PWM frequency for the phase and an amplitude related to the inductance of the motor winding. Sampling the current randomly over time may introduce an error that may be as large as the amplitude of the ripple. Averaging samples S I and S2 within time periods T1 and T2 and using S 1 and S2 to compute an average current does not guarantee that the calculated average current will be accurate (i.e., will reflect the average current 204) because SI and S2 are not sampled at times when the average current 204 is crossing the real current 202.

[0049] Referring to FIG. 3, graph 300 includes waveform 302 representing the real current through a motor phase and waveform 304 representing the sampled current in a motor control circuit of the prior art. The vertical axis represents arbitrary units of current and the horizontal axis represents arbitrary units of time. As shown, the sampled current 304 is not centered with respect to the ripple of the real current 302, indicating that the sampled current contains an error and does not accurately indicate the average motor current.

[0050] Referring to FIG. 4, graph 400 is a timing diagram illustrating two-phase modulation for controlling the motor 102 according to the disclosure. The vertical axis represents voltage and the horizontal axis represents time. Waveform 400 represents the A phase motor control signal, waveform 402 represents the B phase motor control signal, and waveform 404 represents the C phase motor control signal (which signals may be the same as or similar to motor control signals 104a, 104b, 104c, respectively, of FIG. 1).

[0051 ] According to the disclosure, motor control circuit 104 (e.g., phase shift circuit 105) may modify the A phase waveform 400 by causing the A phase waveform 400 to be phase shifted by 180 degrees. In other words, the phase A and phase B control signals 400, 402 maybe inverse center aligned such that the center of phase A high pulse 412 aligns with the center of phase B low pulse 410. It will be appreciated that inverse center alignment of the motor control signals can be achieved by phase shifting either of the phase A signal 400 or the phase B signal 402, as long as the result is that the signals 400, 402 are 180 degrees phase shifted with respect to each other so that the center of phase A high pulse 412 aligns with the center of phase B low pulse 410.

[0052] In general, at time 420, waveform 400 (the A phase) may be low and waveform 402

(the B phase) may be high. At time 422, waveform 400 (the A phase) may be high and waveform 402 (the B phase) may be low. More specifically, the high portion 406 of waveform 402 may be centered within the low portion 408 of waveform 400, and the high portion 412 of waveform 400 may be centered in the low portion 410 of waveform 402. The cycle continues at time 424 (where the high portion of waveform 402 is again centered in the low portion of waveform 400) and beyond. Thus, the center of phase A high pulse aligns with the center of phase B low pulse, and the center of phase B high pulse aligns with the center of phase A low pulse, thereby achieving inverse center alignment of the phase A and phase B motor control signals 400, 402, respectively.

[0053] Referring to FIG. 5, graph 500 is a timing diagram of the phases of motor control system 100 and the current through one phase of motor 102. The horizontal axis represents time. The vertical axis of waveforms 500, 502, and 504 represents voltage. The vertical axis of waveform 505 represents current. For example, waveform 505 may represent the current through shunt resistor 120 (see FIG. 1).

[0054] Waveform 501 represents the A phase motor control signal, waveform 502 represents the B phase motor control signal, and waveform 504 represents the C phase motor control signal (which signals may be the same as or similar to motor control signals 104a, 104b, 104c, respectively, of FIG. 1). In this example, like the example in FIG. 4, phase shift circuit 105 of motor control circuit 104 may cause the A phase waveform 501 to be phase shifted by 180 degrees. In other words, at time SI , waveform 501 (the A phase) may be low and waveform 502 (the B phase) may be high. At time S2, waveform 501 (the A phase) may be high and waveform 502 (the B phase) may be low. [0055] Also, the high portion 506 of waveform 502 may be centered within the low portion

508 of waveform 501, and the high portion 512 of waveform 501 may be centered in the low portion 510 of waveform 502. Thus, the center of phase A high pulse aligns with the center of phase B low pulse, and the center of phase B high pulse aligns with the center of phase A low pulse.

[0056] The ripple of current waveform 505 may cause errors when sampling the current through motor 102. For example, the average current is shown by line 507. Thus, if sampling were to occur at the beginning of time T1 and the beginning of time T3, for example, the calculated average current may be higher than the actual average current 507. However, the current at SI is about midway through the falling edge of the ripple and the current at S2 is about midway through the rising edge of the ripple. Thus, in embodiments, motor control circuit 104 may sample the output (or input) current of motor 102 at times S I and S2 to minimize or eliminate error introduced into the calculation of motor current by the ripple of current waveform 505.

[0057] Generally, current waveform 505 will fall while phase A is not active during time periods Tl , T2, and T3 (e.g. during low portion 508 of waveform 501) and rise while phase A is active during time period T4 (e.g. during high portion 512 of waveform 501). Because high portion 506 is centered within low portion 508, and because sample S I is centered within high portion 506, sample SI may also be centered within low portion 508. As a result, sample SI may represent a center point of the falling portion of current waveform 505. Also, because sample S2 is centered within high portion 512, sample S2 may represent a center point of the rising portion of current waveform 505.

[0058] Additionally, the phase output patterns are the same in time period Tl and T3. In other words, during Tl and T3, phase A waveform 501 is low, phase B waveform 502 is low, and phase C waveform 504 is low. Therefore, if the motor is operating at a steady state, the phase current will be the same in periods Tl and T3. In other words, 11 -12 = 13-14. Also, the following formula applies:

where II , 12, 13, 14 represent the phase current levels at the beginning of periods Tl, T2, T3, T4, respectively and S 1A and S2A represent the actual phase A current at times S I and S2, respectively. As is apparent, sampling A phase current at S2 will have no error. In some embodiments, a processor circuit may produce an average of samples SI , S2, S3, etc. The average value may also represent the average current through motor 102. Thus, sampling S 1 and S2 in the center of high portion 506 and high portion 512, respectively, may reduce or eliminate error caused by current ripple of waveform 505 when calculating the average current through motor 102.

[0059] In embodiments, the ripple of waveform 505 and the sampling rate for sampling current may have a frequency that is greater than that of the average current 507 through motor 102. In embodiments, the sampling rate may be twice the Nyquist frequency (or greater) than that of waveform 505. Also, in embodiments, the frequency of waveform 505 may be twice the Nyquist frequency (or greater) than that of waveform 507. As a corollary, the PWM frequency of waveforms 501 and 502 may be greater than the motor frequency.

[0060] Referring to FIG. 6, graph 600 includes waveform 602 representing the real current through a motor phase and waveform 604 representing the sampled current by motor control circuit 104. The vertical axis represents arbitrary units of current and the horizontal axis represents arbitrary units of time. As shown, the sampled current 604 is centered with respect to the ripple of the real current 602, indicating that the sampled current contains no error or a minimal error (i.e., represents the actual average of the motor current).

[0061 ] The examples above illustrate operation of system 100 when using two-phase modulation. However, a person of ordinary skill in the art will recognize that the same systems and techniques maybe used to measure current if system 100 is using three-phase modulation to control motor 102. Referring to FIG. 5, if three phase modulation is used, waveform 504 will have a rising edge sometime after time 514. However, waveforms 501 and 502 may remain unchanged (or similar) under three-phase modulation and, therefore, sampling at S 1 and S2 may still reduce error caused by the ripple of waveform 505.

[0062] Various embodiments are described in this patent. However, the scope of the patent should not be limited to the described embodiments, but rather should be limited only by the spirit and scope of the following claims. All references cited in this patent are incorporated by reference in their entirety.