MATLAB Support Package for Arduino Hardware
Acquire inputs and send outputs on Arduino boards
414.3K 次下载
更新时间
2025/9/17
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
- Main Documentation Page
- Setup and Configuration Guide
- Example Projects and Scripts
- Arduino Hardware Documentation
- Release Notes
Additional Projects & Tutorials
- Arduino Map Maker - Mapping Your Surroundings Using MATLAB and Arduino
- Log Temperature Data from Arduino into MATLAB - Log Temperature Data from Arduino
- Solve a Rubik's Cube - Solve a Rubik’s Cube with a Webcam, Servos, and MATLAB
Support
- This support package is functional for R2014a and beyond.
- To use Arduino hardware with MATLAB versions R2013b and earlier, see - http://www.mathworks.com/matlabcentral/fileexchange/32374
- For any issues with this support package, please contact MathWorks Technical Support - https://www.mathworks.com/support/contact_us.html
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 版本兼容性
创建方式
R2016b
兼容 R2016b 到 R2025b 的版本
平台兼容性
Windows macOS (Apple 芯片) macOS (Intel) Linux类别
- Signal Processing > Signal Processing Toolbox >
- MATLAB > Data Import and Analysis > Data Import and Export > Hardware and Network Communication > Serial and USB Communication >
- Test and Measurement > Data Acquisition Toolbox > Analog Input and Output >
- Test and Measurement > Data Acquisition Toolbox > Digital Input and Output >
- Test and Measurement > Data Acquisition Toolbox > Periodic Waveform Generation >
- Test and Measurement > Data Acquisition Toolbox > Data Acquisition Toolbox Supported Hardware >
- Physical Modeling > Simscape Electrical > Electrical Block Libraries > Electromechanical >
在 Help Center 和 MATLAB Answers 中查找有关 Signal Processing Toolbox 的更多信息
标签
致谢
启发作品: Arduino Pendulum Physics Lab, LSM303 Add-On Library for Arduino, DHT20 Temperature and Humidity, SGP30 eCO2 & TVOC sensor, L3G Add-On Library for Arduino, ADS1115 for MATLAB and Arduino, Capacitive Sensor Add-On Library for Arduino, EVM analysis of OFDM signal
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!