Motor Control Blockset™ provides reference examples and blocks for developing field-oriented control algorithms for brushless motors. The examples show how to configure a controller model to generate compact and fast C code for any target microcontroller (with Embedded Coder®). You can also use the reference examples to generate algorithmic C code and driver code for specific motor control kits.
The blockset includes Park and Clarke transforms, sliding mode and flux observers, a space-vector generator, and other components for creating speed and torque controllers. You can automatically tune controller gains based on specified bandwidth and phase margins for current and speed loops (with Simulink® Control Design™).
The blockset lets you create an accurate motor model by providing tools for collecting data directly from hardware and calculating motor parameters. You can use the parameterized motor model to test your control algorithm in closed-loop simulations.
This example uses open-loop control (also known as scalar control or Volts/Hz control) to run a motor.
Estimate motor parameters by using parameter estimation feature in Motor Control Blockset.
Perform control parameter tuning for speed and torque control subsystems.
Connect motors, sensors, and power supply to hardware boards.
Configure Simulink model to interface with supported target hardware.
Open-Loop and Closed-Loop Control
Describes open-loop, closed-loop motor control, and transition from open-loop to closed-loop control.
Implement speed control for PMSM and induction motor by using field-oriented control.
Implement speed control for BLDC motor by using six-step commutation.
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.
Defines a normalized unit system by using the base values.