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:
-
BLDC motor control algorithm process input variables to output variables and flags.
-
MKV10x hardware and microprocessor serves as a bridge between hardware peripheral modules and BLDC motor control software algorithm.
Supported Platforms
This Tower System module is supported by the Kinetis software development kit.
System Requirement
Hardware requirements
- J-Link ARM
- P&E Micro Multi-link universal
- Mini/micro USB cable
- USB A to micro AB cable
- Hardware (tower/base board, ...) for specific device
- Personal Computer
Toolchain requirements
- IAR embedded Workbench version 7.30.4
- ARM GCC 4.8.3 2014q3
- Keil MDK 5.13
- Kinetis Design Studio IDE v.2.5.0
- Atollic TrueSTUDIO for ARM win32 v5.2.1
Software requirements
- The project files are in: <SDK_Install>/examples/<board>/demo_apps/bldc_demo/<toolchain>.
- Library dependencies: ksdk_platform_lib
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.
- 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 |
- 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 | – | – |
- 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
- Connect a USB cable between the PC host and the OpenSDA USB port on the board.
- Open a serial terminal with these settings:
- 115200 baud rate
- 8 data bits
- No parity
- One stop bit
- No flow control
- Download the program to the target board.
- Connect three phases of the BLDC motor to J5 in the TWR‐MC‐LV3PH board.
- Supply 24 V digital power to J1 in the TWR‐MC‐LV3PH board.
- 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
-
After the power supply is plugged into the TWR-MC-LV3PH, the motor is ready to run.
-
Press the reset button on the development board.
-
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.
-
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.
-
Pressing the buttons beyond this point increases or decreases the required speed within the speed limit -5000 to 5000 RPM.
-
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)