Brief Description of the Drawings
Additional objects and features of the invention will be more readily apparent from the following detailed description and appended claims when taken in conjunction with the drawings, in which:
FIG. 1 illustrates the total current pulse structure for a position detection system for a three phase brushless DC motor;
FIG. 2 illustrates flux distribution versus torque versus the sign of the resulting current difference in a motor being energized to determine motor position. See "Position Detection for a Brushless DC Motor," U.S. patent application Ser. No. 413,311. The top line, Line A, represents the different excitation flux in the phases, .PSI. PM1, .PSI. PM2, .PSI. PM3, versus the motor rotor position. The second line, Line B, represents the different phase torques, T1, T2, T3, and thereby illustrates the static torque which can be created. The third line, line C, shows the flux differences, the first difference .PSI. PM1-.PSI. PM2, the second difference .PSI. PM2-.PSI. PM3, the third difference .PSI.PM3-.PSI. PM1. The fourth line, Line D, represents the current difference .DELTA.i.sub.1. The fifth line, Line E, represents the current difference sign .DELTA.i.sub.2. The sixth line, Line F, represents the current difference sign .DELTA.i.sub.3 ;
FIG. 3 illustrates the total current into a three phase brushless DC motor during the first and second sequences of operation of the present invention;
FIG. 4 illustrates the total current into a three phase brushless DC motor during the K th and (K+1) sequences, during which the rotor is accelerating;
FIG. 5 illustrates the total current into a three phase brushless DC motor during the last sequence and subsequent synchronization on the back E.M.F. acceleration mode;
FIGS. 6A and 6B depicts a flow chart describing the procedure of the closed-loop control system of the preferred embodiment;
FIG. 7 is a block diagram of the circuitry used to detect rotor position in the present invention; and
FIG. 8 is a schematic diagram of the phase energization circuitry of the present invention.
Detailed Description of a Preferred Embodiment
FIG. 1 represents the total current pulse structure flowing into an exemplary three phase brushless DC motor as a result of the present invention. The six short current pulses used to determine the rotor position, as described in U.S. patent application Ser. No. 413,311 "Position Detection for a Brushless DC Motor", are clearly shown during time t.sub.measure. A long duration current pulse, also depicted in FIG. 1, is then applied to a select phase combination during time t.sub.on. The selection of the phase combination to energize is based on the current rotor position.
To understand the motor start-up and acceleration process, two cases must be considered:
Case 1: Based on Newton's equations, the sustained torque produces a motion of the motor rotor: T.sub.1 +T.sub.2 +T.sub.3 -T.sub.LOAD .noteq.0.
Case 2: Based on Newton's equations, the sustained torque does not produce a motion of the motor rotor: T.sub.1 +T.sub.2 +T.sub.3 -T.sub.LOAD =0.
Where the torque components produced by the motor are: ##EQU1## Continuing with Newton's equations: ##EQU2## Where: T.sub.1 =torque produced by phase 1
T.sub.2 =torque produced by phase 2
T.sub.3 =torque produced by phase 3
T.sub.LOAD =total load torque (viscous torque, friction torque, load torque, etc.)
J=total inertia (motor+load)
.OMEGA.=motor rotor speed
.varies.=motor rotor position with: .varies.=electrical=p.multidot..varies. geometrical
p=number of pairs of permanent magnet poles
.PSI.PM1=excitation flux in phase 1
.PSI.PM2=excitation flux in phase 2
.PSI.PM3=excitation flux in phase 3
i.sub.1 =current in phase 1
i.sub.2 =current in phase 2
i.sub.3 =current in phase 3
t=time
The application of case 1 or case 2 depends on the long duration current application time t.sub.on. The time t.sub.on is the time during which a sustained torque is produced. Defining a sequence as the time t.sub.measure +t.sub.on, then the average torque produced during one sequence of position detection and rotor acceleration can be expressed as follows: ##EQU3## If t.sub.on is of fixed duration, then several problems may occur.
t.sub.on is too short
If t.sub.on is too short, the sequence torque, T.sub.sequence, produced is less than the load torque, T.sub.LOAD. Consequently, if the motor is at a standstill, it could not start, and conversely, if the motor is operating at a very low speed, it could not accelerate.
T.sub.on is too long
If t.sub.on is too long, a significant sustained torque is produced because T.sub.sequence is much larger than T.sub.LOAD, and consequently an acceleration of the motor can be obtained. However, if t.sub.on is excessively long, the motor will rotate, and then oscillate around a stable position defined by the phase combination energized during t.sub.on. In other words, the motor accelerates, then as t.sub.on is too long, the motor (which is expecting the next phase switching) begins to oscillate around a stable position. In most applications, an oscillation of the rotor is not acceptable.
The present invention avoids this major disadvantage by implementing a phase energization duration t.sub.on as a function of the motor speed. An adaptive t.sub.on optimizes the rotor control by effectively controlling sequence torque providing smooth acceleration from standstill. However, at start and low speed, no motor speed information is available without the use of sensors to base the t.sub.on adaptation upon.
The present invention defines a procedure which determines if the motor can be accelerated without the use of sensors. If acceleration is possible, t.sub.on for the next sequence is decreased. On the other hand, if the motor cannot be accelerated, i.e., the rotor is in the same location as previously determined, then t.sub.on is temporarily maintained at its present duration.
The dynamic behavior of an exemplary three-phase motor can be understood with the aid of FIG. 2 and Table 1. FIG. 2 depicts the flux and torque distributions for each phase in the motor, graphs A, B, and C. The sign of the difference of the applied short current pulses are presented in graphs D, E, and F of FIG. 2. Additionally, Table 1 tabulates the relationship between the sign of the current differences and the rotor location measured in electrical degrees. The location provides the state function that describes the phases to energize to accelerate the rotor in the proper direction.
Assuming, for example, that the motor is at standstill inside the boundaries 30-90 electrical degrees. The motor position is detected by applying the short current pulses of opposite polarity to all of the phases, six pulses in all. From the amplitudes of the current pulses, the differences .DELTA.i.sub.1, .DELTA.i.sub.2, .DELTA.i.sub.3 are determined. The sign of the measured current differences define the state function of i.sub.1, i.sub.2, i.sub.3 from Table 1. This phase combination produces a sustained torque over the duration of t.sub.on, and the motor starts to move in the correct direction. FIG. 3 represents the first two sequences. Once the first sequence is complete, a new measure of the motor position is processed during the t.sub.measure time. At this point, two cases must be considered.
Case 1
If the new measurement of the rotor position reveals the same sign distribution of .DELTA.i.sub.1, .DELTA.i.sub.2, .DELTA.i.sub.3 as the previous determination, then the motor is still inside the same boundaries, corresponding in this example to 30-90 electrical degrees. This means that the motor cannot be accelerated, and consequently, t.sub.on is not decreased. The same phase combination will be energized using the same duration t.sub.on in an effort to move the rotor into the next boundary position.
Case 2
If the new measurement of the rotor position reveals a different sign distribution of .DELTA.i.sub.1, .DELTA.i.sub.2, .DELTA.i.sub.3 as compared to the previous determination, then the motor rotor has moved and is inside new boundaries, for example 90-150 electrical degrees. A new phase combination must be energized (according to the above state table, Table 1) during the succeeding time t.sub.on to achieve constant motion. As the motor accelerates, the duration of t.sub.on is decreased incremental be .DELTA.T. FIG. 4 represents the total motor current during acceleration. The detection of the motor position during sequence K+1 is different from the detection of the motor position during sequence K. During acceleration, the time t.sub.on (K+1) satisfies:
By comparing the actual motor position to the previous one, an algorithm can be defined in order to determine the appropriate duration of t.sub.on. This algorithm is summarized as follows:
If: New motor position determination=old motor position determination
Then: t.sub.on (new)=t.sub.on (old) (No change)
If: New motor position determination.noteq.old motor position determination
Then: t.sub.on (new)=t.sub.on (old)-.DELTA.T (motor accelerates)
When t.sub.on reaches a minimum value set to t.sub.on min, the motor is running at a medium speed considered fast enough to enable the well known back EMF acceleration control system to function. FIG. 5 shows the last current pulse sequence and the synchronization of the back EMF acceleration system. In summary, the sequence of events of the present invention during acceleration are:
1) t.sub.on =t.sub.on max First sequence
2) .DELTA.t=decrement of t.sub.on after each sequence
3) t.sub.on =t.sub.on min Last sequence
4) Back EMF acceleration control system continues acceleration.
However, in some cases of high motor friction, it is possible that the time t.sub.on will not reach t.sub.on min. As a security feature, a counter will count the number of sequences effectuated. If the counter reaches a predetermined value, the back EMF acceleration control system is activated in an attempt to synchronize on the back EMF signal even though its amplitude will be very small due to the motor's slow speed.
The major advantage of this approach is that no outside device is necessary to measure the speed. A complete sensorless approach is used. Furthermore, in the case of large motor friction which is dependant upon motor speed (for example, the friction due to the read/write heads on a hard disc), the present invention will adapt to the friction variation.
FIGS. 6A and 6B depict, in flow chart form, the complete algorithm of the present invention which can be easily implemented in a microprocessor.
Brief Description of Procedure of Figs. 6a and 6b
At Step 1, the counter STARTER is initialized to zero and the time t.sub.on is initialized to the maximum value, t.sub.on max. Step 2 disables the timer interrupt (when procedure is implemented in a microprocessor), Step 2 is also the address at which the program will start when a timer interrupt 4 occurs. Step 3 increments the counter STARTER after each sequence is processed. Step 5 is a test on the counter STARTER. If the number of sequences is greater than STARTER,max, a pre-determined value, the next step will be step 8, corresponding to the tentative decision to synchronize the acceleration process on the back EMF acceleration mode. If the sequence number is smaller than STARTER,max, then the following step is Step 6.
Step 6 is a test which compares the actual time of the phase combination duration t.sub.on with the minimum acceptable value t.sub.on min, which has been pre-determined. If t.sub.on is equal to t.sub.on min, the next step will be Step 8, corresponding to the tentative decision to synchronize the acceleration process on the back EMF acceleration mode. If t.sub.on is larger than t.sub.on min, indicating that the motor has not reached a medium speed, a complete new position measurement and motor drive sequence is initiated in Step 7.
Step 7 corresponds to the determination of the motor rotor position as described in "Position Detection For a Brushless DC Motor", U.S. patent application Ser. No. 413,311. A block diagram of the process used to measure motor position at standstill in the present invention is provided in FIG. 7 for a three-phase motor 54. The position detection process as described below is not intended to be exhaustive, but merely exemplary.
According to this exemplary process, using a pulse generator 50 through a driver 52, each phase of a motor 54 is supplied first with a positive current. The resulting current is converted to a voltage through a current voltage converter 56. Each phase is supplied the current for a short time T. The value of the current, after time T, is stored by use of a switch 58 in a peak detector 60. The same phase is next energized using a negative current through driver 52, and the resulting current converted to a voltage at converter 56 and through switch 58 stored at peak detector 62. The two peak current values are compared at comparator 64, with the difference in magnitude not being established, but only the sign of the magnitude. The sign of the current difference is routed via switch 66 to a memory 68.
The above procedure is repeated for each other phase or set of phases. In the case of a three-phase motor, this means that three signs are determined at comparator 64, with the second result being stored in memory 70 and the third result at memory 72. Based on the signs of the current differences obtained as described above, and using a look-up table 74 (Table 1) shown previously, a state selection of the phase or phases to be energized in order to start the motor moving in a chosen direction is determined 74.
This last part of the method, that is selection of the phases to be energized in order to start the motor in the chosen direction, can be explained with respect to FIG. 8.
Considering, for example, a star configuration of the phases as illustrated in FIG. 8, the measurement of the current difference is made when two phases in series are energized for each possible configuration. These configurations are: Phase 1 and Phase 2 in series; Phase 1 and Phase 3 in series; and Phase 2 and Phase 3 in series. The first combination of Phase 1 and Phase 2 is energized to cause a current to pass therethrough by turning on transistors G1 and G5, causing the current to pass from G1 through Phase 1 to Phase 2 and through the resistor R6 to ground, with the current being measured at the point A.
These transistors are switched off, and a current in the opposite direction is caused to pass through the same series pair of phases by turning on transistors G2 and G4 with the current being measured at the same point. The difference in the currents is then determined either by subtraction of the values, or by first integration and then determination of the difference, or differentiation and determination of the difference, each variation is explained in the above cited patent application. The sign difference is stored as a one or zero representing positive or negative, respectively. The convention to be adopted in explaining this specific example is that if the signs of the current difference is positive, the function will be considered to be equal to one; if the sign of the current difference is negative, then the function is considered to be equal to zero. The remaining current differences for the phase configuration are measured by appropriate
switching of the transistor G1-G6.
Based on the sign of the current difference .DELTA.i.sub.1, .DELTA.i.sub.2, .DELTA.i.sub.3, the state function of the phase current i.sub.1, i.sub.2, i.sub.3 is determined as shown in Table 1 above. The register Position, in Step 7, is then equal to the state function of the current difference .DELTA.i.sub.1, .DELTA.i.sub.2, .DELTA.i.sub.3.
The real time necessary to accomplish Step 7 corresponds to t.sub.measure Once Step 7 is complete, Step 9 initializes the register Position,old by testing if the counter STARTER is equal to 1. If STARTER equals 1, then Step 10 occurs. Step 10 initializes the register Position,old. Position,old equals the actual measured position.
Step 11 determines register Position,new, where Position,new is equal to register Position determined during Step 7. Step 12 compares register Position,new with register Position,old, thus determining if the motor rotor is (or not) within the same boundaries as determined previously. Step 12 determines if the motor can be accelerated (thus decreasing t.sub.on) or if the motor cannot be accelerated (thus not changing t.sub.on). Step 13 decrements t.sub.on by the pre-determined value .DELTA.T. Step 14 initializes timer register Timer to the t.sub.on value determined in Steps 12 and 13. The register position,old is then updated to Position,new in preparation for the next sequence. Step 15 switches ON or OFF the different transistors, G.sub.1 through G.sub.6 of FIG. 8, based on the state function of current i.sub.1, i.sub.2, i.sub.3 defined in Table 1. The state table which has been determined using the sign of the current difference .DELTA.i.sub.1, .DELTA.i.sub.2, .DELTA.i.sub.3 in Step 7. Thus, the motor phases are supplied by current creating a sustained torque and motor rotor motion in the correct direction. Step 16 starts the timer with the value contained in register Timer (see Step 14). Consequently, the timer will measure a time duration equal to t.sub.on.
Step 17 enables the timer interrupt after it has counted to a time equal to t.sub.on. The sequence is complete after Step 17. The process must wait until the time t.sub.on has past. The process remains in a wait loop (or accomplishing other tasks not requested by the present invention) represented by Step 18 until the next sequence is to begin.
Any interrupt of the timer will provoke the process to restart at address 4 (Timer interrupt) for a new sequence determination. The only exit to the process is by satisfying the tests of Step 5, a predetermined number of sequences has been effectuated without t.sub.on obtaining the minimum value or Step 6, t.sub.on reaches a predetermined minimum value. If either test is satisfied, the acceleration control function is handed to a secondary technique of Step 8. Preferably, the secondary technique is a back EMF detection system that will accelerate the motor to a nominal operating speed.
While the present invention has been described with reference to one embodiment, the description is illustrative of the invention and is not to be construed as limiting the invention. Various modifications may occur to those skilled in the art without departing from the true spirit and scope of the invention as defined by the appended claims.