Main Content

Supported Hardware

R2026b

These 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

BoardMATLAB DesktopMATLAB OnlineBoard Name
Arduino UnoUSB, BluetoothUSBUno
Arduino Uno R4 WiFiUSB, Bluetooth, Wi-FiUSB, Wi-FiUnoR4WiFi
Arduino Uno R4 MinimaUSBUSBUnoR4Minima
Arduino Mega 2560USB, BluetoothUSBMega2560
Arduino Mega ADKUSB, BluetoothUSBMegaADK
Arduino DueUSB, BluetoothUSBDue
Arduino LeonardoUSB, BluetoothUSBLeonardo
Arduino MicroUSB, BluetoothUSBMicro

Nano Boards

BoardMATLAB DesktopMATLAB OnlineBoard Name
Arduino Nano 33 BLE SENSEUSB, BluetoothUSBNano33BLE
Arduino Nano 33 BLEUSB, BluetoothUSBNano33BLE
Arduino Nano 33 IoTUSB, Bluetooth, Wi-FiUSB, Wi-FiNano33IoT
Arduino Nano 3.1USB, BluetoothUSBNano3

MKR Boards

BoardMATLAB DesktopMATLAB OnlineBoard Name
Arduino MKR WiFi1010USB, Bluetooth, Wi-FiUSB, Wi-FiMKR1010
Arduino MKR1000USB, Bluetooth, Wi-FiUSB, Wi-FiMKR1000
Arduino MKR ZeroUSBUSBMKRZero

Arduino-Compatible Boards

BoardMATLAB DesktopMATLAB OnlineBoard Name
Sparkfun Digital SandboxUSBUSBDigitalSandbox

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

BoardConnection TypesBoard Name
ESP32-DevKitV1USB, Bluetooth, Wi-FiESP32-WROOM-DevKitV1
ESP32-DevKitCUSB, Bluetooth, Wi-FiESP32-WROOM-DevKitC
Arduino Nano ESP32USBNanoESP32
ESP32-S3-DevKitM-1USB, Bluetooth, Wi-FiESP32-S3-DevKitM
ESP32-S3-DevKitCUSB, Bluetooth, Wi-FiESP32-S3-DevKitC

Raspberry Pi® Pico Boards

BoardConnection TypesBoard Name
Raspberry Pi PicoUSBRaspberryPiPico
Raspberry Pi Pico WUSBRaspberryPiPicoW
Raspberry Pi Pico 2USBRaspberryPiPico2
Raspberry Pi Pico 2 WUSBRaspberryPiPico2W

Classic Boards

BoardConnection TypesBoard Name
Arduino Pro MiniUSBProMini328_3V, ProMini328_5V

For more information, see Supported Boards.

See Also

|

Topics