MATLAB Support Package for Arduino Hardware
MATLAB® Support Package for Arduino® Hardware enables you to use MATLAB to communicate with several Arduino boards under the entry-level series, MKR, and Nano families of Arduino. You can read and write sensor data through the Arduino and immediately see the results in MATLAB without having to compile. When used in combination with the support package framework that supports custom add-on libraries, you can access additional features on Arduino hardware or attached shields. You can also use the support package to connect and communicate to ESP32 modules for your IoT applications.
Get Started
Learn the basics of MATLAB Support Package for Arduino Hardware
Setup and Configuration
Install hardware support, set up hardware connection
Read and Write Data
Read and write directly to Arduino hardware
I2C Devices
Read and write to I2C devices connected to Arduino hardware
SPI Devices
Read and write to SPI devices connected to Arduino hardware
Serial Devices
Read and write to serial devices connected to Arduino hardware
Shift Registers
Read from and write to shift registers connected to Arduino hardware
Quadrature Encoders
Control quadrature encoders connected to Arduino hardware
Servo Motors
Read and write to servo motors connected to Arduino hardware
Adafruit Motor Shield V2
Control motors connected to add-on shields on Arduino hardware
CAN Interface
Read from and write CAN messages to CAN shields on Arduino Hardware
Motor Carrier
Control motors connected to Motor Carrier
Sensors
Read data from sensors
Custom Arduino Libraries
Create custom add-on library for the Arduino
Creating Standalone Applications
Create standalone applications using MATLAB Compiler™ and Arduino hardware
Deploy Arduino Functions to Arduino Hardware Using MATLAB Function Block
Use functions in a MATLAB Function block to generate code and deploy to Arduino Hardware
Troubleshooting in MATLAB Support Package for Arduino Hardware
Resolve unexpected issues in MATLAB Support Package for Arduino Hardware