To add the Motor Control library, go
to Device Resources>Libraries>Motor Control>AVR MCU Motor Control
Library, and click the green plus button.
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.
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.
Turn off Forced Commutation and
select “Open Loop”.
Generate the Code demo with APIs and
the Motor Control library.
Click Yes to confirm
generation with warnings.
The online versions of the documents are provided as a courtesy. Verify all content and data in the device’s PDF documentation found on the device product page.