Supported Hardware
R2026bThese tables list the Arduino® hardware supported by MATLAB® Support Package for Arduino Hardware. MATLAB Online™ and MATLAB Desktop supports USB and Wi-Fi® connections. Bluetooth® connections are available only in MATLAB Desktop. For more information on using Arduino hardware in MATLAB Online, see Get Started with MATLAB Online for Arduino.
To connect to an Arduino board from MATLAB, use the arduino function. The function returns an
arduino object that represents the connection to the board. When you
call the function, specify the value from the Board Name
column as the board
input argument, along with the port to which the board is connected. To identify the port,
see Find Arduino Port on Windows, macOS, and Linux. For example, a =
arduino("COM5","Uno") connects to an
Arduino Uno board on port COM5. You must specify the board name
when you connect to an unofficial (clone) Arduino board.
Boards Supported in MATLAB Desktop and MATLAB Online
These boards are supported in both MATLAB Desktop and MATLAB Online. The MATLAB Desktop and MATLAB Online columns show the available connection types for each environment.
Classic Boards
| Board | MATLAB Desktop | MATLAB Online | Board Name |
|---|---|---|---|
| Arduino Uno | USB, Bluetooth | USB | Uno |
| Arduino Uno R4 WiFi | USB, Bluetooth, Wi-Fi | USB, Wi-Fi | UnoR4WiFi |
| Arduino Uno R4 Minima | USB | USB | UnoR4Minima |
| Arduino Mega 2560 | USB, Bluetooth | USB | Mega2560 |
| Arduino Mega ADK | USB, Bluetooth | USB | MegaADK |
| Arduino Due | USB, Bluetooth | USB | Due |
| Arduino Leonardo | USB, Bluetooth | USB | Leonardo |
| Arduino Micro | USB, Bluetooth | USB | Micro |
Nano Boards
| Board | MATLAB Desktop | MATLAB Online | Board Name |
|---|---|---|---|
| Arduino Nano 33 BLE SENSE | USB, Bluetooth | USB | Nano33BLE |
| Arduino Nano 33 BLE | USB, Bluetooth | USB | Nano33BLE |
| Arduino Nano 33 IoT | USB, Bluetooth, Wi-Fi | USB, Wi-Fi | Nano33IoT |
| Arduino Nano 3.1 | USB, Bluetooth | USB | Nano3 |
MKR Boards
| Board | MATLAB Desktop | MATLAB Online | Board Name |
|---|---|---|---|
| Arduino MKR WiFi1010 | USB, Bluetooth, Wi-Fi | USB, Wi-Fi | MKR1010 |
| Arduino MKR1000 | USB, Bluetooth, Wi-Fi | USB, Wi-Fi | MKR1000 |
| Arduino MKR Zero | USB | USB | MKRZero |
Arduino-Compatible Boards
| Board | MATLAB Desktop | MATLAB Online | Board Name |
|---|---|---|---|
| Sparkfun Digital Sandbox | USB | USB | DigitalSandbox |
Boards Supported in MATLAB Desktop Only
These boards are supported only in MATLAB Desktop and are not available in MATLAB Online.
Arduino-Compatible ESP32 Development Boards
| Board | Connection Types | Board Name |
|---|---|---|
| ESP32-DevKitV1 | USB, Bluetooth, Wi-Fi | ESP32-WROOM-DevKitV1 |
| ESP32-DevKitC | USB, Bluetooth, Wi-Fi | ESP32-WROOM-DevKitC |
| Arduino Nano ESP32 | USB | NanoESP32 |
| ESP32-S3-DevKitM-1 | USB, Bluetooth, Wi-Fi | ESP32-S3-DevKitM |
| ESP32-S3-DevKitC | USB, Bluetooth, Wi-Fi | ESP32-S3-DevKitC |
Raspberry Pi® Pico Boards
| Board | Connection Types | Board Name |
|---|---|---|
| Raspberry Pi Pico | USB | RaspberryPiPico |
| Raspberry Pi Pico W | USB | RaspberryPiPicoW |
| Raspberry Pi Pico 2 | USB | RaspberryPiPico2 |
| Raspberry Pi Pico 2 W | USB | RaspberryPiPico2W |
Classic Boards
| Board | Connection Types | Board Name |
|---|---|---|
| Arduino Pro Mini | USB | ProMini328_3V, ProMini328_5V |
For more information, see Supported Boards.