Get Started with MATLAB Online for Arduino
R2026bMATLAB® Support Package for Arduino® Hardware in MATLAB Online™ lets you use MATLAB in your web browser to communicate with Arduino hardware. By default, MATLAB Online includes the support package preinstalled. You can access MATLAB Online from any standard web browser. For more information, see Cloud Solutions Browser Requirements.
MATLAB Online supports the same Arduino workflows as the MATLAB desktop except for custom Arduino libraries and deploying MATLAB code as a standalone application using MATLAB Compiler™.
Before you begin, verify that your Arduino board is supported in MATLAB Online. For the full list of supported boards, see Supported Hardware. MATLAB Online supports connecting to an Arduino board over USB and Wi-Fi®.
Connect Board and Open MATLAB Online
To get started, connect your Arduino board through USB to the computer where you will use MATLAB Online. Go to https://matlab.mathworks.com/, log in with your MathWorks® Account credentials, and click Open MATLAB Online.
Install and Set Up MATLAB Connector
MATLAB Connector™ lets MATLAB Online to communicate with hardware connected to your local computer. Install it and establish the connection. Communicating with hardware via MATLAB Connector requires a stable and fast internet connection. For more information, see Install MATLAB Connector for Hardware Connectivity.
Find Connected Arduino Devices
After you set up MATLAB Connector, discover connected boards and identify their
ports using the arduinolist function. Make sure that MATLAB
Connector is connected to MATLAB
Online and that Hardware Connectivity is
enabled.
For the list of supported boards, see Supported Hardware. If you cannot find your port, see Find Arduino Port on Windows, macOS, and Linux or Find ESP32 Port on Windows, Mac, and Linux.
Set Up Arduino Board in MATLAB Online
Use the arduinosetup function to review
licenses, install third-party software, and configure your board connection. For
more information, see Set Up Arduino Board in MATLAB Online.
Verify Board Setup Using Arduino Explorer
Open Arduino Explorer and click the card for your device. When the Pin Explorer screen appears, your board is configured and ready to use. You can then view pin diagrams, read and write data, analyze signals, and generate equivalent MATLAB code. If you do not see your board, click the refresh button next to All Hardware to rescan for connected devices. For more information, see Use Arduino Explorer App. To get started with Arduino Explorer, see Get Started with Arduino Explorer.
See Also
arduinolist | arduinosetup | Arduino
Explorer