Get Started with Motor Control Blockset
Motor Control Blockset™ provides Simulink® blocks and reference examples for developing and deploying motor control algorithms as optimized C and HDL code on target microcontrollers, FPGAs, or systems-on-chip (SoC). Build motor control algorithms with Clarke and Park transform, Maximum Torque Per Ampere (MTPA), six-step commutation, and lookup table (LUT)-based field weakening control blocks. You can process signals from encoders, hall sensors, and resolvers with sensor decoder blocks or implement sensorless control with estimator blocks to compute rotor position and speed. The blocks generate code that you can use in workflows involving MISRA C™ and ISO® 26262 functional safety standards.
Reference examples included in Motor Control Blockset help you understand how to develop, tune, and validate motor control algorithms using desktop and real-time simulation. Examples include algorithms for closed-loop motor control for induction motors, switched reluctance motors (SRM), synchronous motors like brushless DC motors (BLDC), and surface-mount and interior permanent magnet synchronous motors (PMSM). You can reuse the same algorithms to generate production-ready, compact, and traceable fixed- or floating-point code. You can also use the reference examples to implement algorithms for motor control hardware kits supported by the blockset.
- Create and Validate Model for Motor Control System
Create, deploy, and validate control algorithm for motor control system.
- Run 3-Phase AC Motors in Open-Loop Control and Calibrate ADC Offset
This example uses open-loop control (also known as scalar control or Volts/Hz control) to run a motor.
- Estimate Motor Parameters Using Motor Control Blockset Parameter Estimation Tool
Estimate motor parameters by using parameter estimation feature in Motor Control Blockset.
- Program Control Flow of Motor Control Blockset Examples
Design control flow of field-oriented control algorithm.
- How to Use Hall Validity and Hall Decoder Blocks
Integrate Hall sensors with control algorithm to decode rotor position and speed.
- How to Use Field Oriented Control Autotuner Block
Use the Field Oriented Control Autotuner block to tune PI control loops in field-oriented control applications.
- Estimate Control Gains and Use Utility Functions
Perform control parameter tuning for speed and torque control subsystems.
- Hardware Connections
Connect motors, sensors, and power supply to hardware boards.
- Model Configuration Parameters
Configure Simulink model to interface with supported target hardware.
About Motor Control
- Open-Loop and Closed-Loop Control
Describes open-loop, closed-loop motor control, and transition from open-loop to closed-loop control.
- Field-Oriented Control (FOC)
Implement speed control for PMSM and induction motor by using field-oriented control.
- Six-Step Commutation
Implement speed control for BLDC motor by using six-step commutation.
- Direct Torque Control (DTC)
Implement speed control for PMSM by controlling motor flux and torque.
- Host-Target Communication
Describes host model, target model, and how they communicate.
- Current Sensor ADC Offset and Position Sensor Calibration
Describes offsets for Hall sensor, quadrature encoder, and current sensor ADC.
- Per-Unit System
Defines a normalized unit system by using the base values.
Motor Control Algorithms
Implementation, Calibration, and Debugging Techniques for Embedded Systems
Motor Control Blockset Overview
Learn about Motor Control Blockset capabilities