MATLAB Support Package for Arduino Hardware

Acquire inputs and send outputs on Arduino boards
408.7K Downloads
Updated 11 Dec 2024

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

Interactively communicate with Arduino boards using MATLAB. Read and write sensor data, control actuators, and visualize results in real time—no code compilation required.
Leverage thousands of MATLAB functions for analysis, plotting, and algorithm development with your Arduino-collected data. You can also create and distribute standalone MATLAB applications that interface with Arduino hardware over Serial, even on systems without MATLAB installed.
Key Features
  • Connect and communicate with Arduino boards via USB, Wi-Fi, or Bluetooth directly from MATLAB.
  • Use integrated project files from Arduino Engineering Kit Rev2 for hands-on learning and project building. (Rev1 supported for R2019a–R2021b.)
  • Communicate with external devices using GPIO, I2C, SPI, and CAN protocols.
  • Programmatically control servos, shift registers, and rotary encoders.
  • Read real-time data from a wide variety of sensors, including IMU, environmental, BNO055, GPS, APDS9960, and ultrasonic sensors.
  • Create and use custom add-on libraries for Arduino and supported shields.
  • Control and monitor Arduino boards using the Arduino Explorer App.
For supported Arduino boards and more features, visit: Arduino Support from MATLAB
Documentation
Example Applications
Additional Projects & Tutorials
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
MATLAB Release Compatibility
Created with R2016b
Compatible with R2016b to R2025a
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!