10.3 Step 3. AVR® MCC Motor Control Library Setup

  1. To add the Motor Control library, go to Device Resources>Libraries>Motor Control>AVR MCU Motor Control Library, and click the green plus button.
  2. In the Motor Control Library Configuration tab, enable the Generate Example option to create the out-of-the-box demo layer besides including the motor control layers. This completes the default MPPB-related settings and PIN connections.
  3. Look for the Motor data sheet and find the number of pole pairs and nominal voltage. Set the correct motor pole pair (the demo used an ACT57BLF02 that has eight poles, so a total of four pole pairs). The Phase Advance and Start-up Voltage will remain unchanged.
  4. Turn off Forced Commutation and select “Open Loop”.
  5. Generate the Code demo with APIs and the Motor Control library.
  6. Click Yes to confirm generation with warnings.