Setup and Configuration
R2026bInstall hardware support and set up hardware connection
Before connecting to your Arduino® hardware, you must install MATLAB® Support Package for Arduino Hardware. Then, you can use Arduino Explorer to interactively set up and configure your hardware in MATLAB and MATLAB Online™. For more information, see Set Up and Connect to Arduino and Arduino-compatible Boards Using Arduino Explorer.
For a complete list of hardware supported in the installed version of MATLAB, see Supported Hardware. For more information regarding supported boards, workflows, and platforms supported on MATLAB Online, see Get Started with MATLAB Online for Arduino.
Apps
| Arduino Explorer | Configure and control Arduino |
Functions
arduinosetup | Open Arduino hardware setup interface |
arduinolist | List available Arduino hardware (Since R2024a) |
arduino | Connection to the Arduino and Arduino-compatible ESP32 hardware |
Topics
Install and Configure Arduino Hardware and ESP32 Module
- 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. - Get and Manage Add-Ons
Find, install, and manage add-ons using the Add-Ons panel.
Install and Configure MATLAB Connector and 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®.
Configure 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.
Use Arduino Explorer
- 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.