电机控制
使用 PMSM(永磁同步电机制)为基于传感器和无传感器位置应用实现开环或闭环 FOC(磁场定向控制)方法。
该支持包包括参考示例,可帮助您在 STM32 硬件板上编译和部署电机控制应用(使用 Motor Control Blockset™ 和 Embedded Coder®)。
精选示例
Generate Motor Control Models for Selected Algorithm and Hardware
Use Motor Control Blockset™ to generate a Simulink® model that is configured for a specific hardware and motor control technique.
使用基于 STM32 处理器的板对三相 AC 电机进行开环控制
此示例使用开环控制(也称为标量控制或伏特/赫兹控制)来运行电机。这种方法会改变定子电压和频率来控制转子转速,而不使用来自电机的任何反馈。您可以使用这种方法来检查硬件连接的完整性。开环控制的恒速应用使用固定频率的电机电源。开环控制的可调速应用需要可变频率电源来控制转子转速。为了确保恒定的定子磁通,请保持电源电压振幅与其频率成比例。
Field-Oriented Control of PMSM Using Position Estimated by Neural Network on STM32 Processor Based Boards
Implement field-oriented control (FOC) of a permanent magnet synchronous motor (PMSM) using rotor position estimated by an auto-regressive neural network (ARNN) trained with Deep Learning Toolbox™.
Getting Started with Hardware Profiling
Demonstrates how to perform real-time execution profiling of algorithms using the Embedded Coder® Support Package for STMicroelectronics® STM32 Processors. It covers two primary profiling methods:
使用基于 STM32 处理器的板实现 PMSM 的无传感器磁场定向控制
此示例采用磁场定向控制 (FOC) 方法来控制三相永磁同步电机 (PMSM) 的转速。有关 FOC 的详细信息,请参阅磁场定向控制 (FOC) (Motor Control Blockset)。
Field-Oriented Control of PMSM with Hall Sensor Using STM32G4xx Based Processors
Implements the field-oriented control (FOC) technique to control the speed of a three-phase permanent magnet synchronous motor (PMSM). The FOC algorithm requires rotor position feedback, which is obtained by a Hall sensor.
Hall Offset Calibration for PMSM with STM32 Processors
Calculates the offset between the rotor direct axis (d
-axis) and position detected by the Hall sensor. The field-oriented control (FOC) algorithm needs this position offset to run the permanent magnet synchronous motor (PMSM) correctly. To compute the offset, the target model runs the motor in the open-loop condition. The model uses a constant (voltage along the stator's d
-axis) and a zero (voltage along the stator's q
-axis) to run the motor (at a low constant speed) by using a position or ramp generator. When the position or ramp value reaches zero, the corresponding rotor position is the offset value for the Hall sensors.
Estimate PMSM Parameters Using STM32 Processor
Determines the parameters of a permanent magnet synchronous motor (PMSM) using the recommended STM32xx based board. The tool determines these parameters:
Six-Step Commutation of BLDC Motor Using Hall Sensor Feedback for STM32G4xx Based Processors
Control the speed and direction of a three-phase brushless DC (BLDC) motor using the six-step commutation technique in 120-degree conduction mode. The example uses the switching sequence generated by the Six Step Commutation (Motor Control Blockset) block to control the rotor speed and direction by adjusting the three-phase stator voltages.
Hall Sensor Sequence Calibration for STM32G4xx Based Processors
Control a BLDC motor by calculating the Hall sensor sequence with respect to position zero of the rotor in open-loop control. By using this method, you can use six-step commutation to control the motor without the need to label the Hall sensors or derive the switching sequence. Run this example on STM32G4xx Based Processors and obtain the Hall sequence, and use this Hall sequence with the Six Step Commutation (Motor Control Blockset) block to run the motor in closed-loop as explained in the Six-Step Commutation of BLDC Motor Using Hall Sensor Feedback for STM32G4xx Based Processors example. The Hall sequence calibration algorithm drives the motor through a full mechanical revolution and computes the Hall sensor sequence relative to the rotor's position zero in open-loop control.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)