File Exchange

image thumbnail

Arduino_Engineering​_Kit_Hardware_Suppo​rt_18b

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

111 Downloads

Updated 04 Oct 2018

View License

Note: This version is for MATLAB release R2018b and later. If you are using MATLAB R2018a please use the other version here:
https://www.mathworks.com/matlabcentral/fileexchange/66568-arduino_engineering_kit_hardware_support

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 (4)

In the latest version 1.1.1, this bug is fixed. The Simulink Support for Arduino MKR Motor Carrier library will show up on the library browser and the Simulink Support for Arduino Sensors is now under Sensors sub folder in the Simulink Support package for Arduino.

HTH,
Madhu

Timothy Owen

I am having the same problem as Multiplexer and Sebastian. I don't have both "Simulink Support for Arduino MKR Motor Carrier" as well as "Simulink Support for Arduino Sensors" in my Simulink's Library. It is required for the Engineering kit chapter- 2.3.2.1 Arduino Device Driver Blocks

I have the same problem like Multiplexer. The Library does not show in Simulink Library browser.

Multiplexer

Library does not show in Simulink Library browser. Upon library refresh an error shows up in Matlab command window:
"Warning: An error occurred while parsing
"C:\Users\<username>\Documents\MATLAB\Add-Ons\Toolboxes\Arduino_Engineering_Kit_Hardware_Support_18b\simulink\blocks\slblocks.m".
Error Message: Invalid arguments in the message cell. They should be of type 'character vector',
'float' or 'integer'. "

I followed steps from the ....ReadMe.txt file and reinstalled the add-on (throught the Matlab Add-on explorer). Nothing works.

Updates

1.1.1

Fixing a bug identified by user - Library not visible in Library browser.

1.1

Fixing path related issues

1.0.1

Updating release compatibiltity

MATLAB Release Compatibility
Created with R2018b
Compatible with R2018b to any release
Platform Compatibility
Windows macOS Linux
Communities
More Files in the  MATLAB Maker Community

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor

matlab/MATLABAddon/+arduinoioaddons/+arduino

simulink/+motorcarrier/+blocks

simulink/+motorcarrier/+internal

simulink/blocks