What problem does it solve?
Connecting MATLAB to Arduino hardware involves discovering boards, identifying the correct serial port, choosing the right board type, and loading the correct libraries. This Skill guides an AI agent through that process step by step, preventing common mistakes like guessing COM ports, missing boards, or loading incomplete library sets.
Core Features & Use Cases
- Board Discovery: Runs both
arduinolist and serialportlist("available") to reliably detect all connected Arduino boards across Windows, macOS, and Linux.
- Guided Connection Workflow: Walks through port identification, user board selection, library inference (e.g., Ultrasonic, RotaryEncoder, MotorShield), and connection via the
arduino() function.
- Troubleshooting Support: Provides OS-specific guidance when no board is detected, including driver issues, charge-only USB cables, and port conflicts.
- Use Case: A user asks their AI agent to read an ultrasonic sensor from an Arduino Uno. The agent discovers the board on COM8, confirms the port with the user, connects with the Ultrasonic library loaded, and proceeds to the sensor-reading task.
Quick Start
Ask your AI agent to connect to your Arduino board from MATLAB, for example: "Connect to my Arduino Uno and read the ultrasonic sensor."