Skip to content

mathworks/Motor-Control-Microchip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demos for Motor Control Deployment on Microchip Controllers

Field-Oriented Control (FOC) of Permanent Magnet Synchronous Motor (PMSM) Using Microchip's dsPICDEM™ MCLV-2 Development Board

These examples demonstrate parameter estimation, tuning of PI controller gains using the FOC Autotuner, and field-oriented control (FOC) of three-phase PMSM. The examples use the quadrature encoder for position sensing during the parameter estimation and FOC Autotuner. FOC uses flux observer and sliding mode observer position estimation techniques.

The motor control algorithm runs on the Microchip dsPICDEM™ MCLV-2 Development Board. This board provides a cost-effective solution for developing and evaluating 3-phase sensor-based or 3-phase sensorless Brushless DC (BLDC) and PMSM control applications. It supports Microchip’s 100-pin motor control Plug-In-Modules (PIMs) with these controllers:

  • dsPIC33C, dsPIC33E and dsPIC33F Digital Signal Controllers (DSCs)
  • PICM32MK and ATSAME70 families

The board supports the usage of internal on-chip op-amps found on certain dsPIC® and PIC32MK devices as well as external op-amps provided on the MCLV-2 board. For more details about the hardware, see dsPICDEM™ MCLV-2 Development Board (DM330021-2).

Setup

  1. Download the repository and extract the contents.
  2. For instructions to use these demos, see the enclosed pdf documents.

Requires MATLAB® release R2021b or newer

3rd Party Products

Getting Started

For detailed instructions to use these demos, see the enclosed pdf documents.

A Mathworks-Microchip joint webinar is available here.

Open in MATLAB Online

License

The license is available in the License.txt file in this GitHub repository.

Community Support

MATLAB Central

Copyright 2022 The MathWorks, Inc.