MATLAB Support Package for Arduino Hardware
Acquire inputs and send outputs on Arduino boards
401.1K 次下载
更新时间
2024/11/13
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
- Connect and communicate with an Arduino board over a USB cable or wirelessly over Wi-Fi or Bluetooth, using MATLAB
- Use the integrated project files that are part of Arduino Engineering Kit Rev2 to apply engineering concepts while learning and building projects using Arduino boards (Building projects using Rev1 is supported for releases from R2019a to R2021b)
- Communicate with other devices through GPIO, I2C, SPI and CAN
- Programmatically control Servo, Shift Registers and Rotary Encoders
- Read real-time data from a wide variety of supported sensors like IMU and Environmental sensors, BNO055 and GPS sensors
- Read data from APDS9960 and Ultrasonic sensors
- Create custom add-on libraries to use with your Arduino device and supported hardware shields
- Connect and Control Arduino board using the Arduino Explorer App
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
- 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
Getting Started
- Arduino Map Maker - Mapping Your Surroundings Using MATLAB and Arduino
- Arduino Engineering Kit
- Log Temperature Data from Arduino into MATLAB - Log Temperature Data from Arduino
- Create a Custom Arduino Add-On Library
- Solve a Rubik's Cube - Solve a Rubik’s Cube with a Webcam, Servos, and MATLAB
MATLAB 版本兼容性
创建方式
R2016b
兼容 R2016b 到 R2024b 的版本
平台兼容性
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, 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!