AEK-Rev-1-Hardware-Support-19a+
NOTE: This version of the file exchange is applicable to MATLAB release starting from R2019a.
• For MATLAB 2018b, use the file here - https://www.mathworks.com/matlabcentral/fileexchange/68620-arduino_engineering_kit_hardware_support_18b
• For MATLAB 2018a, use the file here - https://www.mathworks.com/matlabcentral/fileexchange/66568-arduino_engineering_kit_hardware_support
This package includes MATLAB and files that allow you to control and communicate with the sensors and actuators used in the Arduino Engineering Kit. The sensors and actuators are connected through the MKR Motor Carrier. The supported peripherals include:
• 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
• LiPo Battery – read the battery voltage
The project files for the Arduino Engineering Kit are included here –
• For AEK Rev 1: https://www.mathworks.com/matlabcentral/fileexchange/66569-arduino_engineering_kit_project_files
• For AEK Rev 2: https://www.mathworks.com/matlabcentral/fileexchange/80419-arduino_engineering_kit_project_files_rev_2
Learn more about the Arduino Engineering Kit at www.mathworks.com/arduino-kit
Important Notes:
1. The File Exchange submission can either be downloaded as a toolbox or a zip file.
a. If you choose to download the toolbox, complete its installation in MATLAB.
b. If you choose to download the AEK-Rev-1-Hardware-Support-19a+.zip file, extract the contents of this package to a local folder, and add it to the MATLAB path. To add the folder to the path in MATLAB, right-click the folder and select "Add to Path" > "Selected Folders and Subfolders" option.
For the hardware support package to work, an additional 3rd-party library “MKRMotorCarrier” (version 1.0.1) from Arduino is required along with the file exchange file.
If you are using MATLAB R2020a and above, the “MKRMotorCarrier” library is included in the MATLAB Support Package for Arduino Hardware. See step 6 for further instructions. If you are using MATLAB R2019a or R2019b, continue with steps 2 and 3.
2. Download the Arduino 3rd-party library zip file, for MKRMotorCarrier, from this link: https://github.com/arduino-libraries/MKRMotorCarrier/archive/1.0.1.zip
3. Extract this zip file into a local directory and rename the folder to "MKRMotorCarrier".
If you are using MATLAB R2019b, skip to step 5. If you are using MATLAB R2019a, then follow step 4.
4. Move the "MKRMotorCarrier" folder into the "libraries" folder inside your Arduino sketchbook folder.
a. On Windows, the default path is "Documents\Arduino\libraries\"
b. On Mac, the default path is "~/Documents/Arduino/libraries/"
c. On Linux, the default path is "/home/<username>/Arduino/libraries"
Once you move the libraries, the folder structure should be similar to:
d. On Windows "\Documents\Arduino\libraries\MKRMotorCarrier\src"
e. On Mac, "~/Documents/Arduino/libraries/MKRMotorCarrier/src"
f. On Linux, "/home/<username>/Arduino/libraries/MKRMotorCarrier/src"
If you are using MATLAB R2019a, skip to step 6.
5. Move the "MKRMotorCarrier" folder into the "libraries" folder inside your Arduino sketchbook folder:
a. On Windows, the default path is "<arduinoio.IDERoot>\portable\sketchbook\libraries\"
b. On Mac, the default path is "~/Documents/Arduino/libraries/"
c. On Linux, the default path is "<arduinoio.IDERoot>/portable/sketchbook/libraries/"
NOTE: "arduinoio.IDERoot" is a MATLAB command. Executing this command in the MATLAB Command Window returns the location of the Arduino IDE directory on your system.
Once you move the libraries, the folder structure should be similar to:
d. On Windows, "<arduinoio.IDERoot>\portable\sketchbook\libraries\MKRMotorCarrier\src"
e. On Mac, "~/Documents/Arduino/libraries/MKRMotorCarrier/src"
f. On Linux, "<arduinoio.IDERoot>/portable/sketchbook/libraries/MKRMotorCarrier/src"
For all releases of MATLAB.
6. Type "listArduinoLibraries" in the MATLAB Command Window. The resulting cell array should display {'Arduino/MKRMotorCarrier'} among others. If the MKRMotorCarrier library does not appear in the cell array, ensure the steps 4 and 5 are executed correctly.
NOTE: You can find these instructions in the "ArduinoKitHardwareSupportReadMe.txt" file. After installing the toolbox or extracting the contents of the AEK-Rev-1-Hardware-Support-19a+.zip file, type the following command in MATLAB to open the readme file:
>> edit ArduinoKitHardwareSupportReadMe.txt
引用格式
MathWorks Maker Team (2024). AEK-Rev-1-Hardware-Support-19a+ (https://www.mathworks.com/matlabcentral/fileexchange/70554-aek-rev-1-hardware-support-19a), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
标签
社区
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!matlab/MATLABAddon/+arduinoioaddons/+arduino
版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.3.12 | Fixed path issues for the missing 'MKRMotorCarrier' library. |
|
|
1.3.11 | Fixed corrupted toolbox issue. |
|
|
1.3.10 | Added link to the latest AEK Rev 2 project files. |
|
|
1.3.9 | Added a note on the availability of the instructions in the FEX description. |
|
|
1.3.8 | Updated the instruction in the readme file. |
|
|
1.3.7 | Updated the instructions. |
|
|
1.3.6 | Updated the title of the submission |
|
|
1.3.5 | Fixed path issues with the toolbox file (Installer) |
|
|
1.3.4 | Removed link to a broken toolbox. |
||
1.3.3 | Fixed path issues with the toolbox. |
|
|
1.3.2 | Updated the title of the File Exchange Submission. |
|
|
1.3.1 | Repackaged the new toolbox |
|
|
1.3 | Updated the description. |
||
1.2 | Fixed a bug related to simultaneous I2C object creations in MATLAB. |
||
1.1 | Updates: 1) Updating the title to include reference to R2019b
|
|
|
1.0.2 | Updating the documentation file to include note about ultrasonic sensor |
|
|
1.0.1 | Updating MATLAB Release Compatibility |
|
|
1.0 |
|