电机控制
R2026b使用 PMSM(永磁同步电机制)为基于传感器和无传感器位置应用实现开环或闭环 FOC(磁场定向控制)方法。
STM32™ Microcontroller Blockset 包含参考示例,可帮助您在 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.
Open-Loop Control of 3-Phase AC Motors Using STM32 Processor Based Boards
Run a three-phase AC motor on an STM32 processor-based board using open-loop scalar.
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
Measure real time execution performance of algorithms on STM32 processors.
Sensorless Field-Oriented Control of PMSM Using STM32 Processor Based Boards
Implements the field-oriented control (FOC) technique to control the speed of a three-phase permanent magnet synchronous motor (PMSM). For details about FOC, see 磁场定向控制 (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)









