Link Search Menu Expand Document

MCHP

PMSM FOC using Quadrature Encoder

This example application shows how to control the Permanent Magnet Synchronous Motor (PMSM) with Quadrature Encoder based Field Oriented Control (FOC) on a PIC32MK microcontroller.

Description

Permanent Magnet Synchronous Motor (PMSM) is controlled using Field Oriented Control (FOC). Rotor position and speed is determined using Quadrature Encoder. Motor start/stop operation is controlled by the switch and motor speed can be changed by the on-board potentiometer. Waveforms and variables can be monitored runtime using X2CScope.

Downloading and building the application

To clone or download this application from Github, go to the main page of this repository and then click Clone button to clone this repository or download as zip file. This content can also be downloaded using content manager by following these instructions.

Path of the application within the repository is apps/mcp_pmsm_foc_encoder_pic32_mk .

To build the application, refer to the following table and open the project using its IDE.

Project Name Description Demo User Guide
mclv2_pic32mk_mcf_pim.X MPLABX project for MCLV2 board with PIC32MK MCF PIM MCLV2 with PIC32MK MCF PIM
mclv2_pic32mk_mcm_pim.X MPLABX project for MCLV2 board with PIC32MK MCM PIM MCLV2 with PIC32MK MCM PIM
mclv2_pic32mk_mca_pim.X MPLABX project for MCLV2 board with PIC32MK MCA PIM MCLV2 with PIC32MK MCA PIM
mchv3_pic32mk_mcf_pim.X MPLABX project for MCHV3 board with PIC32MK MCF PIM MCHV3 with PIC32MK MCF PIM
mchv3_pic32mk_mcm_pim.X MPLABX project for MCHV3 board with PIC32MK MCM PIM MCHV3 with PIC32MK MCM PIM


Copyright © 2020 Microchip Technology.