rn
rn
rn
Release Notes
How to Contact MathWorks
Phone: 508-647-7000
R2022b
Manage Arduino Libraries and Interface with I2C, SPI, and Serial
Communication devices Using the Arduino Explorer App . . . . . . . . . . . 1-2
R2022a
R2021b
Connect and Control Arduino board using the Arduino Explorer App . . . 3-2
iii
Wirelessly connect to Arduino boards over Bluetooth . . . . . . . . . . . . . . . . 3-2
Digital pin support for Arduino Leonardo and Arduino Micro . . . . . . . . . 3-3
R2021a
Support for Arduino Nano 33 BLE and Nano 33 BLE Sense boards . . . . . 4-2
R2020b
Read BNO055 Sensor Output Data in NDOF or AMG Operating Mode . . . 5-2
iv Contents
MKRMotorCarrier library will be removed in a future release . . . . . . . . . . 5-2
addon to create connection to BNO055 will be removed in a future release
...................................................... 5-2
Adafruit\BNO055 library will be removed in a future release . . . . . . . . . . . 5-2
R2020a
Read GPS Data from GPS Receiver Connected to Arduino Hardware . . . . 6-2
Use BNO055 Sensor with Sensor Fusion and Tracking Toolbox, and
Navigation Toolbox to Estimate Orientation . . . . . . . . . . . . . . . . . . . . . . 6-2
R2019b
v
Fixed Bluetooth Connection for Arduino Leonardo and Arduino Micro
(October 2019, Version 19.2.1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
R2019a
R2018b
Bug Fixes
R2018a
Bug Fixes
R2017b
Arduino Setup UI: Setup a connection to your Arduino board over USB,
Bluetooth, or Wi-Fi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-2
vi Contents
R2017a
R2016b
R2016a
Bug Fixes
R2015b
R2015a
Support for Arduino Leonardo and other boards with MATLAB Support
Package for Arduino Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-2
vii
Functionality being removed or changed . . . . . . . . . . . . . . . . . . . . . . . . . 16-2
R2014b
viii Contents
1
R2022b
Version: 22.2.0
New Features
R2022b
Manage Arduino Libraries and Interface with I2C, SPI, and Serial
Communication devices Using the Arduino Explorer App
The Arduino Explorer app, which was introduced in R2021b release of MATLAB Support Package for
Arduino Hardware, now lets you interface the Arduino board with I2C, SPI, and Serial communication
devices, read, write, and decode data read from these interfaces, and visualize the data using Plot
and Log options. The app also supports managing the libraries installed on the Arduino board.
1-2
2
R2022a
Version: 22.1.0
New Features
R2022a
After the Hardware Setup is completed, you can use the arduino function to connect to the ESP32
board and then write and read data to and from peripherals such as I2C, SPI or Serial ports of the
board, using the associated device functions.
2-2
3
R2021b
Version: 21.2.0
New Features
Bug Fixes
Compatibility Considerations
R2021b
Connect and Control Arduino board using the Arduino Explorer App
The MATLAB Support Package for Arduino Hardware now supports an Arduino Explorer app.
The MOSIPin and MISOPin properties of the SPI object have been changed to SDOPin and SDIPin.
As of R2021b, the mkrMotorCarrier function will throw a error message. This function has been
removed. Use the motorCarrier object instead to connect to the MKR Motor Carrier hardware.
As of R2021b, using the 'MKRMotorCarrier' library will throw a error message. This library has
been removed. Use the 'MotorCarrier' library instead when creating a connection to the Arduino
hardware using the arduino object.
3-2
Starting R2021b, using the 'Adafruit\BNO055' library will throw a error message. This library has
been removed. See bno055 to create the connection to a BNO055 sensor.
3-3
4
R2021a
Version: 21.1.0
New Features
R2021a
Support for Arduino Nano 33 BLE and Nano 33 BLE Sense boards
Use the MATLAB Support Package for Arduino Hardware to connect to and communicate with the
Arduino Nano 33 BLE and Nano 33 BLE Sense boards. For more information, see arduino.
The integration of the Arduino Engineering Kit Rev 2 project files in the support package helps you to
effectively use the functionality of Arduino Nano 33 IoT board and the Arduino Nano Motor Carrier,
with some additional software and hardware components. For more details, see Using Arduino
Engineering Kit Rev 2 with Pre-Configured Projects in Support Package.
4-2
5
R2020b
Version: 20.2.0
New Features
Compatibility Considerations
R2020b
Starting R2020b, using the mkrMotorCarrier function will throw a warning message. This function
will be removed in a future release. Use the motorCarrier object instead to connect to the MKR
Motor Carrier hardware.
Starting R2020b, using the 'MKRMotorCarrier' library will throw a warning message. This library
will be removed in a future release. Use the 'MotorCarrier' library instead when creating a
connection to the Arduino hardware using the arduino object.
Starting R2020b, using the addon object to create a connection to a BNO055 sensor will throw a
warning message. This object will be removed in a future release. Use the bno055 object instead to
connect to the BNO055 sensor on the Arduino hardware.
5-2
Starting R2020b, using the 'Adafruit\BNO055' library will throw a warning message. This library
will be removed in a future release. See bno055 to create the connection to a BNO055 sensor.
5-3
6
R2020a
Version: 20.1.0
New Features
Compatibility Considerations
R2020a
This allows you to work with the support package on macOS 10.15 Catalina.
Use BNO055 Sensor with Sensor Fusion and Tracking Toolbox, and
Navigation Toolbox to Estimate Orientation
You can read acceleration, angular velocity, and magnetic field up to 200Hz in the non-fusion mode of
the BNO055 IMU sensor connected to the Arduino hardware. To estimate orientation, you can use the
sensor with Sensor Fusion and Tracking Toolbox™, and Navigation Toolbox™.
6-2
Functionality being changed or removed
The i2cdev and spidev functions is no longer supported
Errors
Use device instead of i2cdev and spidev to connect to I2C or SPI devices on Arduino hardware .
Use the property Pin instead of Pins to get the pin number of the Arduino hardware and the
Adafruit® Motor Shield V2 for Arduino hardware to which the servo motor is connected. For more
information, see Connection to servo motor on Arduino and Connection to servo motor on Adafruit
Motor Shield V2 .
MATLAB support for Adafruit Bluefruit EZ-Link Shield and Programmer is no longer
supported
Errors
The support for Adafruit Bluefruit EZ-Link Shield and Programmer will be removed in R2020a.
6-3
7
R2019b
Version: 19.2.2
New Features
R2019b
To use this feature, you must have access to the Arduino IDE.
• I2C device addresses to I2C device, and I2C shield addon while creating the device
• Input data to I2C write, writeRegister and readRegister, SPI writeRead, and Shift
Register write functions
To fix this, from 19.2.2 onwards, the MATLAB Support Package for Arduino Hardware has been
updated to install Arduino IDE 1.8.10 as part of the support package installation.
7-2
8
R2019a
Version: 19.1.3
New Features
Compatibility Considerations
R2019a
Use device instead of i2cdev and spidev to connect to I2C or SPI devices on Arduino hardware .
Use the property Pin instead of Pins to get the pin number of the Arduino hardware and the
Adafruit Motor Shield V2 for Arduino hardware to which the servo motor is connected. For more
information, see Connection to servo motor on Arduino and Connection to servo motor on Adafruit
Motor Shield V2.
MATLAB support for Adafruit Bluefruit EZ-Link Shield and Programmer will be removed in a
future release
Warns
The support for Adafruit Bluefruit EZ-Link Shield and Programmer will be removed in a future
release
• Arduino Fio
• Arduino Mini
• Arduino Pro
8-2
Inaccurate Byte Ordering Corrected (October 2019, Version 19.1.3)
You can now read and write data from an I2C device only in the little-endian format. In previous
releases, you were able to read and write data from I2C registers using the readRegister and
writeRegister functions in the big-endian format.
8-3
9
R2018b
Version: 18.2.1
Bug Fixes
10
R2018a
Version: 18.1.0
Bug Fixes
11
R2017b
Version: 17.2.0
New Features
Bug Fixes
R2017b
Arduino Setup UI: Setup a connection to your Arduino board over USB,
Bluetooth, or Wi-Fi
MATLAB Support Package for Arduino Hardware enables you to use the arduinosetup guided
interface to set up a connection to your Arduino board over USB, Bluetooth, or Wi-Fi®.
11-2
12
R2017a
Version: 17.1.1
New Features
Bug Fixes
R2017a
12-2
13
R2016b
Version: 16.2.1
New Features
Bug Fixes
R2016b
• Write data to shift registers to control multiple outputs using one pin on an Arduino board.
• Read data from shift registers to gather inputs from multiple sources using one pin on an Arduino
board.
On the MATLAB Home tab, in the Environment section, click Add-Ons > Get Hardware Support
Packages.
In the Add-On Explorer search bar, search for MATLAB Support Package for Arduino Hardware, and
then click the MATLAB Support Package for Arduino Hardware add-on.
On the MATLAB Home tab, in the Environment section, click Add-Ons > Manage Add-Ons.
On the MATLAB Home tab, in the Environment section, click Add-Ons > Check for Updates >
Hardware Support Packages.
For more information about using Add-On Explorer, see Get Add-Ons.
13-2
14
R2016a
Version: 16.1.0
Bug Fixes
15
R2015b
Version: 15.2.3
New Features
Bug Fixes
R2015b
Write your client-side code using the MATLAB framework and your server-side code using C++
framework.
To create a custom library, you need a C++ header file and a MATLAB wrapper class file. The
MATLAB file defines commands that call the custom Arduino code. The header files process the data
sent by MATLAB commands that call the actual custom code. You can also include third-party library
header files in your custom library.
To create custom Arduino libraries, you should have a working knowledge of:
• MATLAB classes
• C++
• The functionality of your hardware device, and its associated application programming interface
(API)
For information about creating a custom library, see the Custom Arduino Libraries section of the
MATLAB Support Package for Arduino Hardware documentation.
15-2
16
R2015a
Version: 15.1.0
New Features
Bug Fixes
Compatibility Considerations
R2015a
Support for Arduino Leonardo and other boards with MATLAB Support
Package for Arduino Hardware
You can now use these boards with MATLAB Support Package for Arduino Hardware:
• Arduino Leonardo
• Arduino Micro
• Arduino Mega ADK
• Arduino Nano 3.1
• Sparkfun Redboard
• Sparkfun Digital Sandbox
• Sainsmart Uno
• Sainsmart Mega 2560
16-2
17
R2014b
Version: 14.2.0
New Features
R2014b
Use Arduino boards connected to your system over USB cables to:
The support package supports Arduino Uno, Arduino Due, and Arduino Mega 2560 boards.
The arduino command creates an arduino object that enables you to connect to the board.
17-2