ST FOC 5.0说明书 快速入门 SDK v5.0.pdf
ST FOC 5.0说明书 配合 开源库 https://download.csdn.net/download/hxinstar/10322042使用UM2374List of tablesList of tablesTable 1. List of acronymsTable 2Document revision history..23UM2374 Rey 13/24List of figuresUM2374List of figuresFigure 1. ST MC Workbench -Icon and installation folder treeFigure 2. ST MC Workbench-GUI expanded top viewFigure 3. ST Motor Profiler-GUI889Figure 5. ST Motor Profiler-SM-PMSM parameters exampleFigure 4. ST Motor Profiler- Hardware setup list examples1011Figure 6. ST Motor Profiler-l-PMSM parameters exampleFigure 7. ST Motor Profiler-Measurement results12Figure 8. ST Motor Profiler-Save window13Figure 9. ST MC Workbench - New Project window14Figure 10. ST MC Workbench -New Project Info window14Figure 11. ST MC Workbench -Project Settings15Figure 12. ST MC Workbench-Project Settings window.15Figure 13. ST MC Workbench -Project generation button16Figure 14. ST MC Workbench -Workspace selectionFigure 15. ST MC Workbench -Project generation build infoFigure19. ST MC Workbench- Use of the motor control and monitoring.∴、∴,"…,,∴…….17Figure 16. IDE-MC Project view example18Figure 17. STMC Workbench-Motor monitoring button.19Figure 18. ST MC Workbench -Motor monitoring GUI204/24UM2374 Rey 1/UM2374General informationGeneral informationThe Mc sDK is used for the development of motor-control applications running on STM3232-bit microcontrollers based on the arm Cortex-M processorTable 1 presents the definition of acronyms that are relevant for a better understanding ofthis documentTable 1. List of acronymsAcronymDescriptionGUIGraphical user interfaceIDEIntegrated development environmentFOCField-oriented controlFWFirmwareMotor controlMC WBMotor control Workbench(STMicroelectronics sw tool)MPMotor Profiler(STMicroelectronics software tool)PMSMPermanent-magnet synchronous motorPWMPulse-width modulationSDKSoftware development kitVCVector controlMore information about ST MC Workbench is provided in the stm32 motor control SDKv5.0toolsusermanual(um2380)availableatwww.st.comarmUM2374 Rey 15/24Motor control ecosystem setupUM23742Motor control ecosystem setupA suitable ST Motor Control ecosystem environment includesA PC running the needed Mc software toolsA third-party IDEa third-party ANSI C-compilerA JTAG/SWD interface for debugging and programmingAn STMicroelectronics application board with one of the STM32 microcontrollerssupported. It drives the power stage and featuresPWM outputs to gate driverADC channels to measure currentsDC bus voltageA three-phase PMsM motol· A power supplyRefer to the STM32 motor control software development kit(Mc sDk data brief(DB3548)atwww.st.comandtothereleasenoteformoredetails2.1Software tool setupThe STMicroelectronics motor-control ecosystem runs on a pc with Windows7The following Pc software tools are correctly installedST MC Workbench (v5.0.0 or later)STM32CubeMX(v4 24.0 or later)ST-LINK/2(v4.0.0 or later)Any supported IDEIAR Embedded Workbench@ for Arm(v7.80.4Keil MDK tools (v5.24.2 or later)Ac6 System Workbench(v2.3.0 or later)(a)Refer to the respective user manuals for proper installation. STMicroelectronics documentsareavailablefromtheinternetsiteatwwwst.comSTM32 motor control SDK v5.0 tools user manual (UM2380STM32 CubeMX for STM32 configuration and initialization c code generation usermanual (UM1718)STM32 ST-LINK utility software description user manual(UM0892)The AC6 tool framework is not supported in SDK v5.0 but in later versions6/24UM2374 Rey 1/UM2374Motor control ecosystem setup22Hardware setupThe connection of the STMicroelectronics application board to the pc requires a USBType-A connector. Refer to the description of the application board for details on the USBcableA dedicated description card is delivered with each STMicroelectronics application board forproper installation For more details, refer to the user manual of the board available atwww.st.comThe selected hardware can be one of the three setups· The complete MC KitOne of the complete inverter boardsAny STM32 evaluation board combined with one of the ST evaluation power stagesthat include the mc connectorUM2374 Rey 17/24Getting StartedUM23743Getting StartedWarning: Check that the board is correctly configured for the motorcontrol application and supplied with the expected inputvoltageNoteRefer to the user manual of the related hardware to setup the correct configuration, voltagerange, serial communication capabilities, and programming/debugging interface3.1Hardware connectionConnect a uSb cable between the pc and the stmicroelectronics application board andthe JTAG/SWD programming cable if it is different from the USB cable3.2Motor profilingLaunch the ST MC Workbench software tool either byclicking on its iconrunning it directly from the installation folder treeBoth ways of launching the ST MC Workbench are illustrated in Figure 1Figure 1. ST MC Workbench- Icon and installation folder treeI STMicroelectrorics感FOC SDKLv.3.0MotorControlv500WorkBenchST Motor Control Workbenchd ST Motor profileren the st motor profiler tool either byUsing its dedicated button in the St Mc Workbench GUl as illustrated in Figure 2Running it directly from the installation folder tree as illustrated in Figure 1Figure 2. ST MC Workbench-GUl expanded top viewFile Tools Help Documet ta ionNew ProjectLoad Project4 About HelpMotor ProfilRcGert ProJEcts己tdbrsDRpower board8/24UM2374 Rey 1/UM2374Getting StartedClick on the Select Boards button to display the list of supported boards as shown onFigure 3 and select the STMicroelectronics application board setup. Figure 4 on page 10presents examples from this listNoteThe ST Motor Profiler tool may be used only with ST hardware in the list of supportedsetups.Figure 3. ST Motor Profiler-GUI2 ST Motor Profile.l:e augmentedMotor ProfilersPole pairsPe row to detecbeed and Current /mitsMaκSpet1600FPMn7 Select Board∧pk02530pkMagnetic: SM-PMSN○-NSMMechanIcal mode lO CenElectrical modelOW000UM2374 Rey 19/24Getting StartedUM2374Figure 4. ST Motor Profiler-Hardware setup list examplesE ST Motor ProfiY Hideabsolete boarde arch Control board by narSe arch power boac bv nareControl boardower BoardxCancelHide boards with warningNUCLEO-F302R8X-NUCLEO-HMOTM1 3shNUCLEO-F302R8X-NUCLEO-HMOBM1 3shT2F302R8T6L6230PDSTM32F302R8T6STL22ON6FT●Acf8m:m3SELNRV2 Emiol connectorC Product Web PageG Product Web PageC Product Web PageC Product Web PageNUCLEO-F303RESTEVAL-IPMO5F 3ShNUCLEO.F303RESTEVAL-IPM108 3sh●Aiv命Ativ● Ac livSn Ngor ombreI connectorST-LINKV2C Product Web PageC Product Web PageC Product Web PageC Product Web PageClick on the sTmicroelectronics hardware setup to select it and configure the st motorProfiler toolAs an example, Figure 4 shows the selection of the P-NUCLEO-IHM001 motor controlNucleo pack with NucLEo-F302R8 and X-NUCLEO-IHMO7M1After hardware setup selection, fill in the parameter fields with the motor informationThe number of pole pairs of the motor(mandatory fieldThe Max Speed of the motor(optional field)by default, the st Motor Profiler tool searches for the maximum allowed speedmatching the motor and the hardware setup usedThe Max Current allowed by the motor(optional field)By default, it is the maximum peak current deliverable by the hardware setupThe nominal dC bus voltage used by the hardware setup(optional field)By default, it is the power supply stage as either the bus voltage for low voltageapplications(DC voltage), or the RMs value for high voltage application(Ac voltage)The magnetic built-in type(mandatory field)By default, the SM-PMSM is selectedThe Ld/Lq ratio(mandatory field only when l-PMSM built-in is selected as shown inFigure 6 on page 1110/24UM2374 Rey 1/
- 2020-11-29下载
- 积分:1
模拟AM与FM调制解调系统
实验 1 :模拟AM调制解调系统幅度调制解调技术是一种最简单的模拟调制方法,而且通过幅度调制容易理解调制的概念。本实验通过 LabVIEW 编程产生信号频率、幅度等参数可变的基带信号和载波信号,实现 AM 调制和解调,观察参数变化对已调信号的影响。并通过仿真运行整个 AM 调制解调系统,学习掌握代码调试方法,验证程序的正确性。实验 2 :模拟FM调制解调系统利用 LABVIEW 仿真,产生基带信号频率、载波频率及频偏等参数可变的 FM 调制解调系统,观察参数变化对被调制信号以及其 FFT 功率谱的影响。并通过仿真运行整个 FM 调制解调系统,学习掌握代码调试方法,验证程序代码的正确性。通信原狸与系统实验报告【程序设计】1、总体程序实验1:模拟AM调制解调系统AM信亏波形翌(时)波信号上边带下边带正弦波形(时域)载波幅值制信号湖形图(时域)调制值颗谱测量AM洞制信号波形因(罚信号「·(峰值100000实验2:模拟FM调制解调系统载波率f(Hz)仿真信号3网回區最大偏移量f(Hz仿真信号2信号基带率和b(HzPower SpectruA圆周信号域仿真信号FM调制信号弦10000001000000导数dxdt)Simulate正弦通信原理与系统实验报告2、部分函数图音分函数图Hilbert变换函数部至复数转换复数至极坐标转换交流和直流分量估计归一化波形【实验内容】实验1:模拟AM调制解调系统1、按(P2713)的实验步骤1完成AM调制2、按(P2)的AM解调原理的提示完成AM解调根据实验教程,仿真信号快速ⅥI与频谱测量快速Ⅵ发其最终对话框选项设置如下:信号关型O幅(均方慢)加后的辅轴入信号5.583643幅度(峰直盐r变谱功增密赏占空比5.5050450D2040.60B口加难声声型099999阳果览种子值验时识相对于更开时间吧对(日期与时于均数日100000仍真平集时轴更信号采枉盈重置相位,种子和时标识乐月连续生成生递每次环口整数需吗数信号名称实玩无样数10o信号名称取商在前面板中设置参数如卜:载波幅值调制幅值11.:1戴冷200m1……4006008001000020406080100120140160180200调制频率0250500750100012501500175020000204060801001201401601802004通信原理与系统实验报告设置好参数后,运行程序,结果如图所示载波信号波形(时域)弦M4M制信号波形(时域正弦20020015050-15020020000.020.040.060.080.100.020.040.060.080.1时间时间AM调制信号形图(数城)开F:(值)四4M解号形(时城)5002050150200-15010020030040050000.020.040.060.080.1频率时间分析:观察“AM调制信号波形图(时域)”图可知:经过AM调制将调制信号加载到载波信号上后,形成的包络恰好与基带信号一致。观察“ΔM调制信号波形图(频域)”图可知:最左边的频谱为基带信号的频谱,而右边的三个频谱从左到右依次为下边带fc-fb,载波fe,上边带fc+fb的频谱。观察“AM解调信号波形图(时域)”图可知:解调后的信号与基带信号基本重合,说明运用包络检波法解调信号成功。改变实验参数增大基带信号的幅度,其他参数不变分析:如下图所示,前两幅图分別为增大基带信号幅度前的调制信号的时域图和频域图,后面两幅图为增大基带信号幅度后的调制信号的吋域图和频域图。通过观察图像可发现:增大基带信号樞度,其他参数不变的情况下:调制信号在时域上的幅度随基带信号幅度的增大而増大,而频域上不发生变化。5通信原狸与系统实验报告AM调制信号波形图(时域)AM调制信号波形(频域)应(F·(值)3005020050100200150300200-00.020.040.060.080.1100200300400500时间AM调周制信号波形图(时城)AM调制信号波形图(频域)正弦(FT·(峰值)50200100-1001002003000.020.040.060.080.10100200300400500时间频率增大基带信号的频率,其他参数不变分析:如下图所示,前两幅图分别为增大基带信号频率前旳调訇信号的时域图和频域图,后面两幅图为增大基带信号频率后的调制信号的时域图和频域图。通过观察图像可发现:增大基带信号频率,其他参数不变的情况下:调制信号在时域上的频率随基带信号频率的增大而增大,而频域上也发生了右移。AM调制信号波形图(时域MAM调制信号波形图(城)F·(峰值))M5020010050100200150-30020000.020.040.060.080.10100200300400500时间频率通信原理与系统实验报告AM调制信号波形图(时域)AM调制信号波形图(颈域)正弦·(峰值)50-200100500100-10020030020000.020.040.060.080.10100200300400500时间增大载波信号的幅度,其他参数不变分析:如下图所示,前两幅图分别为增大载波幅度前的调制信号的时域图和频域图,后面两幅图为增大载波幅度后的调制信号的时域图和频域图。通过观察图像可发现:增大载波幅度,其他参数不变的情况下:调制信号在时域上的幅度随载波信号幅度的增大而增大,而频域上不发生变化。AM调制信号波形图(时域)正弦AM调制信号波形圈(频域)H·(峰值)30050200010-500-100-200-150300-20000.020.040.060.080.10100200300400500时间频率AM调制信号波形图(时域)正弦AM制号形(炫)芷奸:()人503000200100细10020015030040020000.020.040.060.080.110200时间频率通信原狸与系统实验报告增大载波信号的频率,其他参数不变分析:如下图所示,前两幅图分别为增大载波频率前的调制信号的时域图和频域图,后面两幅图为增大载波频率后的调制信号的时域图和频域图。通过观察图像可发现:增大载波频率,其他参数不变的情况下:调制信号频率在时域上的频率随载波信号频率的增大而增大,而频域上也发生了右移。AM调制信号波形图(时城正弦AM调制信号波形图(颁域)正弦任FT·(峰值)3002000100200-300-20000.020.040.060.080.10100200300400500时间频率AM调制信号波形图(时域)正凶M制儒号形图(域):(峰)300502001000-100-20030020000.020.040.060.080.10100200300400500时间实验2:模拟FM调制解调系统、按(322.3)实验内容完成FM的调制2、按(3223)的实验内容元成FM的解调根据实验教程,仿真信号快速Ⅵ与频谱测量快速ⅥI及其最终对话框选项设置如下通信原理与系统实验报告配雪仿真信号[真台号3]生造量结果预范所选到早3、02691幅度(蜂值位(D功幸造C线性O功率造移量占空比O092Hanning君果候嚣均方根对测经开始间保待O姆对(日期与时词)半均数目C仿真菜对钟申仨号·以可达到最速度运行里相位种了和时标日相位軍预100日)来用端牛应信号名称O当平均时用信号类型名偏学会称□开相位150200250300350400450500阳确定联群取篇□帮数在前面板中设置参数如下:基带频率fb(Hz)载波频率fe(Hz)20000400006000080000100000110000033000005000007000009000001E+6最大偏移量t(Hz)20000400006000080000100000120000140000160000180000205410设置好参数后,运行程序,结果如图所示基带信号(时域正弦A载反信号(时域)正弦0.5000.5-0.505E-50.00010000150.00025E-50.00010.000150.0002时间时间时城须域FM调制信号(时域正弦0.50.52E-6E-58E-50.00010.000120.000140.000160.000180.0002时司通信原理与系统实验报告时域频域FM调制信号(域)正弦(功率-1002000500000150000025000003500000450000055000006500000750000085000001E+7频率FM解调信号(时域)正弦2E-56E-58E-50.00010.000120000140.000160.000180.0002时间分析:观察“FM调制信号(时域)”图与“FM调制信号(频域)”图可知:经过FM调制后产生的波形与原理相符合;观察“AM解调信号波形图(时域)”图可知:解调后的信号与基带信号基本重合,说明运用非相关包络检波法解调信号成功。改变实验参数≯增大基带信号的频率,其他参数不变分析:如下图所示,前两幅图分别为增大基带信号频率前的调制信号的时域图和频域图,后面两幅图为增大基带信号频率后的调制信号的时域图和频域图。通过观察图像可发现:增大基带信号频率,其他参数不变的情况下:调制信号在时域上的频率随基带信号的频率的增大而增大。
- 2021-05-06下载
- 积分:1