MATLAB Support Package for Arduino Hardware

Acquire inputs and send outputs on Arduino boards
402.7K Downloads
Updated 13 Nov 2024

Editor's Note: Popular File 2015 2016 2017 2018 2019 2020

MATLAB® Support Package for Arduino® Hardware enables you to use MATLAB to interactively communicate with an Arduino board.
For instance, you can read and write sensor data through the Arduino board and immediately see the results in MATLAB without compiling any code. Further, you can utilize thousands of built-in math, engineering, and plotting functions that are included with MATLAB to analyze and visualize data collected from your Arduino.
You can also create and distribute complied standalone MATLAB applications that run MATLAB programs on systems to interface Arduino hardware over Serial without an installed version of MATLAB.
Documentation
Features
To know more about the supported Arduino boards and other features, visit – Arduino Support from MATLAB
Examples
  • Getting Started
  • Setup and Configuration
  • I2C Devices
  • SPI Devices
  • Shift Registers
  • Quadrature Encoders
  • Servo Motors
  • Adafruit Motor Shield V2
  • CAN Interface
  • Motor Carrier
  • Sensors
  • Deploy Arduino Functions to Arduino Hardware Using MATLAB Function Block
Support
Notes
  • For MATLAB R2017a and earlier versions, this support package is currently unable to download third-party software. For details and workaround, see this Bug Report https://www.mathworks.com/support/bugreports/1741173
  • MATLAB R2017b and later versions are unaffected
Getting Started
MATLAB Release Compatibility
Created with R2016b
Compatible with R2016b to R2024b
Platform Compatibility
Windows macOS (Apple silicon) macOS (Intel) Linux

Community Treasure Hunt

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

Start Hunting!