Upload
vuthuan
View
231
Download
0
Embed Size (px)
Citation preview
Motor Control Tool Kit for SPC5Studio
Overview
ZHANG Livia
Senior Application Engineer, Micro BUADG Marketing and ApplicationGreater China & South Asia RegionSTMicroelectronics
Overview 2
Introduction to the Motor Control Toolkit
Setup HW, configure SW and run demo example
Documents & Related Resources
1
2
3
Motor control Tool Kit 3
Introduction to the Motor Control Tool Kit
Setup HW, configure SW and run demo example
Documents & Related Resources
1
2
3
What is MCTK
• MCTK (Motor Control Tool Kit) is a development kit based on automotive Grade SPC5
microcontroller, to control 3-phase Permanent Magnet Synchronous Motors:
• Easy to configure and monitor
• Very flexible and customizable
• Minimize the customer support effort
• Reduced FW re-work time when moving from evaluation kits to final customer’s production HW
• FW structure easy to be ported on different SPC5 microcontroller
• Integrated into a SPC5Studio software development environment ready for further customer improvement
• Available HW demo
• with SPC560P-DISP discovery Platform and L9907-EVAL kit
• Firmware Library Based on Field Oriented Control (FOC)
• Sensored and Sensorless support
• 2 shunt topology (current sense on motor phases or legs)
4
Supported Features• Demo Kit with P-Line + L9907
• Equipped with Maxon EC 40 motor • Validated with several others motors
• Supported Sensors• Hall sensors• Encoder• Resolver• Sensor-less
• Control Algorithms
• Single Vector FOC algorithm
• Torque and Speed control
• MTPA, Flux Weakening and Feed Forward technics
• Library deployed as SPC5Studio component
• Library Configuration tool available into Motor Control Component
• Dedicated SPC5Studio component for L9907
• Update site with Motor control component can made available
• SPC5 MCU initialization provided via SPC5Studio
• drivers/pin wizard/clock tree initialization
• Supported Compiler:
• Green Hills / HighTec /Free GCC
• Current Sensing 2 shunts current measurements on motor phases and inverter legs
• Configuration/UI SPC5Studio motor control component configuration to adapt
library to customer motor, topology and application
• Power stage configuration SPC5Studio L9907 component to Decoupling uC and Power L9907 Fault management configuration L99ASC03 smart driver support
5
SPC5 Live Monitor
SPC5Studio configuration component
Hardware Demo Kit
SPC5 MC Tool Kit at Glance 6
• Motor Control Tool Kit key elements
• SPC5 FOC Lib Configuration (SPC5Studio plug-in)
• Embedded Software Library (MC Lib)
• Live Monitor
• SPC5Studio (IDE and code gen)
• Micro and Power Boards
SPC5 Live MonitorMicro and Power board
Usage Model7
Image Download
UART
Once the HW and SW are configured, use the SPC5Studio motor control configuration component for
a complete and easy customization of the Motor Control library
Generate, compile and program the binary image on the HW board
Connect live Monitor via UART, to interact with the motor control library running on MCU, to start,
stop, change reference speed, …
SPC5 MC LIB
configuration
Compiler &
Generation
Live Monitor
SPC5Studio MC component• Configurator: SPC5studio plugin to configure the MC library based on the customer
environment is now ready.
• Specification of the interface has been frozen at the beg on the year
• Power and Flexible tool to build up component based user application
• Scalability on different micro
8
SPC5 Live Monitor 9
• Available over UART
• Written in JAVA
• Dashboard with basic commands, register view for advanced usage
• Robust and synchronization communication via UART
• Comm. protocol compatible with STM32 workbench
Supported Speed / position sensing• The following speed/position sensors are supported :
Quadrature encoder The rotor position information is very precise
Alignment phase is implemented (electrical angle and duration)
Tested and validated on several motors
Hall sensors Tested only with 3 sensor 120° displaced
Highly configurable
Tested and validated on several motors
Resolver Using ArcTan to calculate the angle instead of lookup table guarantee more precision
Tested and validated on maxon motor
Sensor-less Using Luenberger observer + PLL
10
Status: MC libFeature SPC5 MC kit
Controlled Motors Single simultaneous vector control (FOC)
Algorithm Speed,Torque
Sensor HALL(120), Encoder, Resolver,
Current sensing 2-ICS
Sensor-less (OBS+ PLL)
Supported Micro P-line (P34,P40,P50)
K2 ( Early support)
Communication UART
On Line Monitor YES
Integrated SDK YES
FET Driver L9907,L99ASC03
Diagnostic and Firmware protection
(Temperature, DC, Under voltage)
L9907 diagnostic
Software diagnostic in case of different FET driver
UI full configurability Yes with SPC5Studio
MISRA YES, misra check available
Documentation, web YES
11
SPC5 Motor Control Tool Kit- Go To Market
• SPC5Studio configurator plug-in
• Sensored and s-less algorithm
• Live Monitor
• Launch beta program
First Beta
package
Release
v. 0.8.1
Beta Release
V 0.9.0
• Added L99ASC03 and SPC560P34 support
• 2 shunt current sensing
• Load Test
• Early Marketing package
• Testing Coverage
Q4 -16 Q1-17 Q2-17
Make Public
V 1.0.0
Custom
Release
V 0.8.2
Q3-17
• Ordinable demo kit
• Product Launch
• Full Marketing package
12
Software Setup and Demo example 13
Introduction to the Motor Control Toolkit
Setup HW, configure SW and run demo example
Documents & Related Resources
1
2
3
HW Prerequisites14
• Get SPC560P Discovery platform (SPC560P-DISP)
• Get L9907 evaluation board for 3-phase BLDC motor
pre-driver (EVAL-L9907)
• 3-phase BLDC motor (e.g. MAXON EC40 or similar)
• Power supply accordingly with application
• 1 x mini USB cable
• Windows 8/7 - Laptop/PC
Mini USB
EVAL-L9907
SPC560P-DISP
BLDC MotorPower SupplyLaptop/PC
L9907 Inverter
Software Setup in 6 steps15Get SPC5Studio from
www.st.com/spc5studio or
www.spc5studio.com
Install SPC5Studio by
reading carefully installation procedure
and additional document and tutorials
1
2
1) Install Motor Update Site
2) Import Demo Application
… see SPC5Studio documentation
3) Install SPC5 Live Monitor
Motor Control Component Structure
5
Connect Live Monitor (set
baud rate to 38K) and play
with motor
Get Motor Control SW package
(ask ST regional office):
- MotorControlUpdateSite
- SPC560P Demo Application
- Live Monitor Installer
Docs
L9907 component
4
Configure Motor Electrical
Parameter and sensors
Save, generate code through
SPC5Studio activity wizard
Motor settings in the outline
Compile through SPC5Studio
activity wizard
Download binary to target board
via Debug tool
(UDE or Lauterbach)
6
3
Step 4 - Motor configuration example for the Maxon Motor EC 40
starting from the motor datasheet16
Step 6 - Connect Live Monitor17
Install and Open SPC5 Live Monitor
Select available COM and set baud
rate
Click on Connect Button
Start the Motor
Change the reference speed
Monitor actual speed, temp and
power
Go the advanced option to change
amplification gain or set ramp
speed
Go to register view to check all
library parameters
Overview 18
Introduction to the Motor Control Toolkit
Setup HW, configure SW and run demo example
Documents & Related Resources
1
2
3
Documents & related resources
• Release Note
Content of the release package
• Data Brief
One page description of the Motor Control ToolKit
• User Manual Chm
Compressed chm manual available in the SPC5Studio motor control component doc folder
• Quick Start GuidePresentation to quickly configure HW and SW and run demo application
• MCTK_QUICK_GUIDEA quick guide about MCTK’s set-up and focus on the motor configuration of the SPC5Studio Motor Component.
19
All documents are available in the release package
Ask ST representatives for the complete list
Thanks