Motor controller with accurate current measurement function

文档序号:74993 发布日期:2021-10-01 浏览:33次 中文

阅读说明:本技术 具有精确电流测量功能的电机控制器 (Motor controller with accurate current measurement function ) 是由 吕一松 于 2020-03-30 设计创作,主要内容包括:一种用于在电流采样期间减小或消除电流纹波误差的电机控制系统包括:具有多个相位线圈的电机、具有耦合至所述多个相位线圈以驱动电流通过所述相位线圈的多个开关的电机驱动器电路、以及被配置为提供耦合至所述多个开关的多个输出控制信号的电机控制器电路。相位电路修改第一输出控制信号以产生与第二输出控制信号异相的修改控制信号。包括电流测量电路以通过在第一输出控制信号有效时的第一时间段期间测量电流并在修改控制信号有效时的第二时间段期间测量电流来测量通过电机的电流。(A motor control system for reducing or eliminating current ripple error during current sampling comprising: the motor controller circuit includes 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. The phase circuit modifies the first output control signal to produce a modified control signal that is out of phase with the second output control signal. A current measurement circuit is included to measure the 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.)

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 one of the plurality of output control signals to generate a modified control signal that is out of phase with a second one of the plurality of output control signals; and

a current measurement circuit that measures current through at least one phase coil by:

measuring a 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 measurement 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 modulation control signals.

6. The system of claim 5, wherein the first time period corresponds to a time period when the modification 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 modification control signal and the second output control signal are approximately 180 degrees out of phase.

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

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

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

11. 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 one of the plurality of output control signals to generate a modified control signal that is out of phase with a second one of the plurality of output control signals; and

a current measurement circuit that measures current through at least one phase coil by:

measuring a 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 11, wherein the current measurement 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 11, 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 11, wherein the output control signal is a pulse width modulation control signal.

16. The circuit of claim 15, wherein the first time period corresponds to a time period when the modification 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 11, wherein the modification control signal and the second output control signal are approximately 180 degrees out of phase.

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

19. The circuit of claim 11, further comprising a single shunt resistor coupled to the current measurement circuit.

20. The circuit of claim 11, 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 a current through the plurality of phase coils, wherein the current includes a ripple; and

means for making a first measurement of current at a mid-point of a rising edge of the ripple and a second measurement of current at a mid-point of a falling edge of the ripple.

Technical Field

The present disclosure relates to motor controllers, and more particularly, to motor controllers that measure current flowing through a motor.

Background

In many applications, circuits are required to precisely control, drive and regulate brushless direct current ("BLDC") motors. These circuits typically generate pulse width modulated ("PWM") drive signals that are used to control the power of the motor.

The BLDC motor may include a plurality of coils. These coils, when energized, rotate the motor. However, in order for the motor to rotate continuously, the 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 sequence, energize the coils in forward and backward directions at different times, and so forth. The period of time during which the coil is energized is commonly referred to as the so-called "phase" of the motor. The coil (or coils) energized during a phase may be referred to as a phase coil.

The sequence and duration (timing) of coil energization depends on the design of the BLDC motor. For example, a BLDC motor may have three coils that must be energized sequentially (i.e., in a cyclic manner) 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 are energized. As the motor turns, the phase will change and the motor driver will energize the next coil or coils to keep the motor rotating.

When each phase is energized, it physically drives the rotor of the motor. The amount of power supplied to the coils may be proportional to the amount of torque produced by the motor. In many BLDC motors, the amount of power supplied to the coil increases and decreases over time as the coil is energized. Therefore, the motor does not produce a constant torque output.

In united states patent No. 7,590,334 (filed 8/2007); united states patent No. 7,747,146 (8/2007), united states patent No. 8,729,841 (10/12/2011); united states patent application No. 13/595,430 (filed on 8/27/2012); 9,088,233 (filed 12/18/2012); U.S. patent No. 9,291,876 (filed 5/29 in 2013); and 15/967,841 (filed 5/1/2018), each of which is incorporated herein by reference and each of which is assigned to the assignee of the present patent.

Disclosure of Invention

In one 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 for controlling the switch to drive current through the respective phase coil. A phase circuit is included to modify a first one of the plurality of output control signals to produce a modified control signal that is out of phase with a second one of the plurality of output control signals. A current measurement circuit is included to measure current through the at least one phase coil by measuring current during a first time period when the first output control signal is active (active) and measuring current during a second time period when the modification control signal is active.

One or more of the following features may be included:

the current measurement circuit may be further configured to average the current measured during the first time period and the current measured during the second time period.

The plurality of phase coils may include three phase coils.

The plurality of output control signals may include three output control signals.

The plurality of output control signals may be pulse width modulation control signals.

The first time period may correspond to a time period when the modification control signal is high, and the second time period corresponds to a time period when the second output control signal is high.

The modification control signal and the second output control signal may be approximately 180 degrees out of phase.

The current measurement circuit may be configured to measure the current at a midpoint of the first time period and a midpoint of the second time period.

A single shunt resistor may be coupled to the current measurement circuit.

The phase circuit may include a phase shift circuit that shifts the center of the first output control signal by half a cycle (time period).

In another embodiment, a circuit includes: 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 a switch to drive current through the respective phase coil. A phase circuit is provided to modify a first one of the plurality of output control signals to produce a modified control signal that is out of phase with a second one of the plurality of output control signals. Providing a current measurement circuit to measure a current through at least one phase coil by: measuring a 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.

One or more of the following features may be included:

the current measurement circuit may be further configured to average the current measured during the first time period and the current measured during the second time period.

The plurality of phase coils may include three phase coils.

The plurality of output control signals may include three output control signals.

The output control signal may be a pulse width modulation control signal.

The first time period may correspond to a time period when the modification control signal is high, and the second time period corresponds to a time period when the second output control signal is high.

The modification control signal and the second output control signal may be approximately 180 degrees out of phase.

The current measurement circuit may be configured to measure the current at a midpoint of the first time period and a midpoint of the second time period.

A single shunt resistor may be coupled to the current measurement circuit.

The phase circuit may include an inverter.

In another embodiment, a circuit includes: 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 the average current through the at least one phase coil.

Drawings

The foregoing features will be more fully understood from the following description of the drawings. The accompanying drawings are included to provide a further understanding of the disclosed technology. The drawings provided depict one or more exemplary embodiments, since it is often impractical, or impossible, to illustrate and describe every possible embodiment. Accordingly, the drawings are not intended to limit the scope of the present invention. Like numbers refer to like elements throughout.

Fig. 1 is a circuit diagram of a motor control system.

Fig. 2 is a graph of motor current and phase signals.

Fig. 3 is a graph of actual motor current and sampled motor current.

Fig. 4 is a timing diagram of the motor phase signals.

Fig. 5 is a graph of a motor phase signal and a motor current.

Fig. 6 is a graph of actual motor current and sampled motor current.

Detailed Description

Fig. 1 is a circuit diagram of a motor control system 100 for controlling a motor 102. The motor control system 100 includes a motor control circuit 104 coupled to a motor driver circuit 106. The motor driver circuit 106 is coupled to the motor 102 and provides power (power) to the motor 102. In an embodiment, the motor control circuit 104 may be a non-sinusoidal brushless Direct Current (DC) motor control circuit.

In the example shown in fig. 1, the motor 102 is a three-phase motor. Thus, the motor driver circuit 106 has six Field Effect Transistor (FET) switches coupled in pairs between a power line (power line) 108 and a return line 110. The nodes between the pairs of fet switches (i.e., nodes A, B and C) are coupled to the coils of the motor 102. When the FET switches are open and closed, they provide power to the motor 102 and provide a return path from the motor 102. For example, if FET switch 112 and FET switch 114 are closed (e.g., in a conductive state) and the other FET switch is open (e.g., in a non-conductive state), current may flow from power line 108 through FET switch 112 to node a, from node a through the internal coils of motor 102 to node B, and from node B through FET switch 114 to ground.

For ease of illustration, only the gates of FET switches 112, 113, and 115 coupled to motor control circuit 104 are shown. However, in an embodiment, the gate of each FET switch within the motor driver circuit 106 may be coupled to the motor control circuit 104. The motor control circuit 104 may drive the gate of each FET switch with various signals (e.g., signals 104a, 104b, and 104c) to selectively open and close the FET switch. This effectively drives the motor 102 by directing electrical power to the coils of the motor 102. Those skilled in the art will recognize that in other embodiments, the FET switch may be replaced by any device that can act as a switch (e.g., a bipolar junction transistor ("BJT"), a relay, etc.).

In an embodiment, the motor control signals 104a, 104b, and 104c may be pulse width modulation ("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, the motor control circuit 104 may control the amount of current supplied to the motor 102 by varying the pulse width of the signals 104 a-c.

In an embodiment, the motor control circuit 104 may include a phase circuit 105 that modifies the signal 104a such that the signal 104a (and thus phase a) is 180 degrees out of phase with the signal 104B (i.e., phase B). The timing and phase of phase signals 104a-104c will be discussed in more detail below.

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

In an embodiment, shunt resistor 120 may have a very small resistance, such that it does not greatly impede current flow and does not dissipate significant amounts of power. Typical values for shunt resistor 120 may be 0.1 ohms or less. Further, while the shunt resistor 120 is shown coupled to the return line 110 to measure the current (Iout) returning from the motor 102, the shunt resistor 120 may be coupled to the power line 108 to measure the current (Iin) flowing into the motor 102.

In an embodiment, the signal 124a may be coupled to and received by the motor control circuit 104, which may allow the motor control circuit 104 to measure and calculate the current through the motor 102. For example, during operation, the motor control circuit 104 may periodically sample the signal 124a at different times. The motor control circuit 104 may directly use the sampled values or may perform a mathematical operation on the samples (e.g., calculate an average of the samples) to determine the magnitude of the current flowing through the motor 102. The motor control circuit 104 may then use the measured current as a parameter to control the motor 102.

Although the motor 102 may have multiple phases, a single shunt resistor 120 may be used to measure the current. Because the shunt resistor is located on the return path 108 (or alternatively on the power line 108), the current through the shunt resistor 120 will reflect the current through the active (energized, active) motor phase. To sense the current associated with each of the motor phases a, B and C (which sum to zero), the current need only be sampled during two of the three motor phases, from which a third motor phase current can be calculated. In other words, the current through the shunt resistor 120 may be sampled during the a-phase to detect the a-phase current, and then the current through the shunt resistor 120 may also be sampled during the B-phase to detect the B-phase current, and then the C-phase motor current may be calculated from the detected a-phase current and B-phase current according to the equation IA + IB + IC of 0.

Referring to fig. 2, a graph 200 illustrates a potential error in calculating an average motor phase current when the motor is driven by a prior art motor control circuit. Waveform 202 represents the actual current for the motor phase. Waveform 204 represents the average a-phase current through the motor. Waveforms 206, 208, and 210 represent control signals that activate each phase of the motor.

Waveforms 206, 208, and 210 illustrate conventional two-phase modulation for controlling a motor. In this type of modulation, two of the three phases are switched in each PWM cycle, and the centers of the high pulses of each active phase are 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 to high at time 214, while the phase a signal 206 is still high. The sampling of the a-phase current occurs at point S1 between times 212 and 214, and again at point S2 after time 214.

As shown by waveform 202, the phase current through the motor 102 has a ripple. In an embodiment, the ripple may have a frequency equal to the PWM frequency of the phase and a magnitude related to the inductance of the motor windings. Randomly sampling the current over time may introduce errors that may be as large as the ripple amplitude. Averaging the samples S1 and S2 over the time periods T1 and T2 and calculating the average current using S1 and S2 does not guarantee that the calculated average current will be accurate (i.e., will reflect the average current 204) because S1 and S2 are not sampled at the time when the average current 204 intersects the actual current 202.

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

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

According to the present disclosure, the motor control circuit 104 (e.g., the phase shift circuit 105) may modify the a-phase waveform 400 by phase shifting the a-phase waveform 400 by 180 degrees. In other words, the a-phase and B-phase control signals 400, 402 may be center-aligned in opposition such that the center of the a-phase high pulse 412 is aligned with the center of the B-phase low pulse 410. It should be appreciated that the reverse center alignment of the motor control signals may be achieved by phase shifting either the a-phase signal 400 or the B-phase signal 402, so long as the signals 400, 402 are shifted 180 degrees relative to each other so that the center of the a-phase high pulse 412 is aligned with the center of the B-phase low pulse 410.

In general, at time 420, waveform 400 (phase a) may be low and waveform 402 (phase B) may be high. At time 422, waveform 400 (phase a) may be high and waveform 402 (phase B) may be low. More specifically, a high portion 406 of waveform 402 may be centered within a low portion 408 of waveform 400, and a high portion 412 of waveform 400 may be centered in a low portion 410 of waveform 402. The loop continues at time 424 (in which the high portion of waveform 402 is again centered in the low portion of waveform 400) and continues after time 424. Thus, the center of the phase a high pulse is aligned with the center of the phase B low pulse, and the center of the phase B high pulse is aligned with the center of the phase a low pulse, thereby achieving reverse center alignment of the phase a and phase B motor control signals 400, 402, respectively.

Referring to fig. 5, a graph 500 is a timing diagram of the current through each phase of the motor control system 100 and one phase of the 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).

Waveform 501 represents a-phase motor control signal, waveform 502 represents a B-phase motor control signal, and waveform 504 represents a C-phase motor control signal (which may be the same as or similar to motor control signals 104a, 104B, 104C, respectively, of fig. 1). In this example, as in the example of fig. 4, the phase shift circuit 105 of the motor control circuit 104 may shift the a-phase waveform 501 by 180 degrees. In other words, at time S1, waveform 501 (a-phase) may be low and waveform 502 (B-phase) may be high. At time S2, waveform 501 (phase a) may be high and waveform 502 (phase B) may be low.

Further, high portion 506 of waveform 502 may be centered within low portion 508 of waveform 501, and high portion 512 of waveform 501 may be centered within low portion 510 of waveform 502. Thus, the center of the phase a high pulse is aligned with the center of the phase B low pulse, and the center of the phase B high pulse is aligned with the center of the phase a low pulse.

When sampling the current through the motor 102, the ripple of the current waveform 505 may cause errors. For example, the average current is shown by line 507. Thus, if the sampling occurs at, for example, the beginning of time Tl and the beginning of time T3, the calculated average current may be higher than the actual average current 507. However, the current at S1 is approximately in the middle of the falling edge of the ripple, and the current at S2 is approximately in the middle of the rising edge of the ripple. Thus, in an embodiment, the motor control circuit 104 may sample the output (or input) current of the motor 102 at times S1 and S2 in order to minimize or eliminate the error introduced into the motor current calculation by the ripple of the current waveform 505.

Generally, the current waveform 505 will fall when phase a is inactive during time periods Tl, T2, and T3 (e.g., during the low portion 508 of the waveform 501), and rise when phase a is active during time period T4 (e.g., during the high portion 512 of the waveform 501). Because the high portion 506 is centered within the low portion 508, and because the sample S1 is centered within the high portion 506, the sample S1 may also be centered within the low portion 508. Thus, sample S1 may represent the center point of the falling portion of current waveform 505. Additionally, because the sample S2 is centered within the high portion 512, the sample S2 may represent the center point of the rising portion of the current waveform 505.

Further, the phase output pattern is the same in the periods Tl and T3. In other words, during T1 and T3, the a-phase waveform 501 is low, the B-phase waveform 502 is low, and the C-phase waveform 504 is low. Therefore, if the motor is operating in a steady state, the phase currents will be the same in the time periods T1 and T3. In other words, I1-I2 ═ I3-I4. Furthermore, the following formula applies:

where I1, I2, I3, I4 represent phase current levels at the beginning of time periods T1, T2, T3, T4, respectively, and S1A and S2A represent actual a-phase currents at times S1 and S2, respectively. It is clear that sampling phase a current at S2 will have no error. In some embodiments, the processor circuit may generate an average of the samples S1, S2, S3, and so on. The average value may also represent the average current through the motor 102. Thus, sampling S1 and S2 at the center of high portion 506 and high portion 512, respectively, may reduce or eliminate errors caused by current ripple of waveform 505 when calculating the average current through motor 102.

In an embodiment, the ripple of waveform 505 and the sampling rate at which the current is sampled may be at a frequency greater than the frequency of the average current 507 through motor 102. In an embodiment, the sampling rate may be twice the Nyquist frequency (or greater) than the frequency of waveform 505. Further, in an embodiment, the frequency of waveform 505 may be twice the nyquist frequency (or greater) than the frequency of waveform 507. As a corollary, the PWM frequency of waveforms 501 and 502 may be greater than the motor frequency.

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

The above example illustrates the operation of the system 100 when using bi-phase modulation. However, one of ordinary skill in the art will recognize that if the system 100 uses three-phase modulation to control the motor 102, the same systems and techniques may be used to measure the current. Referring to fig. 5, if three-phase modulation is used, waveform 504 will have a rising edge at some time after time 514. However, under three-phase modulation, waveforms 501 and 502 may remain unchanged (or similar), and thus, sampling at S1 and S2 may still reduce errors caused by ripple of waveform 505.

Various embodiments are described in this patent. The scope of this patent, however, should not be limited to the described embodiments, but should be limited only by the spirit and scope of the appended claims. All references cited in this patent are incorporated by reference in their entirety.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:带有虚拟同步发电机和直流链路控制的风力涡轮机

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!