Solution based on the Rapid Control Prototyping (RCP) tool MPLAB Device Blocks for Simulink

Originally intended to 5th year students in the electrical engineering department of INSA Lyon for the CCSA option, the objective of this project is to propose an initiation to the programming environment toolbox MPLAB Device Blocks for Simulink. It allows targeting Microchip Microcontrollers directly from the Matlab-Simulink environment.

Developing embedded code for microcontrollers requires skills that are out of scope of the curriculum of control system engineers which is typically limited to high level tools like Matlab/Simulink and Rapid Control Prototyping tools like dSPACE or Speedgoat. This task is often left to embedded system engineers who are specialists of hardware architecture but have little knowledge in control theory. It is clear that there is a lack of engineers able to deal with the full process from control design to hardware implementation.

This observation is also confirmed by the increasing desire of students in control system courses to learn how to implement algorithms directly on dedicated hardware. Based on this assessment, it has been decided to propose a simple and fast methodology for RCP based on the interface of a microcontroller directly with Matlab/Simulink by taking advantage of the graphical interface provided by the Microchip Technology MPLAB device blocks for Simulink.

The whole project is available on the repository