TIDUF17 November   2022 TMS320F2800152-Q1 , TMS320F2800153-Q1 , TMS320F2800154-Q1 , TMS320F2800155 , TMS320F2800155-Q1 , TMS320F2800156-Q1 , TMS320F2800157 , TMS320F2800157-Q1

 

  1.   Description
  2.   Resources
  3.   Features
  4.   Applications
  5.   5
  6. 1System Description
  7. 2System Overview
    1. 2.1 Block Diagram
    2. 2.2 Design Considerations
    3. 2.3 Highlighted Products
      1. 2.3.1 TMS320F280039C
      2. 2.3.2 UCC21530-Q1
      3. 2.3.3 OPA607-Q1
      4. 2.3.4 LM25184-Q1
      5. 2.3.5 TCAN1044A-Q1
    4. 2.4 System Design Theory
      1. 2.4.1 Three-Phase PMSM Drive
      2. 2.4.2 Field Oriented Control of PM Synchronous Motor
      3. 2.4.3 Field Weakening (FW) and Maximum Torque Per Ampere (MTPA) Control
      4. 2.4.4 Compressor Drive with Automatic Vibration Compensation
      5. 2.4.5 Hardware Prerequisites for Motor Drive
        1. 2.4.5.1 Motor Current Feedback
          1. 2.4.5.1.1 Current Sensing with Three-Shunt
          2. 2.4.5.1.2 Current Sensing with Single-Shunt
        2. 2.4.5.2 Motor Voltage Feedback
  8. 3Hardware, Software, Testing Requirements, and Test Results
    1. 3.1 Hardware Requirements
      1. 3.1.1 Hardware Board Overview
      2. 3.1.2 Test Conditions
      3. 3.1.3 Test Equipment Required for Board Validation
    2. 3.2 Test Setup
      1. 3.2.1 Hardware Setup
      2. 3.2.2 Software Setup
        1. 3.2.2.1 Code Composer Studio Project
        2. 3.2.2.2 Software Structure
    3. 3.3 Test Procedure
      1. 3.3.1 Level 1 Incremental Build
        1. 3.3.1.1 Project Setup
        2. 3.3.1.2 Running the Application
      2. 3.3.2 Level 2 Incremental Build
        1. 3.3.2.1 Project Setup
        2. 3.3.2.2 Running the Application
      3. 3.3.3 Level 3 Incremental Build
        1. 3.3.3.1 Project Setup
        2. 3.3.3.2 Running the Application
      4. 3.3.4 Level 4 Incremental Build
        1. 3.3.4.1 Project Setup
        2. 3.3.4.2 Running the Application
        3. 3.3.4.3 Tuning Field Weakening and MTPA Control
        4. 3.3.4.4 Tuning Vibration Compensation
        5. 3.3.4.5 CAN FD Command Interface
    4. 3.4 Test Results
      1. 3.4.1 MCU CPU Load, Memory, and Peripheral Usage
  9. 4Design and Documentation Support
    1. 4.1 Design Files
      1. 4.1.1 Schematics
      2. 4.1.2 BOM
    2. 4.2 Tools and Software
    3. 4.3 Documentation Support
    4. 4.4 Support Resources
    5. 4.5 Trademarks

Compressor Drive with Automatic Vibration Compensation

Vibration and noise can become a problem in air conditioning compressors applications since they cause an undesirable end user experience, as well as mechanical failures due to stress. The compressor applications contain pulsating loads, which is dependent on the mechanical angle as shown in Figure 2-15, can cause motor vibration and audible noise. There are several causes of vibration and noise. The main cause is the vibration produced by the load characteristic. A new dynamic and adaptive compensation method will also be covered, showing the details on how it operates and the minimal tuning required.

Figure 2-15 Waveform of Load Torque

The vibration compensation algorithm learns the load profile as the motor runs, and as the speed controller tries to correct for these load changes, and once the load is learned, the algorithm is used to extract load information relative to the mechanical angle, and uses that information as a feed forward in the speed controller. As shown in Figure 2-16, a new block was added, called Dynamic Vibration Compensation is added to the FOC system, is used to learn the torque load, to allow adding a feedforward term to the speed controller, in the form of a summing point to the output generated by the speed controller.

Figure 2-16 Block Diagram of FOC based Motor Drive with Vibration Compensation

This algorithm requires four main blocks to be able to work:

  1. A speed controller with feed forward input
  2. A table to hold a learning curve
  3. A way of extracting a specific member of that table based on an index
  4. Calculation of an index to update the learning curve and an advanced index to extract a value from that table

The algorithm is able to dynamically learn a load profile based on two inputs:

  1. Electrical angle information. Starting from the lower left as shown in Figure 2-16, the first input that is required by the vibration compensation module is the mechanical angle. This is calculated based on the electrical angle and the number of pole pairs. It is not required for the mechanical angle to be synchronized with the electrical angle. For example, the zero of the mechanical angle, physically, does not need to be the zero of the electrical angle. This is because the vibration compensation module will learn the load according to the mechanical angle provided, independently of what the mechanical angle is compared to the physical position of the shaft.
  2. A measured current value, in the case of FOC, Iq, which is responsible for the torque of the motor.

Then the vibration compensation module is implemented. The module needs four parameters in this implementation.

  1. Phase Advance. which is how the learned load will be accessed with respect to the mechanical angle. If zero phase advance, the loaded value on IqRef_ff will correspond to the provided mechanical angle. If phase advance is 10, the loaded value on IqRef_ff will correspond to the mechanical angle plus 10 mechanical degrees (in a scale from 0 to 360 degrees).
  2. Learning Rate. This parameter is a value from 0 to 1, which is essentially how fast (less noise immune) or how slow (more noise immune) the load learning happens
  3. Points. This is the number of points of the compensation table to be used for the learning curve.
  4. Pole Pairs. This is the number of poles in the motor.

Then the summation point in between the speed controller and the Iq controller. This is where the output of the vibration compensation module is used, to help the speed controller with this term. This technique is also known as feedforward, since the load is known in advance, according to the mechanical angle provided.

Once the load has been learned by the vibration compensation module, the speed controller will correct for transients in load change, that don’t relate to the natural mechanical load vs. mechanical angle, which is already compensated by the vibration compensation module. To illustrate how the vibration compensation module helps, let’s take a look at the following plot, where we show the output of the speed controller with vibration compensation disabled. It is obvious that the speed controller gains need to be high to track the load changes as the motor spins every cycle.

Tuning the learning rate

The learning rate can be adjusted depending on two factors. One is how quickly the user wants to learn the curve, and the second consideration is how noisy is the input to the learning curve. The second consideration is important, because the noise is not only coming from the current sensing method itself, but minor mechanical perturbations in the system, that are not periodic, and that we would like to filter out and not have it in our compensation table. If the learning rate is too low, the learning time could be too long for a specific application, so a trade-off needs to be made.

Tuning the phase angle

In a discrete system there are several delays when it comes to outputting a voltage to the motor, and also delays related to sensing currents. For example, when implementing an FOC system in a processor, usually the output voltage goes through a Pulse Width Modulator (PWM) which has delays. This phase advance parameter allows fine tuning of that delay, by providing a number in units of table positions, from the learned table, so that the appropriate output can be applied to the speed controller’s feed forward input. The easiest way to tune this parameter is by looking at the speed variation after applying dynamic compensation, and tuning the value so that a minimum amount of speed variation is achieved.