Contenuto principale

Set Up MATLAB Support Package for Arduino with MATLAB Online on ChromeOS

R2026b

MATLAB® Online™ communicates with hardware connected to your computer using software called MATLAB Connector™. ChromeOS does not natively support MATLAB Connector. However, you install and run MATLAB Connector on a Chromebook® using the Linux development environment. You can use all supported Arduino® workflows in MATLAB Online from your Chromebook over USB and Wi-Fi®.

Set Up Linux Development Environment

To use MATLAB Connector on ChromeOS, enable the Linux development environment, configure USB passthrough, and install a supported browser.

If your board supports Wi-Fi connectivity, you must still connect the board over USB to complete the initial setup using arduinosetup. After the setup is complete, you can disconnect USB and communicate with the board over Wi-Fi.

The Linux environment is required for MATLAB Connector to operate on ChromeOS. Set up the Linux development environment on your Chromebook. For more information, see Set up Linux on your Chromebook.

Configure the Linux environment to access your Arduino board over USB.

Connect your Arduino board to your Chromebook over USB. Open Settings on your Chromebook. Under Developers, click Linux development environment, then click Manage USB devices. Under Give Linux apps control over USB, turn on the toggle for your Arduino USB device.

MATLAB Connector requires a browser running inside the Linux environment. Install Firefox® in the Linux environment so that MATLAB Connector can communicate with the browser. In a Linux terminal, run the following commands.

sudo apt update
sudo apt install firefox-esr

Then start Firefox from the Linux Apps section of the Chrome Launcher menu.

To connect and set up your Arduino board, open Firefox from the Linux terminal and go to MATLAB Online. Then, log in with your MathWorks® Account credentials and follow the setup procedure described in Connect and Set Up Arduino Board in MATLAB Online.

Note

When using MATLAB Online on ChromeOS, a notification with the options Connect to Linux and Connect to Android appears during program upload. To upload the program to the board, select Connect to Linux. This notification appears for all boards supported on ChromeOS. For more information, see Set Up MATLAB Support Package for Arduino with MATLAB Online on ChromeOS.

You can now use MATLAB Online from ChromeOS over USB and Wi-Fi. To get started with MATLAB Online for Arduino, see Get Started with MATLAB Online for Arduino.

Limitations

Note these limitations on using MATLAB Support Package for Arduino Hardware in MATLAB Online on ChromeOS.

See Also

|

Topics