Overview

Explore practical examples and tutorials for the MCHP Blockset, organised into three main categories: the Picooz MBD Tutorial (end-to-end walkthrough of a complete Model-Based Design project), University Research Projects featuring advanced motor control techniques, and Microchip Discover Examples providing official reference implementations for embedded system development.

Key Examples

ExampleDescriptionBoardLink
🚁 Picooz MBD TutorialEnd-to-end MBD walkthrough: acquisition → identification → controller → deployment → validation (six chapters, downloadable models and data)dsPIC33AK CuriosityStart here
C Function CallIntegrate custom C code, legacy libraries, and compiler built-insAnyDetails
Field WeakeningExtended speed range motor control for PMSMMCLV-48VDetails
Motor Control FOCField-oriented control for PMSM motorsMCLV-2Getting Started
External ModeReal-time parameter tuning and data visualisationdsPIC33CK CuriosityGetting Started
PIL TestingProcessor-in-the-Loop code verification and profilingAnyGetting Started
Data VisualizationReal-time plotting with picguiAnyGetting Started

🎓 University Research & Advanced Topics

Advanced motor control examples and research projects developed in collaboration with universities and research institutions.

⚡ Field Weakening Motor Control

Advanced PMSM control techniques including field weakening algorithms for extended speed range. Developed in collaboration with INSA Lyon (Laboratoire Ampère) and Microchip Technology.

  • Hurst motor vector control with field weakening
  • Teknic motor vector control with field weakening
  • Complete Simulink models and documentation
  • Hardware setup instructions (MCLV-48V board)

View Field Weakening Documentation →

🌐 ctrl-elec Project Resources

Comprehensive motor control tutorials and resources from the ctrl-elec project, maintained by Romain DELPOUX (INSA Lyon) and Lubin KERHUEL (Microchip).

Resources Available:

  • Vector Control (FOC) tutorials
  • Field weakening techniques
  • Speed observer design
  • Regional pole placement LMI solver
  • High-frequency data logging methodology

External links:

Credits: Romain DELPOUX (INSA Lyon, Laboratoire Ampère UMR CNRS 5005) & Lubin KERHUEL (Microchip Technology Inc.)


🔬 Microchip Discover Examples

Official MATLAB and Simulink examples provided by Microchip Technology through the MPLAB® Discover platform and MATLAB File Exchange. These examples demonstrate peripheral usage, motor control applications, and development board setups.

Download Platforms

Available Example Categories

⚡ Motor Control Examples

  • Field Weakening: Hurst and Teknic motor vector control with extended speed range
  • Vector Control (FOC): dsPIC33CK LVMC vector control implementation
  • PMSM Sensored FOC: Position sensor-based field-oriented control (PIC32MK, SAME54, SAME70)
  • PMSM Sensorless FOC: Observer-based field-oriented control (PIC32MK, SAME54, SAME70)
  • Six-Step Control: Hall-sensor-based BLDC motor control

🔧 Peripheral & Communication Examples

  • UART Terminal: Serial communication with command interface
  • I2C Sensor Interface: I2C bus communication with various sensors
  • SPI Sensor Interface: SPI bus communication examples
  • CAN Communication: Controller Area Network examples
  • EEPROM Access: Non-volatile memory read/write operations
  • ADC Sampling: Analog-to-digital conversion examples

🎛️ Development Board Examples

  • Explorer 16: dsPIC and PIC32 general-purpose development board examples
  • Microstick II: Compact development board demonstrations
  • SAME70 Xplained Ultra: ARM Cortex-M7 evaluation kit examples
  • PIC32MZ Curiosity: PIC32MZ motor control and peripheral examples
  • dsPIC33CK Curiosity: Latest dsPIC family examples
  • LVMC (Low Voltage Motor Control): Motor control development board
  • MCLV (Motor Control Low Voltage): 48 V motor control platform

🔍 Testing & Debug Examples

  • External Mode: Real-time parameter tuning and data visualisation
  • PIL (Processor-in-the-Loop): Code verification and profiling
  • Data Logging: High-speed data capture and analysis
  • Performance Profiling: Execution time measurement and optimization

💻 Code Integration Examples

  • C Function Call: Integrate custom C code, legacy libraries, and compiler built-ins → Detailed Examples

How to Access

  • Option 1: Visit MPLAB® Discover and search for “MATLAB” to browse all available projects.
  • Option 2: Download from MATLAB File Exchange .
  • Option 3: Install via MATLAB Add-On Explorer: search for “MPLAB® Device Blocks for Simulink”.


University research credits: Romain DELPOUX (INSA Lyon) & Lubin KERHUEL (Microchip) Official Microchip examples available through MPLAB® Discover and MATLAB File Exchange

Tutorial — Picooz Helicopter

A complete MBD project, end to end This six-part tutorial walks through a real Model-Based Design project from zero to deployment using a cheap toy …

Read more →

C Function Call — Practical Examples

Overview The C Function Call block enables seamless integration of custom C functions into Simulink models with automatic code generation for …

Read more →

Field-weakening

Introduction This section describes some of the work obtained as part of Hiba Houmsi’s thesis work, in collaboration with Federico Bribiesca …

Read more →