Welcome to Journal of Automotive Safety and Energy,

Journal Of Automotive Safety And Energy ›› 2014, Vol. 5 ›› Issue (02): 166-171.DOI: 10.3969/j.issn.1674-8484.2014.02.008

• Automotive Energy Efficiency & Environment Protection • Previous Articles     Next Articles

Design and implementation of FOC control algorithm for PMSM motor based on Matlab/Simulink

Pawel Stojaczyk, Dawid Woroch, HONG BO, WEI Yintao*   

  1. State Key Laboratory of Automotive Safety and Energy, Tsinghua University, Beijing 100084, China
  • Received:2013-12-06 Online:2014-06-25 Published:2014-06-27

Abstract:

PMSM (permanent magnet synchronous motor) drive systems has been having general used in
various industries needed high precision control due to a rapid development of microprocessors. The proper
system configuration is still complex and time consuming. To overcome such a limitation, this paper presents
a FOC (Field Oriented Control) algorithm for PMSM speed control algorithm performed in Matlab/Simulink by
using standard blocks only, which is realized in almost any DSP (Digital Signal Processing) processor by using
auto-coding tool in Matlab. STM32F4 microcontroller was employed. Simple Active Currents Reading Error
Compensator was introduced for appropriate feedback signals filtering. Precision of the signal was set to around
10 mA of current –10 Bit with an Analog-to-Digital Converter operated by three bidirectional 5-A Hall current
sensors. A PMSM sensored motor was tested in 0~2 000 r/min. The experimental step responses to desired
speeds show good dynamic and smooth performance of the entire system.

Key words: permanent magnetism synchronous motor (PMSM), field oriented control (FOC), Matlab/Simulink, currents reading error compensator, autocoding

CLC Number: