Arduino Explorer
R2026bConfigure and control Arduino
Description
Add-On Required: This feature requires the MATLAB Support Package for Arduino Hardware add-on.
Use the Arduino® Explorer to interactively set up an Arduino board, view pin diagram, read, write, and analyze data from the board, and generate code with MATLAB® and MATLAB Online™.
Arduino Explorer helps you:
Detect, set up, and connect to Arduino boards and supported clone boards interactively without writing any code.
For more information, see Set Up and Connect to Arduino and Arduino-compatible Boards Using Arduino Explorer.
Configure analog and digital pins to read or write values. For more information, see Configure Read and Write for GPIO Pins Using Arduino Explorer App.
Monitor analog and digital pin values in real time.
Interactively configure I2C, SPI, and serial interfaces to communicate with peripherals. For more information, see Connect to I2C Device Using Arduino Explorer App, Connect to SPI Device Using Arduino Explorer App, Connect to Serial Device Using Arduino Explorer App.
Collect and visualize data from sensors.
Configure servo motors and use the interface to read and write position to the servo motor connected with Arduino or any other supported hardware.
Plot pin data in real time. For more information, see Plot Data from Pins.
View and log data communication details such as time stamp, type of operation, data value, decoded data value, data size, and data type. For more information, see View Data Log.
Record data from selected pins to a Workspace variable. For more information, see Record Data.
Generate MATLAB code for communicating with hardware and peripherals. For more information, see Generate MATLAB Script.
Open the Arduino Explorer App
MATLAB Toolstrip: On the Apps tab, under Test and Measurement, click the app.
MATLAB command prompt: Enter
arduinoExplorer.Hardware Manager: Under the All Hardware section of the Hardware Manager app, click the device card of the detected Arduino board to launch the Arduino Explorer app.
Examples
- Get Started with Arduino Explorer
- Set Up and Connect to Arduino and Arduino-compatible Boards Using Arduino Explorer
- Configure Read and Write for GPIO Pins Using Arduino Explorer App
- Connect to SPI Device Using Arduino Explorer App
- Connect to I2C Device Using Arduino Explorer App
- Connect to Serial Device Using Arduino Explorer App
- Visualize and Record Data from Arduino Pins Using Arduino Explorer App
- Generate MATLAB Script
- Customizable Views in the App
Version History
Introduced in R2021b
