Abstract:
A method for controlling motor, the method including, receiving a motor torque command, calculating a first current associated with the motor torque command, calculating an estimated first current responsive to receiving a first regulated voltage associated with the first current and a motor speed signal, subtracting the estimated first current from the first current resulting in a first current error signal, and outputting the first regulated voltage to a voltage controller responsive to receiving the first current error signal, the estimated first current, and the motor speed signal.

Description:
BACKGROUND 
       [0001]    One method of controlling motors in systems, such as, for example power steering systems is to use current sensors that provide feedback for closed loop torque control. However, the use of current sensors adds components and feedback processing to the system. Another method of controlling motors is to calculate voltage inputs that will result in desired torque outputs using a motor model based approach. In the model based approach, the current sensors are not used. 
       SUMMARY 
       [0002]    The above described and other features are exemplified by the following Figures and Description in which a power steering system is disclosed that includes: 
         [0003]    An exemplary method for controlling a motor, the method including, receiving a motor torque command, calculating a first current associated with the motor torque command, calculating an estimated first current responsive to receiving a first regulated voltage associated with the first current and a motor speed signal, subtracting the estimated first current from the first current resulting in a first current error signal, and outputting the first regulated voltage to a voltage controller responsive to receiving the first current error signal, the estimated first current, and the motor speed signal. 
         [0004]    An exemplary embodiment of a system for controlling a motor comprising, a processor operative to calculate a first current associated with the motor torque command, calculate an estimated first current responsive to receiving a first regulated voltage associated with the first current and a motor speed signal, subtract the estimated first current from the first current resulting in a first current error signal, and output the first regulated voltage to a voltage controller responsive to receiving the first current error signal, the estimated first current, and the motor speed signal. 
         [0005]    An alternate exemplary method of controlling a motor comprising, receiving a motor torque command, calculating a first current associated with the motor torque command, calculating a second current for reducing the back electromagnetic flux of the motor as a function of the first current, a motor speed signal, and a input system voltage, calculating a first regulated voltage associated with the first current and the motor speed signal, calculating a second regulated voltages associated with the second current and the motor speed signal, outputting the first regulated voltage and the second regulated voltage to a voltage controller. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0006]    Referring now to the Figures wherein like elements are numbered alike: 
           [0007]      FIG. 1  illustrates an example of a flux weakening voltage output graph. 
           [0008]      FIG. 2  illustrates a system for controlling a motor. 
       
    
    
     DETAILED DESCRIPTION 
       [0009]    Control systems often use motor current sensors to provide closed loop feedback to the system. The feedback of the current sensors is used with an input voltage to control the torque output of a motor. The use of feedback from current sensors offers transient control of the motor, however the use of current sensors adds additional components to the system. 
         [0010]    Another method of controlling a motor system is by calculating the motor voltage that can generate the desired torque output for a given motor. Since the specifications of a motor used in a system may be used to calculate a torque output of the motor at a given input voltage, the motor may be controlled without current feedback. The control is performed at steady states of the motor, such that transient responses of the motor are not accounted in the control. Such a system is advantageous because it decreases the number of components in the system and the processing used in closed loop systems. A disadvantage of using steady state control is that response times (phase lag) may be greater resulting in system instability. In large control systems, shorter phase lags that are often associated with closed loop systems that control transient responses are desired. 
         [0011]    Some motor systems use a limited to a maximum input voltage, such as, for example, 12Vdc. Since motors operate with a voltage input to generate torque, once a given maximum input voltage for a system is reached, the speed and torque of a motor may be limited by the back electromagnetic flux (EMF) in the motor. A method for increasing the torque output of a motor in a system having a limited input voltage is called flux weakening. 
         [0012]    Back EMF is a product of motor speed and flux. As motor speed increases, the back EMF voltage increases. Once a maximum voltage input for a system is reached, the flux may be reduced by inducing a current in a direction opposite to the flux in the motor. Using a vector control method, the toque producing current (iq) and flux weakening current (id) can be calculated for a given torque and speed. The operation of motor can be divided into three regions illustrated in  FIG. 1 . In region  1 , the voltage applied to a given motor is less than the maximum voltage limit at a particular motor speed to result in the desired toque. As the speed of the motor increases, the voltage needed to achieve the desired torque from the motor at the motor speed becomes is greater than the maximum voltage limit of the motor. The operation transitions into region  2 . In this region, flux weakening is applied to reduce the back emf voltage. In region  2 , the rated torque of the motor can be achieved with the field weakening applied. As the speed of the motor is further increased, the motor reaches the rated limit, and the rated motor torque cannot be achieved even with the field weakening. The operation transitions into region  3 . In region  3 , torque produced current and flux weakening current of the motor is optimized to get the maximum torque of the motor. The output torque of the motor is less than the desired torque. The flex weakening current id may be calculated from a table as a function of motor speed. 
         [0013]    One disadvantage of using a table to determine id values is that a table has discrete outputs for given inputs that may inefficiently limit the flux weakening of the motor. The optimum value of id is also not given by a table because id is a nonlinear function of iq and speed of the motor. 
         [0014]      FIG. 2  illustrates an exemplary embodiment of a control system  200 . The system  200  is used to control a motor  220  by incorporating the advantages of flux weakening and current feedback loops while maintaining the simplicity of controlling the motor  220  without current sensors. 
         [0015]    The system  200  may be used in a system such as, for example, a power steering system. The system  200  includes a processor  201  that is operative to receive a desired motor torque command (Te) from a source such as, for example, a steering control system  202 . The desired motor torque command is used to calculate a current i q * where Ke is the back EMF constant of the motor  220  as shown in block  204 . The calculation of i q * is shown in equation (1). 
         [0000]    
       
         
           
             
               
                 
                   
                     i 
                     q 
                     * 
                   
                   = 
                   
                     
                       T 
                       e 
                     
                     
                       K 
                       e 
                     
                   
                 
               
               
                 
                   ( 
                   1 
                   ) 
                 
               
             
           
         
       
     
         [0016]    The processor then calculates an i d * current for flux weakening in the motor  220 . The i d * is calculated from a function of the motor speed (ω r ), the input voltage (Vdc) and i q * in block  206 . The function shown in equation (2) will be further discussed below. 
         [0000]        i   d   *=f (ω r   ,Vdc,i   q *)   (2) 
         [0017]    A virtual current observer  208  calculates an estimated motor current (i q  Est.) associated with the motor torque command and an estimated flux weakening current (i d  Est.). Since the motor  220  specifications are known, the virtual current observer can estimate the currents in the motor  220  based in part on the input voltages to the motor. Once the estimated currents are calculated, they may be used in feedback loops. This allows the system to control the transient responses of the motor  220  without using current sensors. The equations for i q  Est. and i d  Est. are derived from equations (3) and (4) below. 
         [0000]        V   q   =ri   q +ω r   L   d   i   d   +K   e ω r   +pL   q   i   q    (3) 
         [0000]        V   d   =ri   d −ω r   L   q   i   q   +pL   d   I   d    (4) 
         [0018]    Where r is the motor  220  resistance, L d  is the motor  220  inductance, and p is a differential d/dt. Rearranging the equations results in: 
         [0000]    
       
         
           
             
               
                 
                   
                     pi 
                     q 
                   
                   = 
                   
                     
                       
                         V 
                         q 
                       
                       - 
                       
                         
                           K 
                           e 
                         
                          
                         
                           ω 
                           r 
                         
                       
                       - 
                       
                         ri 
                         q 
                       
                       + 
                       
                         
                           ω 
                           r 
                         
                          
                         
                           L 
                           d 
                         
                          
                         
                           i 
                           d 
                         
                       
                     
                     
                       L 
                       q 
                     
                   
                 
               
               
                 
                   ( 
                   5 
                   ) 
                 
               
             
             
               
                 
                   
                     pi 
                     d 
                   
                   = 
                   
                     
                       
                         V 
                         d 
                       
                       - 
                       
                         ri 
                         d 
                       
                       + 
                       
                         
                           ω 
                           r 
                         
                          
                         
                           L 
                           q 
                         
                          
                         
                           i 
                           q 
                         
                       
                     
                     
                       L 
                       d 
                     
                   
                 
               
               
                 
                   ( 
                   6 
                   ) 
                 
               
             
           
         
       
     
         [0019]    Writing the equations in digital form using T as the time period results in virtual current observer equations: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       i 
                       q 
                     
                      
                     
                       ( 
                       n 
                       ) 
                     
                   
                   = 
                   
                     
                       
                         i 
                         q 
                       
                        
                       
                         ( 
                         
                           n 
                           - 
                           1 
                         
                         ) 
                       
                     
                     + 
                     
                       
                         T 
                         s 
                       
                       ( 
                       
                         
                           
                             
                               
                                 
                                   
                                     V 
                                     q 
                                   
                                    
                                   
                                     ( 
                                     
                                       n 
                                       - 
                                       1 
                                     
                                     ) 
                                   
                                 
                                 - 
                                 
                                   
                                     K 
                                     e 
                                   
                                    
                                   
                                     ω 
                                     r 
                                   
                                    
                                   
                                     ( 
                                     
                                       n 
                                       - 
                                       1 
                                     
                                     ) 
                                   
                                 
                                 - 
                               
                             
                           
                           
                             
                               
                                 
                                   
                                     ri 
                                     q 
                                   
                                    
                                   
                                     ( 
                                     
                                       n 
                                       - 
                                       1 
                                     
                                     ) 
                                   
                                 
                                 - 
                                 
                                   3 
                                    
                                   
                                     ( 
                                     
                                       
                                         
                                           ω 
                                           r 
                                         
                                          
                                         
                                           ( 
                                           
                                             n 
                                             - 
                                             1 
                                           
                                           ) 
                                         
                                       
                                        
                                       
                                         L 
                                         d 
                                       
                                        
                                       
                                         
                                           i 
                                           d 
                                         
                                          
                                         
                                           ( 
                                           
                                             n 
                                             - 
                                             1 
                                           
                                           ) 
                                         
                                       
                                     
                                     ) 
                                   
                                 
                               
                             
                           
                         
                         
                           L 
                           q 
                         
                       
                       ) 
                     
                   
                 
               
               
                 
                   ( 
                   7 
                   ) 
                 
               
             
             
               
                 
                   
                     
                       
                         i 
                         d 
                       
                        
                       
                         ( 
                         n 
                         ) 
                       
                     
                     = 
                     
                       
                         
                           i 
                           d 
                         
                          
                         
                           ( 
                           
                             n 
                             - 
                             1 
                           
                           ) 
                         
                       
                       + 
                       
                         
                           T 
                           s 
                         
                         ( 
                         
                           
                             
                               
                                 
                                   
                                     
                                       V 
                                       d 
                                     
                                      
                                     
                                       ( 
                                       
                                         n 
                                         - 
                                         1 
                                       
                                       ) 
                                     
                                   
                                   - 
                                   
                                     
                                       ri 
                                       d 
                                     
                                      
                                     
                                       ( 
                                       
                                         n 
                                         - 
                                         1 
                                       
                                       ) 
                                     
                                   
                                   + 
                                 
                               
                             
                             
                               
                                 
                                   3 
                                    
                                   
                                     ( 
                                     
                                       
                                         
                                           ω 
                                           r 
                                         
                                          
                                         
                                           ( 
                                           
                                             n 
                                             - 
                                             1 
                                           
                                           ) 
                                         
                                       
                                        
                                       
                                         L 
                                         q 
                                       
                                        
                                       
                                         
                                           i 
                                           q 
                                         
                                          
                                         
                                           ( 
                                           
                                             n 
                                             - 
                                             1 
                                           
                                           ) 
                                         
                                       
                                     
                                     ) 
                                   
                                 
                               
                             
                           
                           
                             L 
                             d 
                           
                         
                         ) 
                       
                     
                   
                    
                   
                       
                   
                 
               
               
                 
                   ( 
                   8 
                   ) 
                 
               
             
           
         
       
     
         [0000]    where n is a cycle. 
         [0020]    Once the virtual current observer  208  outputs the i q  Est. and i d  Est., the values are subtracted from i q * and i d * shown in equations (9) and (10) below. 
         [0000]        E ( i   q *)= i   q   *−i   q ( n )   (9) 
         [0000]        E ( i   d *)= i   d   *−i   d ( n )   (10) 
         [0000]    Yielding error signals i q  Error (i q  E.) and i d  Error (i d  E.). 
         [0021]    The voltage regulator  210  receives i q  E., i q  Est., and ω r  to calculate the Vq voltage, and the voltage regulator  212  i d  E., i d  Est., and ω r  to calculate the Vd voltage. The equations (11) and (12) used to calculate Vq and Vd are shown below. 
         [0000]        V   q   =G   p   E ( i   q )+ G   i   ∫E ( i   q ) dt+ω   r ( n )·( K   e   +L   d   i   d ( n ))   (11) 
         [0000]        V   d   =G   p   E ( i   d )+ G   i   ∫E ( i   d ) dt−ω   r ( n )·( L   q   i   q ( n ))   (12) 
         [0000]    Gp and Gi are control constants. The values of the control constants are tuned to result in a desired response. 
         [0022]    In the illustrated embodiment, the motor  220  is a three phase motor that is controlled by a phase pulse width modulation voltage controller  214 . The phase voltage is determine by equations (13), (14), and (15). 
         [0000]        V   a   =V   q  sin(θ)+ V   d  cos(θ)   (13) 
         [0000]    
       
         
           
             
               
                 
                   
                     V 
                     b 
                   
                   = 
                   
                     
                       
                         V 
                         q 
                       
                        
                       
                         sin 
                          
                         
                           ( 
                           
                             θ 
                             - 
                             
                               
                                 2 
                                  
                                 π 
                               
                               3 
                             
                           
                           ) 
                         
                       
                     
                     + 
                     
                       
                         V 
                         d 
                       
                        
                       
                         cos 
                          
                         
                           ( 
                           
                             θ 
                             - 
                             
                               
                                 2 
                                  
                                 π 
                               
                               3 
                             
                           
                           ) 
                         
                       
                     
                   
                 
               
               
                 
                   ( 
                   14 
                   ) 
                 
               
             
             
               
                 
                   
                     V 
                     c 
                   
                   = 
                   
                     
                       
                         V 
                         q 
                       
                        
                       
                         sin 
                          
                         
                           ( 
                           
                             θ 
                             - 
                             
                               
                                 2 
                                  
                                 π 
                               
                               3 
                             
                           
                           ) 
                         
                       
                     
                     + 
                     
                       
                         V 
                         d 
                       
                        
                       
                         cos 
                          
                         
                           ( 
                           
                             θ 
                             - 
                             
                               
                                 2 
                                  
                                 π 
                               
                               3 
                             
                           
                           ) 
                         
                       
                     
                   
                 
               
               
                 
                   ( 
                   15 
                   ) 
                 
               
             
           
         
       
     
         [0023]    The duty cycle for the motor is calculated by the phase pulse width modulation voltage controller  214  by equations (16), (17), and (18). 
         [0000]    
       
         
           
             
               
                 
                   
                     D 
                     a 
                   
                   = 
                   
                     
                       
                         V 
                         a 
                       
                       
                         V 
                         
                           d 
                            
                           
                               
                           
                            
                           c 
                         
                       
                     
                     · 
                     
                       P 
                       PWM 
                     
                   
                 
               
               
                 
                   ( 
                   16 
                   ) 
                 
               
             
             
               
                 
                   
                     D 
                     b 
                   
                   = 
                   
                     
                       
                         V 
                         b 
                       
                       
                         V 
                         
                           d 
                            
                           
                               
                           
                            
                           c 
                         
                       
                     
                     · 
                     
                       P 
                       PWM 
                     
                   
                 
               
               
                 
                   ( 
                   17 
                   ) 
                 
               
             
             
               
                 
                   
                     D 
                     c 
                   
                   = 
                   
                     
                       
                         V 
                         c 
                       
                       
                         V 
                         
                           d 
                            
                           
                               
                           
                            
                           c 
                         
                       
                     
                     · 
                     
                       P 
                       PWM 
                     
                   
                 
               
               
                 
                   ( 
                   18 
                   ) 
                 
               
             
           
         
       
     
         [0024]    The phase pulse width modulation voltage controller  214  outputs the duty cycles to an inverter  216  that inverts the duty cycles, multiplies the duty cycles by the Vdc, and outputs the three phases of voltage to the motor  220 . 
         [0025]    The function used to calculate i d * (the d-axis current—flux weakening current) is derived below. Equations (19) and (20) are used to calculate the Vq and Vd voltages for a pulse with modulation motor. 
         [0000]        V   q   =ri   q +ω r   L   d   i   d   +K   e ω r    (19) 
         [0000]        V   d   =ri   d −ω r   L   q   i   q    (20) 
         [0000]      if 
         [0000]        V   dc =√{square root over (V q   2   +V   d   2 )}  (21) 
         [0000]    , let r 2 +ω r   2 L 2 =Z 2  where L q =L d =L may be solved to result in: if L q =L d =L than 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       i 
                       d 
                       * 
                     
                     = 
                     
                       
                         - 
                         
                           
                             
                               ω 
                               r 
                             
                              
                             ω 
                              
                             
                                 
                             
                              
                             L 
                              
                             
                                 
                             
                              
                             
                               K 
                               e 
                             
                           
                           
                             z 
                             2 
                           
                         
                       
                       + 
                       
                         
                           
                             
                               [ 
                               
                                 
                                   
                                     ω 
                                     r 
                                   
                                    
                                   ω 
                                    
                                   
                                       
                                   
                                    
                                   
                                     LK 
                                     e 
                                   
                                 
                                 
                                   z 
                                   2 
                                 
                               
                               ] 
                             
                             2 
                           
                           - 
                           
                             i 
                             q 
                             
                               * 
                               2 
                             
                           
                           - 
                           
                             
                               
                                 2 
                                  
                                 r 
                                  
                                 
                                     
                                 
                                  
                                 ω 
                                  
                                 
                                     
                                 
                                  
                                 
                                   K 
                                   e 
                                 
                                  
                                 
                                   i 
                                   q 
                                   * 
                                 
                               
                               + 
                               
                                 
                                   ω 
                                   2 
                                 
                                  
                                 
                                   K 
                                   e 
                                   2 
                                 
                               
                               - 
                               
                                 V 
                                 
                                   d 
                                    
                                   
                                       
                                   
                                    
                                   c 
                                 
                                 2 
                               
                             
                             
                               z 
                               2 
                             
                           
                         
                       
                     
                   
                    
                   
                     
 
                   
                    
                   
                     
                       S 
                       = 
                       
                         
                           
                             [ 
                             
                               
                                 
                                   ω 
                                   r 
                                 
                                  
                                 ω 
                                  
                                 
                                     
                                 
                                  
                                 
                                   LK 
                                   e 
                                 
                               
                               
                                 z 
                                 2 
                               
                             
                             ] 
                           
                           2 
                         
                         - 
                         
                           i 
                           q 
                           
                             * 
                             2 
                           
                         
                         - 
                         
                           
                             
                               2 
                                
                               r 
                                
                               
                                   
                               
                                
                               ω 
                                
                               
                                   
                               
                                
                               
                                 K 
                                 e 
                               
                                
                               
                                 i 
                                 q 
                                 * 
                               
                             
                             + 
                             
                               
                                 ω 
                                 2 
                               
                                
                               
                                 K 
                                 e 
                                 2 
                               
                             
                             - 
                             
                               V 
                               
                                 d 
                                  
                                 
                                     
                                 
                                  
                                 c 
                               
                               2 
                             
                           
                           
                             z 
                             2 
                           
                         
                       
                     
                     , 
                     
                       
 
                     
                      
                     
                       if 
                        
                       
                           
                       
                        
                       
                         ( 
                         
                           S 
                           &lt; 
                           0 
                         
                         ) 
                       
                     
                     , 
                     
                       
                         than 
                          
                         
                             
                         
                          
                         set 
                          
                         
                             
                         
                          
                         S 
                       
                       = 
                       
                         0 
                          
                         
                             
                         
                          
                         and 
                       
                     
                     , 
                   
                 
               
               
                 
                   ( 
                   23 
                   ) 
                 
               
             
             
               
                 
                   
                     
                       i 
                       d 
                       * 
                     
                     = 
                     
                       
                         - 
                         
                           
                             
                               ω 
                               r 
                             
                              
                             ω 
                              
                             
                                 
                             
                              
                             L 
                              
                             
                                 
                             
                              
                             
                               K 
                               e 
                             
                           
                           
                             z 
                             2 
                           
                         
                       
                        
                       else 
                     
                   
                   , 
                   
                      
                   
                    
                   
                     
                       i 
                       d 
                       * 
                     
                     = 
                     
                       
                         1 
                         2 
                       
                        
                       
                         ( 
                         
                           
                             - 
                             
                               
                                 2 
                                  
                                 r 
                                  
                                 
                                     
                                 
                                  
                                 
                                   ω 
                                   r 
                                 
                                  
                                 
                                   K 
                                   e 
                                 
                               
                               
                                 z 
                                 2 
                               
                             
                           
                           + 
                           
                             
                               
                                 ( 
                                 
                                   
                                     2 
                                      
                                     r 
                                      
                                     
                                         
                                     
                                      
                                     
                                       ω 
                                       r 
                                     
                                      
                                     
                                       K 
                                       e 
                                     
                                   
                                   
                                     z 
                                     2 
                                   
                                 
                                 ) 
                               
                             
                             2 
                           
                           - 
                           
                             4 
                              
                             
                               ( 
                               
                                 
                                   
                                     
                                       
                                         ω 
                                         r 
                                         2 
                                       
                                        
                                       
                                         K 
                                         e 
                                         2 
                                       
                                     
                                     - 
                                     
                                       V 
                                       
                                         d 
                                          
                                         
                                             
                                         
                                          
                                         c 
                                       
                                       2 
                                     
                                   
                                   
                                     z 
                                     2 
                                   
                                 
                                 - 
                                 
                                   
                                     ( 
                                     
                                       
                                         
                                           ω 
                                           r_ele 
                                         
                                          
                                         
                                           ω 
                                           r 
                                         
                                          
                                         
                                           L 
                                           q 
                                         
                                          
                                         
                                           K 
                                           e 
                                         
                                       
                                       
                                         z 
                                         2 
                                       
                                     
                                     ) 
                                   
                                   2 
                                 
                               
                               ) 
                             
                           
                         
                         ) 
                       
                     
                   
                 
               
               
                 
                   ( 
                   24 
                   ) 
                 
               
             
           
         
       
     
         [0026]    Where i d  is always positive such that if i d *≦0 than i d *=0. The i d * value in equation where S&gt;0 is used to calculate the i d * value in the first and second operating regions of the motor, as shown in  FIG. 1 , while if (S&lt;0), than set S=0 and the motor is operating in the third operating region. 
         [0027]    The illustrated embodiment of  FIG. 2  utilizes a flux weakening current function to allow more efficient use of the motor  220 . The use of the virtual current observer  208  allows the current in the motor to be estimated based on an input voltage. With estimated currents, the system  200  may control the motor  220  using feedback loops that accommodate transient state control.