File Exchange

image thumbnail

Arduino_Engineering​_Kit_Hardware_Suppo​rt

version 1.1.2 (7.4 MB) by MathWorks Maker Team
MATLAB and Simulink support for hardware components used in the Arduino Engineering Kit.

150 Downloads

Updated 27 Jul 2018

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This package includes MATLAB and Simulink files that allow users to communicate with and control the sensors and actuators used in the Arduino Engineering Kit, most of which are connected through the MKR Motor Carrier. This includes:
• DC motor – control up to 4 DC motors simultaneously
• Servo motor – control up to 8 servo motors simultaneously
• Encoder – read up to 2 encoders simultaneously
• Tachometer – read rotational speed from the hall sensor on the motorcycle’s inertia wheel
• BNO055 IMU sensor – read from the accelerometer, magnetometer, and gyroscope
• Ultrasonic sensor – measure the distance to an object
• LiPo Battery – read the battery voltage

Examples are included to demonstrate how to use the MATLAB functions and Simulink blocks included in this package.

Learn more about the Arduino Engineering Kit at www.mathworks.com/arduino-kit

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.

Comments and Ratings (49)

@James Hill - have you tried turning off the warning using the link in the message?

James Hill

Warning: Class arduinoio.LibraryBase will be removed. Following Add-On classes need to be updated to work in future release :
Arduino/MKRMotorCarrier. Follow steps mentioned in this Arduino Add-On document to update. Click here to turn off this
warning.

Not really sure what I am suppose to be doing with this information. I've opened up the Helper page but the instructions really aren't actionable unless I am writing a full blown Add_on
James

@Jack Day - The schematics for the MKRMotorCarrier is available here: https://store.arduino.cc/usa/mkr-motor-carrier. Maybe that can help. If not, have you considered creating your own block using this resource - https://www.youtube.com/watch?v=qoj8Pa2wi0A

Jack Day

Hi,
Not sure if anyone can help with this, but i'm trying to use this download to read an encoder but don't have the motor shield. Was wondering if anyone knew which pin numbers on the Arduino are being read from the two signal from the two encoders.
Many thanks

James Hill

For anybody still getting this error:
home/gilgamesh007/Documents/MATLAB/SupportPackages/R2018b/toolbox/target/supportpackages/arduinobase/src/MW_PWM.cpp:6:21: fatal error: Arduino.h: No such file or directory
#include "Arduino.h"
^
compilation terminated.
gmake: *** [MW_PWM.o] Error 1
### Build procedure for model: 'myDCMotorControl' aborted due to an error.
Error:Error(s) encountered while building "myDCMotorControl":
### Failed to generate all binary outputs.

Please see this:

https://www.mathworks.com/matlabcentral/answers/407753-arduino-mkr1000-simulink-build-procedure-aborted-due-to-error

and

https://www.mathworks.com/matlabcentral/fileexchange/68620-arduino_engineering_kit_hardware_support_18b?s_tid=FX_rc2_behav

@James Hill - I hear your frustration. In the Chapter you are presented with different ways to compute different items. I feel like this was done with a view to call out the three different items that exist here - the motor shaft, the output of the gears and the final wheels themselves. I don't think that the live script is wrong though as they are trying to characterize the motor and not the gears. I guess the reason for confusion is calling out the Gearbox on the title. I am passing that as a feedback to Arduino to consider addressing in the documents.

James Hill

Not sure if this is the right place to comment as it is about the actual content of the instructions. This has bothered me for a while...

Can I please get clarification as to whether the Live Script created in 2.2 MATLAB Getting Started is the Motor Shaft or the Gear Box axle or just raw encoder buffer that does not even relate the quadrature?

The Live Script presented has no conversion for encoder quadrature nor is there any conversion of the motor shaft to the output axle. No math in the Live Script relates any of these items. It looks to me that we are just reading the encoder buffer. Yet the Plot at the end is Titled "100:1 Gearbox Motor Steady State Response"

Earlier in the Chapter we were presented with the following math:
shaftAngle = readCount(enc) * 360/12;
axleAngle = readCount(enc) * 360/12/100.37;
axleAngleNorm = mod(axleAngle,360);
convSpeed = (stopCount - startCount) * 360/dt/12/100.37

Not a single bit of this math appears in the Live Script.

It seems to me that line in the Live Script that should change is:
speedRaw(ii) = (endCount - startCount) / dt;% calculate speed (cts/s)

Changed to:
speedRaw(ii) = (endCount - startCount) / dt / 12 / 100.37 ;% calculate speed (cts/s)

@Giovanni Rotondi I ran into the same proble as you : everything turning on but impossible to start a motor, and a red LED turned on next to the green "power ON" LED.
Turns out you can solve this issue by reuploading the firmware for the MKR Motor Carrier. In the Arfuino IDE, go to Files > Examples > MKRMotorCarrier > Flasher and upload the sketch to your MKR1000 while it is connected to the carrier. Solved it for me.

@praneet - Have you tried using the external mode to see the data as shown in the learning materials? Once you have established that the data is coming into Simulink, then confirm that the datatypes of the data logger and the Simulink block match.

HTH,
Madhu

Hello

I tried using the block of BNO055 for reading the data, but when i recorded all of them to a MAT file, they were recorded in a format of 3x1 matrix with all element as zero. How do I read it then or is there something that I am missing?

Hi,
I always get this error

arm-none-eabi-g++: error: Add-Ons/myNewMoto_ert_rtw: No such file or directory
arm-none-eabi-g++: error: Add-Ons/Toolboxes/Arduino_Engineering_Kit_Project_Files/Motorcycle: No such file or directory
gmake: *** [MW_arduinoI2C.o] Error 1
The make command returned an error of 2
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
### Build procedure for model: 'myNewMoto' aborted due to an error.
Error(s) encountered while building "myNewMoto":
### Failed to generate all binary outputs.
Component:Simulink | Category:Model error

@Eui Sln Yim - Please contact Technical Support and send them the text file as well so that they can help you better.

Eui SIn Yim

However, then I click 'Program', the constant message I get is: Failed to program the Arduino board. Click the following link to see the error log. Contact Technical Support if you need more help. "C:\Users\Admin\AppData\Local\Temp\MWArduinoLog-181226175653.txt"
This content is "12�썡 26, 2018 5:58:02 �삤�썑 com.mathworks.hwservices.logging
�젙蹂�: �꽕�젙�뙆�씪 濡쒕뵫...
�뙣�궎吏� 珥덇린�솕...
蹂대뱶 以�鍮�...
�솗�씤...
C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\arduino-1.8.1\arduino-builder -dump-prefs -logger=machine -hardware C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\arduino-1.8.1\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages -tools C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\arduino-1.8.1\tools-builder -tools C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\arduino-1.8.1\hardware\tools\avr -tools C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\arduino-1.8.1\libraries -libraries C:\Users\Admin\Documents\Arduino\libraries -fqbn=arduino:samd:mkr1000 -ide-version=10801 -build-path C:\Users\Admin\AppData\Local\Temp\ArduinoServer\MW -warnings=null -prefs=build.path=C:\Users\Admin\AppData\Local\Temp\ArduinoServer\MW -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\openocd\0.9.0-arduino5-static -prefs=runtime.tools.CMSIS-Atmel.path=C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.1.0 -prefs=runtime.tools.bossac.path=C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\bossac\1.7.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.CMSIS.path=C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS\4.5.0 -verbose C:\Users\Admin\AppData\Local\Temp\ArduinoServer\ArduinoServer.ino
C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\arduino-1.8.1\arduino-builder -compile -logger=machine -hardware C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\arduino-1.8.1\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages -tools C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\arduino-1.8.1\tools-builder -tools C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\arduino-1.8.1\hardware\tools\avr -tools C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\arduino-1.8.1\libraries -libraries C:\Users\Admin\Documents\Arduino\libraries -fqbn=arduino:samd:mkr1000 -ide-version=10801 -build-path C:\Users\Admin\AppData\Local\Temp\ArduinoServer\MW -warnings=null -prefs=build.path=C:\Users\Admin\AppData\Local\Temp\ArduinoServer\MW -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\openocd\0.9.0-arduino5-static -prefs=runtime.tools.CMSIS-Atmel.path=C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.1.0 -prefs=runtime.tools.bossac.path=C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\bossac\1.7.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.CMSIS.path=C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS\4.5.0 -verbose C:\Users\Admin\AppData\Local\Temp\ArduinoServer\ArduinoServer.ino
Using board 'mkr1000' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\samd\1.6.12
Using core 'arduino' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\samd\1.6.12
寃쎄퀬: �씪�씠釉뚮윭由� MKRMotorCarrier�뿉�꽌 移댄뀒怨좊━ 'I/o'媛� �쑀�슚�븯吏� �븡�뒿�땲�떎. 'Uncategorized'濡� �꽕�젙
Detecting libraries used... ~ blah blah

@Madhu
It worked! Thanks so much for the help!

@Daniel Krsikapa - The issue is not with the .h or .cpp files as they seem similar to mine. I think the issue is Step 3 example is Documents and you have it under Program Files.

Can you please copy this folder and paste it under ...\Documents\Arduino\libraries where that ... represents your location where your Documents is. Only this will make it work.

If this also does not work -

1) Open MATLAB and type winopen(arduinoio.IDERoot)
2) Go to this location and open arduino IDE from here. (.exe file)
3) Go to File > Preferences and note down the sketchbook folder.
4) Open this location from Windows Explorer and paste your files here.

Hopefully that helps.

@Madhu thanks for the response,
I have done as instructed. I currently have the path..

C:\Program Files (x86)\Arduino\libraries\MKRMotorCarrier\src

And inside this folder there is another 'src' folder, along with multiple other CPP Files, and H Files. It seems there is an H and CPP version of each file name (Battery, DCMotot, PID, etc), HOWEVER, when I look at the MKRMotorCarrier file, I only see an H File version, no CPP File. Additionally, when I open that one MKRMotorCarrier.h file, inside is just the following:

#include "MKRMotorShield.h"

When I look inside the other H files, they appear to have a lot more inside of them.
Also, even though I still get the same error message in matlab, when I type "listArduinoLibraries " in the command window, {'Arduino/MKRMotorCarrier'} does come up, along with other libraries.... but still does not work.

@Daniel - It seems like you have not installed the third party libraries. I am copy pasting the instructions in the ArduinoKitHardwareSupportReadMe.txt to avoid confusion for others in future

The MKRMotorCarrier library is essential for the hardware support to work. To install the library -

1) Download the zip file from https://github.com/arduino-libraries/MKRMotorCarrier/archive/1.0.1.zip
2) Unpackage the zip into local directory and rename the folder to ‘MKRMotorCarrier’
3) Move the 'MKRMotorCarrier’ folder into the "libraries" folder inside your Arduino sketchbook folder
On Windows, the default path is "Documents\Arduino\libraries\"
On Mac, the default path is "~/Documents/Arduino/libraries/"
On Linux, the default path is "/home/<username>/Arduino/libraries"
4) Once the libraries are installed, the folder structure should be similar to:
On Windows "\Documents\Arduino\libraries\MKRMotorCarrier\src"
On Mac, "~/Documents/Arduino/libraries/MKRMotorCarrier/src"
On Linux, "/home/<username>/Arduino/libraries/MKRMotorCarrier/src"
5) Type listArduinoLibraries in MATLAB Command Window and you should see
{'Arduino/MKRMotorCarrier'} among others in the cell array.
If the MKRMotorCarrier library does not appear in the cell array, ensure
Step 3 and Step 4 are executed correctly.

The link in Step 1 is what you should be using to download the 3rd Party library that is needed for this support to work. But I think you have done everything that is needed for this support to work. Please post again if you are still running into issues.

I am trying to use the MKRMotorCarrier also and I have done all the steps already mentioned here. When I run..
>> arduinosetup
..I can see all my libraries which include:
{'Adafruit/MotorShieldV2' }
{'Arduino/MKRMotorCarrier'}
{'I2C' }
{'RotaryEncoder' }
{'SPI' }
{'Servo' }
{'ShiftRegister' }

However, then I click 'Program', the constant message I get is:
"The Arduino source 'MKRMotorCarrier/MKRMotorCarrier.h' for libraries 'Arduino/MKRMotorCarrier' cannot be found. Install the third party library source first and try again."

Please help!

@Giovanni Rotondi - Have you reached to Arduino Customer support? https://store.arduino.cc/usa/store-support

Because the behavior you are observing with LED turning ON even when the MKR Motor Carrier board switch is OFF is not something that I have observed. It only flickers ON once when I turn power ON and everything works just fine with this behavior.

I bought the Arduino Engineering Kit a couple of weeks ago. After all the necessary installations (drivers and libraries) I tried the MKR1000 and MKR Motor Carrier boards, as indicated in the official course on the portal. The MKR1000 works correctly, besides the Blink sketch is successful. I have a problem with the MKR Motor Carrier board when I have to go to read the data from the encoder via MATLAB, using the "readCount (enc)" command I always get "ans = 12" (when I start DC motor or spin manually the encoder magnetic disk). So, the calculated speed is always equal to zero (final reading of the encoder is always the same). The DC motor work correctly!
Also next to the LED POWER ON (green) of the MKR Motor Carrier board, a red light turns on (the green LED and the red LED are both on). The red LED keeps turn on even if the MKR Motor Carrier board's switch is OFF. What can I do?

Nevermind, it's working now. For some reason the addpath command was not working from the command window, but only worked when right-clicking on the folder in the file explorer.

I am running into the same problem that Spencer had. I followed all the instructions and I ran MATLAB as an administrator, but when I list the libraries this is what I get.

ans =
6×1 cell array
{'Adafruit/MotorShieldV2'}
{'I2C' }
{'RotaryEncoder' }
{'SPI' }
{'Servo' }
{'ShiftRegister' }

This is getting very frustrating after spending my own expenses and considerable time on installation and setup. I was looking forward to potentially using this kit full-scale in my classrooms, but I am still incapable of getting past these setup issues with only two weeks before the start of the semester. I think we all deserve urgent help with all these setup issues. May be the kit was rushed to sale before all the compatibility issues were worked out.

I don't want to give up on it yet, so I look forward to your response.

@Spencer Gable-Cook - One more user mentioned they ran into similar issues because of lack of write permissions. To check this, open MATLAB by right clicking on the icon and selecting 'Run as administrator'. After this execute just addpath command in the previous comment and see if listArduinoLibraries works.

If this does not resolve, send me an email from here and I can setup a call to debug this issue.

I have added MKRMotorCarrier to my Arduino libraries folder, and I also move to the extracted folder and executed the two commands in Matlab. However, when I run listArduinoLibraries, I still do not see the MKRMotorCarrier library. Is there anything else I need to do? Thanks for your help.

@Charles Cobourn - Once you have downloaded and extracted the zip file -

From within MATLAB, move to the extracted folder and execute the following commands -
>> addpath(genpath('Arduino_Engineering_Kit_Hardware_Support'))
>> savepath

If you did the Add-On explorer workflow and not zip file, please reach out to me via email and we can debug the issues in detail.
Thanks,
Madhu

I followed the steps to instal the library for the MKR Motor Carrier but it doesn't show up when I run the >>listArduinoLibraries command. Is there something else I need to do inside of Matlab?

For those who are using the Add-On explorer inside MATLAB toolstrip, if it hangs during this process please visit this link https://www.mathworks.com/matlabcentral/fileexchange/66568-arduino_engineering_kit_hardware_support to download the zip file.

Steps to follow -

1) Download and extract the zip file.
2) From within MATLAB, move to the extracted folder and execute the following commands -
>> addpath(genpath('Arduino_Engineering_Kit_Hardware_Support'))
>> savepath

Remember to follow the Important Notes on this submission as well.

For those who are downloading the zip file from File Exchange directly, steps to follow -

1) Download and extract the zip file.
2) From within MATLAB, move to the extracted folder and execute the following commands -
>> addpath(genpath('Arduino_Engineering_Kit_Hardware_Support'))
>> savepath

Remember to follow the Important Note on this submission as well.

Pradeep KS

@Jeff Dillon - I am referring to the spaces on this file exchange submission. Regarding your latest install of MATLAB not launching MLTBX files, could you create a Technical support case describing the behavior and they should be able to assist you with that.

If you run into any issues in future, feel free to shoot me an email. I am eagerly waiting to see what the community is going to build using the Arduino engineering kit :)

Jeff Dillon

I got it! Per your observation Madhu, I reinstalled Arduino Hardware Support and everything is working now. The MKRMotorCarrier option shows up in the arduinosetup dialog. Thanks!

Jeff Dillon

Madhu, thank you for the offer. What space are you referring to? The MKRMotorCarries folders or files have no spaces. When will the toolbox be updated? Also, for some reason, this latest install of Matlab does not launch .mtlbx files.

@JeffDillon - Looks like you have uninstalled the MATLAB Support package for Arduino. The re-installation referred to in these posts are only about Arduino Engineering Kit Hardware Support toolbox. I recommend, waiting till this toolbox submission gets updated to not have any spaces and then reinstalling everything from scratch given that you have uninstalled the MATLAB Support package for Arduino already.

The recommended way to uninstall any hardware support package or toolbox would be to use Manage Add Ons feature. I would be happy to hop on a call with you and help sort out some of the issues you are running into. Please feel free to send me an email through my profile page.

Regards,
Madhu Govindarajan

Jeff Dillon

This is a mess. I reinstalled, and now arduinosetup is not found. When I start MatLab, I get the error "warning: Name is nonexistent or not a directory:
C:\ProgramData\MATLAB\SupportPackages\R2018a\toolbox\matlab\hardware\supportpackages\arduinoio" It is indeed not there. Prior to uninstalling, I noticed the version was 1.18.1, and now the version is 1.1.0.0? I had a previous version of Matlab which I uninstalled, and installed with the education license. Now all support packages appear to be placed into the wrong folders. What is the Windows location for ALL files, Matlab, Arduino and support packages so I can start with a clean system?

@Jeff Dillon - what happens if you type listArduinoLibraries in MATLAB Command Window? I suspect you wont get MKRMotorCarrier in the output of this function. If not, could you try uninstalling and reinstalling this toolbox from Manage Add Ons?

Jeff Dillon

Matthew Yoko What folder name are you referring to? Anyway, I can't get arduinosetup in Matlab to recognize the MKRMotorCarrier library. I created this one minute YouTube that shows the issue. I've put the library in C:\Users\Jeff\Document\arduino\libraries. In the video, I've launched the version of Arduino that comes with the package. It shows the sketchbook folder as expected. It shows the MKRMotorCarrier under Examples, but not under Libraries. And the library is not shown in the arduinosetup dialog. The board is indeed recognized on COM13. Any ideas? https://youtu.be/rWUDorfsKYE

Managed to come right by removing the spacing from the folder name and adding the renamed folder to MATLAB search path

@Nick Choi I tried but it doesn't work. Now none of the blocks work because it thinks the add on is not installed...

Nick Choi

@Matthew Yoko - As a temporary workaround, I would try manually removing the spaces from the installation folder.

Spacing in the installed file name causes most of the engineering kit support blocks to crash. Currently unable to use the tachometer or IMU for the motorbike build. Please advise a fix.

Multiplexer

Where are we supposed to get the project files from? all this contains are libraries and blocks but no actual models for robots

CJ Godfrey

@JonathanFasano not sure if this is the issue but try "listArduinoLibraries" (no space after list).

using the "list ArduinoLibraries" command as specified in the instructions, is not an available command for the Arduino Engineering Package, because there is no access to list due to not having a valid license as the trial is what is supplied, and therefore do not have the "Global Optimization Toolbox".

Is there a way around this?

@James Hill - I am copy pasting the instructions in the ArduinoKitHardwareSupportReadMe.txt to avoid confusion for others in future

The MKRMotorCarrier library is essential for the hardware support to work. To install the library -

1) Download the zip file from https://github.com/arduino-libraries/MKRMotorCarrier/archive/1.0.1.zip
2) Unpackage the zip into local directory and rename the folder to ‘MKRMotorCarrier’
3) Move the 'MKRMotorCarrier’ folder into the "libraries" folder inside your Arduino sketchbook folder
On Windows, the default path is "Documents\Arduino\libraries\"
On Mac, the default path is "~/Documents/Arduino/libraries/"
On Linux, the default path is "/home/<username>/Arduino/libraries"
4) Once the libraries are installed, the folder structure should be similar to:
On Windows "\Documents\Arduino\libraries\MKRMotorCarrier\src"
On Mac, "~/Documents/Arduino/libraries/MKRMotorCarrier/src"
On Linux, "/home/<username>/Arduino/libraries/MKRMotorCarrier/src"
5) Type listArduinoLibraries in MATLAB Command Window and you should see
{'Arduino/MKRMotorCarrier'} among others in the cell array.
If the MKRMotorCarrier library does not appear in the cell array, ensure
Step 3 and Step 4 are executed correctly.

The link in Step 1 is what you should be using to download the 3rd Party library that is needed for this support to work. But I think you have done everything that is needed for this support to work. Please post again if you are still running into issues.

Madhu

James Hill

I believe I found the missing resource:
https://github.com/arduino-libraries/MKRMotorCarrier

Also be aware that zip has the wrong structure. Or least for me. specifically my PID directory was buried one extra level
For Linux the correct structure is:
/home/"Your Home"/Arduino/libraries/MKRMotorCarrier/src/PID/

Will also have to move around the some of the Carrier header files to be in:
/home/"Your Home"/Arduino/libraries/MKRMotorCarrier/

James

James Hill

FYI...

When you read the "ArduinoKitHardwareSupportReadMe.txt" in the zip file it gives the instructions of where the source files need to be placed here /home/"Your Home"/Arduino/libraries/MKRMotorCarrier/src

However when you unzip them they are located here:

"Arduino Kit Hardware Support/matlab/MATLABAddon/+arduinoioaddons/+arduino/src"

Furthermore when you unzip and you are in Linux the original format of "ArduinoKitHardwareSupport" was "Arduino Kit Hardware Support"

copy the "src" directory above to /home/"Your Home"/Arduino/libraries/MKRMotorCarrier/

Of course the in zip Readme does not actually tell you any of this nor does the zip file unzip in the desired file structure nor does the in zip Readme tell what do to the Simulink files; which is nothing by the way. *.mltbx file is handling that; not would have been helpful.

James

Updates

1.1.2

Making changes to add folders to the path by default

1.1.1

Updating the name of the file and the title to remove spaces

1.1.0.0

Updated a file.

MATLAB Release Compatibility
Created with R2018a
Compatible with R2018a
Platform Compatibility
Windows macOS Linux
Communities

matlab/MATLABAddon/+arduinoioaddons/+arduino

simulink/+codertarget/+arduinobase/+internal

simulink/+motorcarrier/+blocks

simulink/+motorcarrier/+internal

simulink/blocks