Skip to content

This application note demonstrates how to implement the six-step commutation control of brushless direct current(BLDC) motor on KE17Z512 and KE17Z256 MCUs. The NXP Freedom board FRDM-MC-LVBLDC is used as a hardware platform for the motor control reference solution. The hardware-dependent part of the motor control software is addressed as well.

License

Notifications You must be signed in to change notification settings

nxp-appcodehub/an-mc-bldc-ke17z

Repository files navigation

NXP Application Code Hub

Sensorless BLDC motor control on KE17Z

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.

Boards: FRDM-KE17Z, FRDM-KE17Z512

Categories: Motor Control

Peripherals: PWM, ADC

Toolchains: MCUXpresso IDE

SDK: SDK_2_15_000_FRDM-KE17Z / SDK_2_14_1_FRDM-KE17Z512

Table of Contents

  1. Software
  2. Hardware
  3. Setup
  4. Results
  5. FAQs
  6. Support
  7. Release Notes

1. Software

  • 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.

2. Hardware

3. Setup

3.1 Step 1

  1. Open MCUXpresso IDE, in the Quick Start Panel, choose Import from Application Code Hub

  2. Enter the demo name in the search bar.

  3. Click Copy GitHub link, MCUXpresso IDE will automatically retrieve project attributes, then click Next>.

  4. Select main branch and then click Next>, Select the MCUXpresso project, click Finish button to complete import.

  5. Click Build to start compiling the project.

3.2 Step 2

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.

3.3 Step 3

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.

4. Results

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:
FM_COM
Operation state and speed command can be configured in FreeMASTER.
FM_operation

5. FAQs

No FAQs have been identified for this project.

6. Support

Provide URLs for help here.

Project Metadata

Board badge Board badge

Category badge

Peripheral badge Peripheral badge

Toolchain badge

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

Follow us on Youtube Follow us on LinkedIn Follow us on Facebook Follow us on Twitter

7. Release Notes

Version Description / Update Date
1.0 Initial release on Application Code Hub March 26th 2024

About

This application note demonstrates how to implement the six-step commutation control of brushless direct current(BLDC) motor on KE17Z512 and KE17Z256 MCUs. The NXP Freedom board FRDM-MC-LVBLDC is used as a hardware platform for the motor control reference solution. The hardware-dependent part of the motor control software is addressed as well.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages