This application note demonstrates how to implement the six-step commutation control of brushless direct current(BLDC) motor on KE17Z512 and KE17Z256 MCUs.
The repository contains two project "an-mc-bldc-ke17z256" and "an-mc-bldc-ke17z512". The project for KE17Z256 can be imported from folder "an-mc-bldc-ke17z256" and the project for KE17Z512 can be imported from folder "an-mc-bldc-ke17z512".
The NXP Freedom board FRDM-MC-LVBLDC is used as a hardware platform for the motor control reference solution.
- Download and install MCUXpresso IDE V11.9.0 or later.
- Download and install the latest version of FreeMASTER(3.2.2.2).
- Download the code from Git repository: an-mc-bldc-ke17z.
- MCUXpresso for Visual Studio Code: This example supports MCUXpresso for Visual Studio Code, for more information about how to use Visual Studio Code please refer here.
- FRDM-KE17Z/FRDM-KE17Z512 Development Board.
- FRDM-MC-LVBLDC.
- LINIX 45ZWN24 motor.
- Personal Computer
- USB cable and 12V adaptor.
-
Open MCUXpresso IDE, in the Quick Start Panel, choose Import from Application Code Hub
-
Enter the demo name in the search bar.
-
Click Copy GitHub link, MCUXpresso IDE will automatically retrieve project attributes, then click Next>.
-
Select main branch and then click Next>, Select the MCUXpresso project, click Finish button to complete import.
-
Click Build to start compiling the project.
Connect the FRDM-MC-LVBLDC shield to the J1~J4 arduino connector of FRDM-KE17Z/FRDM-KE17Z512 board. Connect the 3-phase wire of the motor to the J7 connector on FRDM-MC-LVBLDC according to phase sequence(White wide--phaseA; Bule wide--phaseB; Green wide--phaseC). Power the FRDM-MC-LVBLDC board with a 12V adaptor.
Compile the project and use a USB cable to connect to the FRDM board. Use MCU-LINK to download program into MCU.
Compile the project and download program into MCU. Press SW2 on FRDM board to control the motor to run or stop. Or use FreeMASTER project "bldc_frac.pmpx" in the code package to control the motor, change rotor speed and obverse the speed or other value.
The FreeMASTER can be used to completely control the motor control application. The operation in FreeMASTER are described more closely here.
Select the right com in FreeMASTER project, in Project->Options-Comm:
Operation state and speed command can be configured in FreeMASTER.
No FAQs have been identified for this project.
Provide URLs for help here.
Questions regarding the content/correctness of this example can be entered as Issues within this GitHub repository.
Warning: For more general technical questions regarding NXP Microcontrollers and the difference in expected funcionality, enter your questions on the NXP Community Forum
Version | Description / Update | Date |
---|---|---|
1.0 | Initial release on Application Code Hub | March 26th 2024 |