Introduction

The Permanent Magnet Synchronous Motor (PMSM) is widely used in various industries due to its high power density, smaller size, and higher efficiency. For applications which require fast dynamic response for speed and torque changes, sophisticated control techniques, such as Field Oriented Control (FOC) are required. Speed sensor-based FOC is useful for avoiding control inaccuracies, which may arise in sensorless control due to variation in physical parameters of the motor, which happens because of temperature variation and aging. However, such applications must have the provision to mount the speed sensor like an incremental encoder. This document describes the implementation of an encoder-based sensored FOC algorithm for three-phase PMSM using Microchip Technology’s 32-bit MCUs.