Kinetis SDK v.1.2 Demo Applications User's Guide  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
BLDC Sensorless Demo

This demo application demonstrates the software portion (hardware/chip independent) of the 16-bit implementation of a sensorless three phase brushless DC (BLDC) motor control application. The demo supports both IAR and KEIL versions.

Overview

The BLDC sensorless Control Demo project is a demonstration program that uses the KSDK software. The application software uses the concept of an isolated algorithm software and hardware. This software approach enables easy porting of an application to other devices or platforms. The application software is divided in two sections:

Supported Platforms

This Tower System module is supported by the Kinetis software development kit.

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Getting Started

This table lists the FTM channels and MCU pins and corresponding LEDs for this demo application. This table also lists which connections should be made (if any) to ensure proper demo operation.

  1. TWR‐MC‐LV3PH jumper settings
    jumper position
    J2 1-2
    J3 1-2
    J10 2-3
    J11 2-3
    J12 2-3
    J13 2-3
    J14 1-2
  2. TWR-KV10Z32 jumper settings
jumper position jumper position jumper position
J1 2-3 J10 1-2 J21 3-4
J2 short J11 open J22 3-4
J3 2-3 J12 open J25 open
J4 short J13 open J26 short
J5 short J14 open J27 short
J7 1-2 J18 2-3 J28 short
J8 1-2 J19 2-3 J29 1-2
J9 1-2 J20 1-2
  1. Connect a USB cable between the PC host and the OpenSDA USB port on the board.

Note that, because of board limitations, if the power is not supplied to OpenSDA, the KV10 reset pin is in low level.

Prepare the Demo

  1. Connect a USB cable between the PC host and the OpenSDA USB port on the board.
  2. Open a serial terminal with these settings:
    • 115200 baud rate
    • 8 data bits
    • No parity
    • One stop bit
    • No flow control
  3. Download the program to the target board.
  4. Connect three phases of the BLDC motor to J5 in the TWR‐MC‐LV3PH board.
  5. Supply 24 V digital power to J1 in the TWR‐MC‐LV3PH board.
  6. Either press the reset button on your board or launch the debugger in the IDE to start running the demo.

For detailed instructions, see the appropriate board User's Guide.

Run the demo

The application can be controlled using one interface:

• Up / Down buttons on the TWR-KV10Z32 board

  1. After the power supply is plugged into the TWR-MC-LV3PH, the motor is ready to run.
  2. Press the reset button on the development board.
  3. Pressing the Up button (SW1) increases the speed by 500 RPM. The motor starts rotating in the clockwise direction if it is not spinning, or decreases speed if the direction of the rotation is counter-clockwise.
  4. Pressing the Down button (SW2) decreases the speed by 500 RPM. The motor starts rotating in the counter-clockwise direction if it is not spinning, or decreases speed if the direction of the rotation is clockwise.
  5. Pressing the buttons beyond this point increases or decreases the required speed within the speed limit -5000 to 5000 RPM.
  6. If both buttons are pressed for more than 2 seconds, the demonstration mode is switched on (or demonstration mode is switched off if it is on)