2.2.2.1 Motor Parameters

Configuring PMSM (Permanent Magnet Synchronous Motor) parameters is crucial for achieving optimal Field-Oriented Control (FOC) performance. The QSpin uses these parameters to calculate default parameters for the FOC algorithm.

The Motor module enables the user to select from a wide number of motors from the Microchip catalog, as well as configure their own custom motor.

Graphical User Interface

Motor module graphical user interface

Choose from a Wide Range of Motors

Follow the steps to select a motor from the Microchip catalog:

  1. Select the motor from the drop-down menu as shown below:
    Motor selection drop-down menu

The default motor parameters are displayed in their respective fields.

Add Your Custom Motor

Follow the steps to add your custom motor:

  1. Select 'Custom' option from 'Select Motor' drop-down menu.
    Motor selection drop-down menu
  2. Update the name-plate parameters.
    Name-plate parameters
  3. Update the electrical parameters.
    Electrical parameters
  4. Update the mechanical parameters.
    Mechanical parameters
Note:

Currently, mechanical parameters do not impact the generated code. The configuration is intended for future use, so you do not need to configure these parameters at this time.

  1. Update sensor parameters.
    Sensor parameters
Note:

The QSpin only supports quadrature encoder interface. For other interfaces, contact Microchip Sales.

  1. Update the motor meta-data.
    Motor meta-data parameters
  2. Save the custom motor parameters.
  3. Check if your motor is listed in the 'Select motor' drop-down menu.

Using Custom Motors Across Harmony Projects

MCC Harmony allows you to use saved motor parameters across different projects by utilizing the MCC export and import feature. Follow these steps to export and import motor parameters:

  1. In the project resources, right-click on the Permanent Magnet Synchronous Motor to select 'Mark for export config' as shown below:
    PMSM Configuration export enable
  2. Export and save the .mc3 file to your local disk.
    PMSM Configuration export
  3. Import the saved .mc3 file into your new QSpin MCC Harmony project.
    PMSM Configuration import