MATLAB Answers


Missing Simulink Support for Arduino MKR Motor Carrier and Arduino Sensors

Asked by Sahil Girish on 5 Oct 2018
Latest activity Commented on by Jon Kelly on 4 Sep 2019 at 11:20
I have successfully installed the Arduino Engineering kit toolbox and the MKR Motor Carrier library. I have been able to execute code and simulink simulations up to Section 2.3.2 of the engineering kit tutorial without any problems. However for section, it appears that two toolboxes are missing from my library: - Simulink Support for Arduino MKR Motor Carrier - Simulink Support for Arduino Sensors I have installed and can see the 'Simulink Support Package for Arduino Hardware' in my libraries browser but it is completely empty. I would greatly appreciate some help in locating or install the aforementioned missing packages.
Thanks and regards, Sahil Girish


Sign in to comment.

1 Answer

Answer by MathWorks Maker Team on 5 Oct 2018
 Accepted Answer

I strongly suspect you are on R2018b and am posting this. I suspect the MKRMotorCarrier is not showing up due to a bug that a user identified. The easiest way to confirm is Click on Add-Ons > Manage Add-Ons on the toolstrip at the top of MATLAB. Here check the version of Arduino_Engineering_Kit_Hardware_Support_18b. This is the file you must have for R2018b, if you have Arduino_Engineering_Kit_Hardware_Support uninstall that and install the latest version (1.1.1) of Arduino_Engineering_Kit_Hardware_Support_18b and you will get MKRMotorCarrier Library. You don't need the ArduinoSensors library in R2018b.
If you are on R2018a, please uninstall and reinstall the Arduino_Engineering_Kit_Hardware_Support toolbox from Add-Ons > Manage Add-Ons.
Does your Simulink support package for Arduino look something like the following image? If not, please uninstall and reinstall this as well.
If you decide to uninstall and reinstall any of these, please remember to open MATLAB with administrator access as that helps. Right click on MATLAB icon and select Run as administrator for this.
HTH, Madhu


Show 1 older comment
I have a similar/same problem. I am trying to run the arduinosetup command but recieve the Arduino/MTRMotorCarrier can not be found error. I have the Arduino_Engineering_Kit_Hardware_Support_18b installed as I am running 2018b. I have uninstalled and reinstalled and restarted Matlab but to no avail.
Please help.
@Jon - please check if you followed the imporant notes under the toolbox?
Important notes:
1) After installing this toolbox, type the following command in MATLAB to open the ReadMe
>> edit ArduinoKitHardwareSupportReadMe.txt
2) Be sure to follow the steps in this file, as it provides instructions on downloading the Arduino library for the MKR Motor Carrier. This library is required for some of the functionality to work.
If you did and are still running into issues, please reach out to MathWorks Technical Support using this page.
Ahhh great! Thank you.

Sign in to comment.