Simulink, the graphical programming environment, allows the programming of certain external hardware boards. This particular functionality allows users to develop various embedded systems simpler and faster. Among many microcontroller boards, which Simulink software supports, are also Arduino microcontrollers. In my final work I presented using the Simulink environment for programming microcontroller Arduino Due.
The purpose of this study is to demonstrate the use of Matlab-Simulink (later in the work, Simulink only) for Arduino microcontroller programming. The first part describes the use and functionality that the Simulink environment, combined with Arduino, offers. The library that supports these microcontrollers is presented, as well as its application. The two operating modes of Arduino via Simulink, namely External and Deploy to hardware mode, are also described. The option of writing new block-function for Arduino, are presented.
The second part demonstrates the execution of an independent regulator, with the possibility of adjusting the parameters, the reference and the monitoring of the current situation. The program for this regulator was made in the Simulink environment and loaded on to the Arduino hardware. At the end also the tests are presented with which I determined the parameters of the regulated system and tested the quality of the operational reliability of Arduino in the role of a regulator.
|