Live Events

Developing Field-Oriented Control Algorithms for Brushless Motors


Field-oriented control is a popular means of controlling brushless motors used in automotive, industrial, aerospace, and consumer applications. Motor Control Blockset for Simulink speeds up the development of a field-oriented controller by helping you to verify control algorithms using simulation and generate compact and efficient code for a microcontroller.

In this session, MathWorks engineers will walk you through a reference example of field-oriented control algorithm simulation and code deployment to a TI C2000 microcontroller for a permanent magnet synchronous motor (PMSM). 


  • Model motor and inverter dynamics at different levels of fidelity   
  • Design a field-oriented controller, including current, and torque/speed loops using a quadrature encoder or Hall sensor  
  • Implement Park and Clarke transforms, and a space vector generator   
  • Use automatic PID tuning to set the controller gains for current and speed loops   
  • Verify controller performance through closed-loop simulations  
  • Generate code for a Texas Instruments C2000 microcontroller and operate the current loop of the PMSM at 20 kHz 

Note: To learn more about developing controllers for TI’s multicore MCUs, attend the webinar Motor Control with TI Multicore MCUs Using Simulink. This webinar will cover topics such as partitioning control algorithms, managing inter-processor communication and synchronization between cores, and deployment to the TI Delfino F28379D LaunchPad. 

About the Presenters

Anton Vesenmaier
Anton Vesenmaier is an Application Engineer at MathWorks. His main areas of expertise are automatic code generation for embedded systems and AUTOSAR, systems engineering and other tasks in the context of Simulink.

Eva Pelster
Eva Pelster is a Senior Application Engineer at MathWorks. She holds degree in Aerospace Engineering from the University of Stuttgart. Her focus at MathWorks is on model-based design workflows and physical modeling applications. 

Product Focus

This live webinar has ended. You can now view the on-demand webinar.

See on-demand webinars