




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、UM1080User manualQuick start guide for STM32F PMSM single/dual FOC SDK v4.3IntroductionThe STM32 microcontroller offers the performance of the industry-standard Cortex®-M core at the service of vector or field oriented control (FOC) algorithms, widely used in high-performance drives.The STM32 P
2、MSM FOC SDK (STSW-STM32100), which includes the PMSM FOC FW library and STMC Workbench, gives you the opportuto evaluate the performance of the STM32 microcontroller inapplications driving single or dual FOC of three-phase permanent magnet motors (PMSM, BLDC).STM32 PMSM FOC SDK is part of ST's m
3、otor control ecosystem which offers a wide range of hardware and software solutions for motor control applications.The ST MC Workbench software for the PC reduces design time and effort with respect to the STM32 PMSM FOC firmware library configuration. Through its graphical user interface (GUI), you
4、 can generate all the parameter header files to configure the library according to your application needs, as well as monitor and adjust certain algorithm variables in real time.September 2016DocID018802 Rev 71/50ContentsUM1080Contents1Motor control library features51.1User project and interface fea
5、tures62Documentation architecture72.12.2Where to find the information you need7Related documents73The new Motor Profiler procedure93.1Restrictions and disclaimer1445On-the-fly sensorless startup15Development environment175.15.2Motor control workspace17MC SDK customization process1967How to download
6、the full LCD user interface23Full LCD user interface277.17.2Running the motor control firmware using the full LCD interface27LCD User interface structure2..47.2.5Welcome message29Configuration and debug page30Dual control panel page31Speed controller page33Current controllers page3
7、589Introduction to the PMSM FOC drive37Current sensing and protection with embedded analog(STM32F3x)39.49.5Introduction39Current sensing40Overcurrent protection42Resource allocation - single drive43Resource allocation - dual drive441011Overvoltage protection with embedded analog (STM32F3x)
8、46Revision history482/50DocID018802 Rev 7UM1080List of tablesList of tablesTable 1: Project configurations21Table 2: Joystick actions and conventions27Table 3: List of controls used in the LCD demonstration program29Table 4: Fault conditions list31Table 5: Control groups33Table 6: Speed controller p
9、age controls34Table 7: Control groups35Table 8: Current controllers page controls36Table 9: Document revision history48DocID018802 Rev 73/50List of figuresUM1080List of figuresFigure 1: Link to ST Motor Profiler9Figure 2: Installation folder tree9Figure 3: ST Motor Profiler9Figure 4: List of compati
10、ble systems10Figure 5: Example of settings for surface permanent magnet motors11Figure 6: Example of settings for internal permanent magnet motors11Figure 7: Motor Profiler results12Figure 8: Save motor12Figure 9: Play mode12Figure 10: Workbench new project creation13Figure 11: ST MC Workbench "
11、;Motor" list box13Figure 12: Enabling on-the-fly startup15Figure 13: IAR EWARM IDE Workspace overview18Figure 14: Keil uVision workspace overview18Figure 15: Workspace batch build for IAR EWARM IDE20Figure 16: Workspace batch build for Keil uVision21Figure 17: Customization process21Figure 18:
12、Enabling the full LCD UI in the ST MC Workbench23Figure 19: Flash loader wizard screen24Figure 20: LCD UI project25Figure 21: User interface reference27Figure 22: Page structure and navigation28Figure 23: STM32 Motor Control demonstration project welcome message29Figure 24: Configuration and debug p
13、age30Figure 25: Dual control panel page32Figure 26: Speed controller page34Figure 27: Current controllers page36Figure 28: Basic FOC algorithm structure, torque control37Figure 29: Speed control loop38Figure 30: Current sensing and over-current protection with STM32F302/30339Figure 31: Current sensi
14、ng network using external gains40Figure 32: Current sensing network using internal gains plus filtering capacitor41Figure 33: STMCWB window related to PGA/COMP settings for motor currents42Figure 34: Overvoltage protection network46Figure 35: STMCWB window related to ADC/COMP settings for DC bus vol
15、tage47Figure 36: STMCWB window related to DAC settings474/50DocID018802 Rev 7UM1080Motor control library features1Motor control library features·Motor profiler:-a new algorithm able to auto-measure electromechanical parameters of PMSM motors (STM32F30x and STM32F4xx only).·One touch tuning
16、:- a new algorithm that uses a single parameter to set up the speed controller according to the type of load. Together with the Motor profiler, it can be enabled to achieve the setup and run of an unknown motor from the scratch (only the STM32F30x and STM32F4xx).On-the-fly sensorless startup, a new
17、algorithm able to detect if the motor is running before the startup and skip the acceleration phase if not necessary. The motor is run in FOC from the begin without need to stop it before the start. This feature is particular useful for fan application (any STM32F supported).Single or simultaneous D
18、ual PMSM FOC··-sensorless/sensored (Dual PMSM FOC only when running on STM32F103xxHigh-Density, STM32F103 STM32F4xx)L-Density, STM32F2xx, STM32F303xB/C or·Speed feedbacks:-Sensorless (High Frequency Injection HFI plus B-EMF State Observer, PLL rotor speed/angle computation from B-EMF,
19、 only for STM32F30x or STM32F4xx); Sensorless (B-EMF State Observer, PLL rotor speed/angle computation from BEMF);Sensorless (B-EMF State Observer, CORDIC rotor angle computation from BEMF);60° or 120° displaced Hall sensors decoding, rising/falling edge responsiveness; Quadrature incremen
20、tal encoder;For each motor, dual simultaneous speed feedback processing; On-the-fly speed sensor switching capability;-·Current sampling methods:- Two ICS (only when running on STM32F103xx, STM32F2xx, or STM32F4xx);-Single, common DC-link shunt resistor (ST patented);Three shunt resistors place
21、d on the bottom of the three inverter legs (only when running on STM32F103xx, STM32F2xx, STM32F302xB/C, STM32F303xB/C or STM32F4xx);·Embedded analog (STM32F30x only):-PGA (Programmable Gain Amplifiers) for current sensing: support for three-shunt and single shunt, internal and external gain;Com
22、parators for overcurrent protection: support for three-shunt and single shunt, internal and external threshold;Comparators for overvoltage protection: support for motor phases short-circuiting mode and free-wheeling mode, internal and external threshold;-·FOC hardware acceleration (STM32F30x on
23、ly);-ADC queue of context (ST patented architecture) support; CCM (core coupled memory) RAM support;Advanced Timer structures for single shunt (ST patented) support;···Flux weakening algorithm to attain higher than rated motor speed (optional); Feed-Forward, high performance current r
24、egulation algorithm (optional); SVPWM generation:- Centered PWM pattern type;-Adjustable PWM frequency;·Torque control mode, speed control mode; on-the-fly switching capability;DocID018802 Rev 75/50Motor control library featuresUM1080·Brake strategies (optional):- Dissipative DC link brake
25、 resistor handling;-Motor phases short-circuiting (with optional hardware over-current protection disabling);motor phases free-wheeling;-·When running Dual FOC, any combination of the above-mentioned speed feedback, current sampling, control mode, optional algorithm;Optimized I-PMSM and SM-PMSM
26、 drive;Programmable speed ramps (parameters duration and final target); Programmable torque ramps (parameters duration and final target); Real-time fine tuning of:- PID regulators;····-Sensorless algorithm; Flux weakening algorithm;Startup procedure (in case of sensorless);·
27、Fault management:-Overcurrent; Overvoltage; Overtemperature;Speed feedback reliability error; FOC algorithm execution overrun;·Easy customization of options, pin-out assignments, CPU clock frequency through ST MC Workbench GUI;C language code:·-Compliant with MISRA-C 2004 rules; Conforms s
28、trictly with ISO/ANSI;Object-oriented programming architecture;1.1User project and interface featuresThere are two available options:··FreeRTOS-based user project (for STM32F103xx and STM32F2xx only); SysTick-timer-easy-scheduler-based user project;Available User Interface options (and com
29、binations of them):·····Full LCD plus joystick; Light LCD plus joystick;Serial communication protocol bidirectional (compatible with ST MC Workbench GUI); Serial communication protocol fast unidirectional;Drive system variables logging/displaying via:-SPI;DAC (DAC peripheral
30、 is not present in the STM32F103xx low or medium density; in this case, RC-filtered PWM signal option is available);6/50DocID018802 Rev 7UM1080Documentation architecture22.1Documentation architectureWhere to find the information you needTechnical information about the MC SDK is arranged thus:·U
31、ser manual UM1052: STM32F PMSM single/dual FOC SDK v4.3 (available on):-features architecture workspacecustomization processesoverview of algorithms implemented (FOC, current sensors, speed sensors, embedded analog topologies supported)MC APIsample user project sample LCD user interfacesample serial
32、 communication protocol-·User manual UM1053: Advanced developers guide for STM32F MCUs PMSMsingle/dual FOC library (available on):- object oriented programming style used for developing the MC library-description of classes that belong to the MC library interactions between classesdescription o
33、f tasks of the MCA·MC library source documentation (Doxygen compiled HTLM file).-describes the public interface of each class of the MC library (methods, parameters required for object creation)·MC Application source documentation (Doxygen compiled HTML file).- describes the classes that m
34、ake up the MC APIUser Interface source documentation (Doxygen compiled HTML file).- describes the classes that make up the UI librarySTM32F0xx, STM32F10xx, STM32F2xx, STM32F30x or STM32F4xx Standard Peripherals Library source documentation (Doxygen compiled HTML file).ST MC Workbench GUI documentati
35、on.- describes the steps and parameters required to customize the library, as shown in the GUIIn-depth documentation of certain algorithms (sensorless position/speed detection, flux weakening, MTPA, feed-forward current regulation).or contact your nearest ST sales office for further information.
36、3;···Visit2.2Related documentsAvailable from···Cortex®-M0 Technical Reference Manual, available from: Cortex®-M3 Technical Reference Manual, available from: Cortex®-M4 Technical Reference Manual, available from:.Available fromor your STMicroelectronics sa
37、les office··STM32F030x datasheets STM32F051x datasheetsDocID018802 Rev 77/50Documentation architectureUM1080···············STM32F100xx datasheets STM32F103xx datasheetsSTM32F20x and STM32F21x datasheets STM32F302x6/
38、8 datasheets STM32F302xB/C datasheets STM32F303xB/C datasheets STM32F40x and STM32F41x datasheets STM32F051x user manual (RM0091) STM32F100xx user manual (RM0041) STM32F103xx user manual (RM0008)STM32F20x and STM32F21x user manual (RM0033) STM32F30x user manual (RM0316)STM32F40x and STM32F41x user m
39、anual (RM0090)STM32F103xx AC induction motor IFOC software library V2.0 (UM0483) STM32 and STM8 Flash Loader demonstrator (UM0462)8/50DocID018802 Rev 7UM1080The new Motor Profiler procedure3The new Motor Profiler procedure1Execute the “STMotorProfiler.exe” application from the Motor Profiler (MP) bu
40、tton shown in the ST Motor Control Workbench figured below.Alternatively, you can run the file from the “STMotorProfiler” folder in the installation folder.Figure 1: Link to ST Motor ProfilerFigure 2: Installation folder treeFigure 3: ST Motor Profiler2Click “Select Boards” button in the Motor Profi
41、ler opening screen to open a list of supported boards.The Motor Profiler feature can be used only in the systems listed there.DocID018802 Rev 79/50The new Motor Profiler procedureUM1080Figure 4: List of compatible systems3Select the system that you are using.For example, if you are using the P-NUCLE
42、O-IHM001, select the system with NUCLEO-F302R8 plus X-NUCLEO-IHM07M1.Insert the number of pole pairs on your motor. This field is mandatory.Insert the Max Speed field.This field not mandatory; if not selected, the Motor Profiler attempts to reach the um allowed speed according to the motor and to th
43、e system you are using.Insert the Max Current field.456This field not mandatory; it is expressed in amperes and represents the peak current delivered to the motor.Insert the expected bus voltage provided to the system.um7This field not mandatory; it is the DC bus voltage supplied to the power stage
44、for low voltage applications or 2VACrms for applications supplied with a high voltage AC power supply.Select SM-PMSM in the magnetic field if the motor has a surface permanent magnet. It is the default setting.810/50DocID018802 Rev 7UM1080The new Motor Profiler procedureFigure 5: Example of settings
45、 for surface permanent magnet motors9If the motor has an internal permanent magnet, select I-PMSM. You must also input the Ld/Lq ratio.Figure 6: Example of settings for internal permanent magnet motors10Check ths are correctly configured for motor control, supplied with theexpected input voltage and
46、 connected with the serial communication cable and JTAG/SWD programming cable. Check the user manual of each evaluation board for the correct configuration, voltage range, serial communication capabilities and programming/debugging interface.Click on the “Connect” button.11-If this new or has been e
47、rased, the correct FW is automaticallyloaded into the microcontroller.-If the programming procedure cant be executed, check the JTAG/SWD programming cable.If the programming procedure is executed but Motor Profiler still cant-communicate with th, check the serial communication connections.12Once con
48、nection is established, press the profile button to start the procedure.DocID018802 Rev 711/50The new Motor Profiler procedureUM1080Figure 7: Motor Profiler results13Click on the “Save” to store the motor profiled motor for later use with ST MC Workbench.Figure 8: Save motor14At the end of the proce
49、dure, the motor is recognized and can be controlled via the Play button without having to repeat the Motor Profiler procedure. The user can start and stop the motor, adjust the speed and accelerate in the clockwise or anti-clockwise directions.Figure 9: Play mode15If the Motor Profiler procedure is
50、required, click the Profile button to force a new procedure.12/50DocID018802 Rev 7UM1080The new Motor Profiler procedure16When the motor is successfully profiled, open ST MC Workbench and select “New Project”.-Select the “Application Type”, Single Motor or Dual Motor, and th be used.to-If this a com
51、plete inverter (singlwith power and control),select “Inverter” combo box and then select the inverter in the list box.-If an MC Kit is used (like the P-NUCLEO-IHM001), select “MC Kit” combo box and then select the kit in the list box.If a system composed by a control evaluation board plus power eval
52、uation board is used, select “Power & Control” combo box and select both Control board and Power board.Figure 10: Workbench new project creation-17Then select the motor from the “Motor” list box with all the saved motor profiles.Figure 11: ST MC Workbench "Motor" list boxThe created pr
53、oject imports the HW settings according to the selected boards and the motor settings according the Motor profiler results; it also imports other settings like PWM frequency and startup acceleration used during the Motor Profiler procedure.Proceed with the usual generation of the .h file, compilatio
54、n and flashing as described in Chapter 9 or in the “Hands-on” (STM32 PMSM FOC SDK Hands-on workshop with hardware tools).18DocID018802 Rev 713/50The new Motor Profiler procedureUM10803.1Restrictions and disclaimerThe Motor Profiler algorithm is intended for rapid evaluation of the ST motor control s
55、olution. You can use it to drive any three-phase motor with an internal permanent magnet without any specific instruments or special skills.The measurements performed, however, cannot be as precise as proper instrumentation.The Motor Profiler measurement errors can be particularly significant for mo
56、tors with parameters those indicated in the following table.Moreover, it is important to choose the appropriate HW according to the characteristics ofthe motor. For instance, theum current of the motor should match theumcurrent of thas closely as possible.Motor Profiler can be used only using compat
57、ible ST evaluation boards. Please use the STMotorProfiler tool to view the list of the supported systems.14/50DocID018802 Rev 7UM1080On-the-fly sensorless startup4On-the-fly sensorless startupThe on-the-fly sensorless startup algorithm can detect if the motor is running before startup and skip the acceleration phase if it is not required. If the motor runs at a speed that is above th
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 行业龙头企业会议合同
- 景区旅游解说系统优化考核试卷
- 摩托车启动系统与故障检修考核试卷
- 特殊作业机器人作业流程优化试题考核试卷
- 放射性废物处理与核设施的安全文化考核试卷
- 发电机润滑系统考核试卷
- 社区卫生服务临床路径应用考核试卷
- 网络安全防护法律法规适用性考核试卷
- 海水养殖水质监测新技术研究考核试卷
- 玻璃制造的化学稳定性与抗腐蚀性考核试卷
- 《智能网联汽车用摄像头硬件性能要求及试验方法》编制说明
- 2024年3月ITSMS信息技术服务管理体系基础(真题卷)
- 节能评审和节能评估文件编制费用收费标准
- 2023-2024年《劳务劳动合同样本范本书电子版模板》
- 中国居民口腔健康状况第四次中国口腔健康流行病学调查报告
- MOOC 数据挖掘-国防科技大学 中国大学慕课答案
- 中药注射剂合理使用培训
- 第13课+清前中期的兴盛与危机【中职专用】《中国历史》(高教版2023基础模块)
- 2024年国家粮食和物资储备局直属事业单位招聘笔试参考题库附带答案详解
- 苏轼临江仙课件大学语文完美版
- 《施工测量》课件
评论
0/150
提交评论