when using my arduino engineeging kit

I can see libraries in my arduio but when trying to execute carrier = addon(a, 'Arduino/MKRMotorCarrier'), MATlab says the library is not on the board.

Answers (1)

Type listArduinoLibraries in MATLAB Command Window. This should return something with the {'Arduino/MKRMotorCarrier'} in the list. If it does not show up, add the Arduino_Engineering_Kit_Hardware_Support and its subfolders to MATLAB path by right clicking on this folder. Once this is done, use 'arduinosetup' command to add this library as well as shown in the instructions of Arduino Engineering Kit.
Then you should be able to use the carrier command.
Regards, Madhu

4 Comments

The folder that I am referring to is Arduino_Engineering_Kit_Hardware_Support.
If this does indeed shows the MKRMotorCarrier in listArduinoLibraries and you still get the error, it could be because you have not downloaded the 3rd party libraries explained in the ArduinoKitHardwareSupportReadMe.txt file. To open this file, please type
>> edit('ArduinoKitHardwareSupportReadMe.txt')
Then follow the instructions here to download the 3rd party libraries needed.
Wow. I really appreciate your patience. That did the trick. In short, the manual for the engineering kit provided by Arduino does not state that the motor carrier and the MKR 1000 have to be connected in order for the library to show up in the setup window. Thanks!
I am glad you got it to work. I will pass your feedback to Arduino to update the manual.
Regards, Madhu

Sign in to comment.

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!