设置和配置
R2026b安装硬件支持并设置硬件连接
在连接到您的 Arduino® 硬件之前,您必须安装 MATLAB® Support Package for Arduino Hardware。然后,您可以使用 Arduino 资源管理器在 MATLAB 和 MATLAB Online™ 中以交互方式设置和配置您的硬件。有关详细信息,请参阅 Set Up and Connect to Arduino and Arduino-compatible Boards Using Arduino Explorer。
有关安装版 MATLAB 中支持的硬件的完整列表,请参阅Supported Hardware。有关 MATLAB Online 支持的板、工作流和平台的详细信息,请参阅Get Started with MATLAB Online for Arduino。
App
| Arduino 资源管理器 | Configure and control Arduino |
函数
arduinosetup | Open Arduino hardware setup interface |
arduinolist | List available Arduino hardware (自 R2024a 起) |
arduino | Connection to the Arduino and Arduino-compatible ESP32 hardware |
主题
安装并配置 Arduino 硬件和 ESP32 模块
- Install Support for Arduino Hardware
Install MATLAB Support Package for Arduino Hardware. - Supported Hardware
These tables list the Arduino hardware currently supported by MATLAB Support Package for Arduino Hardware. - Set Up and Configure Arduino Hardware
Learn how to setup and configure Arduino hardware to communicate with your host computer. - Set Up and Configure ESP32 Hardware
Learn how to setup and configure ESP32 hardware to communicate with your host computer. - Pair Bluetooth Device and Retrieve Bluetooth Device Address
Learn how to pair a Bluetooth® device to the host computer and retrieve connection information. - Connect to Arduino Hardware
Learn how to connect to Arduino or ESP32 hardware in MATLAB. - Find Arduino Port on Windows, Mac, and Linux
Find the port number for your Arduino hardware. - Find ESP32 Port on Windows, Mac, and Linux
Find the port number for your ESP32 hardware. - Find Board Name
Find the board name to use for your Arduino hardware. - Use Arduino Explorer App
Learn how to use the Arduino Explorer app to configure GPIO pins and communication protocol interfaces and visualize data. - 获取和管理附加功能
使用“附加功能”面板来查找、安装和管理附加功能。
安装并配置 MATLAB Connector 和 MATLAB Online
- Install MATLAB Connector for Hardware Connectivity
Install MATLAB Connector™ for hardware connectivity. - Use MATLAB Connector to Connect to Hardware
Use MATLAB Connector to view recent file activity, resolve file conflicts, and manage file syncing. - MATLAB Connector Preferences and Account Information
Set preferences for MATLAB Connector and get account information. - Troubleshooting MATLAB Connector Issues in Windows
Troubleshoot MATLAB Connector issues in Windows®. - Troubleshooting MATLAB Connector Issues in Mac
Troubleshoot MATLAB Connector issues in Mac. - Troubleshooting MATLAB Connector Issues in Linux
Troubleshoot MATLAB Connector issues in Linux®.
配置 MATLAB Online
- Get Started with MATLAB Online for Arduino
Get started with MATLAB Online for MATLAB Support Package for Arduino Hardware. - Set Up MATLAB Support Package for Arduino with MATLAB Online on ChromeOS
Set up the Linux development environment on ChromeOS to use MATLAB Support Package for Arduino Hardware with MATLAB Online over USB and WiFi. - Security Considerations When Using MATLAB Online with Arduino
Take steps to secure your Arduino board.
使用 Arduino 资源管理器
- Set Up and Connect to Arduino and Arduino-compatible Boards Using Arduino Explorer
The Arduino Explorer app can automatically detect official Arduino boards that are connected to your computer. - Visualize Pin Diagram Using Arduino Explorer App
The Arduino Explorer app displays the pinout diagram of the selected board in a panel at the bottom right corner of the app window. - Configure Read and Write for GPIO Pins Using Arduino Explorer App
Learn how to read and write for GPIO pins using Arduino Explorer app - Connect to I2C Device Using Arduino Explorer App
I2C (Inter-Integrated Circuit) is a two-wire serial communication protocol that uses a serial data line (SDA) and a serial clock line (SCL) to exchange data between a controller and one or more peripheral devices. - Connect to SPI Device Using Arduino Explorer App
Arduino Explorer app lets you configure the Serial Peripheral Interface (SPI) communication interface, which you can then use to read and write data to SPI devices connected to the Arduino hardware. - Connect to Serial Device Using Arduino Explorer App
The Arduino Explorer app lets you configure the serial communication interface and read and write data to serial devices connected to Arduino hardware. - Visualize and Record Data from Arduino Pins Using Arduino Explorer App
Learn how to visualize and record data from Arduino pins using Arduino Explorer app - Get Started with Arduino Explorer
This example shows how to use the Arduino® Explorer app to connect to an Arduino board and monitor sensor inputs and control peripherals based on temperature readings.