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 implement the field-oriented control (FOC) technique to control the speed of a three-phase PMSM. The examples use 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 to develop and evaluate either 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 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
- Download the repository and extract the contents.
- For instructions to use these demos, see the enclosed pdf documents.
MathWorks® Products
Requires MATLAB® release R2021b or newer
3rd Party Products
- MPLAB® X IDE and IPE (v5.45 or later)
- MPLAB® XC compilers (v1.6 or later)
- MPLAB® Device Blocks for Simulink Toolbox
Getting Started
For detailed instructions to use these demos, see the enclosed pdf documents.
A Mathworks-Microchip joint webinar is available here.
License
The license is available in the License.txt file in this GitHub repository.
Community Support
Copyright 2022 The MathWorks, Inc.
Cite As
MathWorks Motor Control Blockset Team (2023). Motor-Control-Microchip (https://github.com/mathworks/Motor-Control-Microchip/releases/tag/v1.3.0), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Communities
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
ATSAME70Q21/Sensor/PositionControl
ATSAME70Q21/Sensor/SpeedControl
ATSAME70Q21/Sensorless
dsPIC33EP
ATSAME70Q21/Sensor/PositionControl
ATSAME70Q21/Sensor/SpeedControl
ATSAME70Q21/Sensorless
dsPIC33EP
Version | Published | Release Notes | |
---|---|---|---|
1.3.0.0 | See release notes for this release on GitHub: https://github.com/mathworks/Motor-Control-Microchip/releases/tag/v1.3.0 |
||
1.2.0 | See release notes for this release on GitHub: https://github.com/mathworks/Motor-Control-Microchip/releases/tag/v1.2.0 |
||
1.1.0 | See release notes for this release on GitHub: https://github.com/mathworks/Motor-Control-Microchip/releases/tag/v1.1.0 |
||
1.0.1 | See release notes for this release on GitHub: https://github.com/mathworks/Motor-Control-Microchip/releases/tag/v1.0.1 |
||
1.0.0 |
|