This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Find Arduino Port on Windows, Mac, and Linux

Find Port Number on Windows

  1. Open Device Manager, and expand the Ports (COM & LPT) list.

  2. Note the number on the USB Serial Port.

Find Port Number on Macintosh

  1. Open terminal and type: ls /dev/*.

  2. Note the port number listed for /dev/tty.usbmodem* or /dev/tty.usbserial*. The port number is represented with * here.

Find Port Number on Linux

  1. Open terminal and type: ls /dev/tty*.

  2. Note the port number listed for /dev/ttyUSB* or /dev/ttyACM*. The port number is represented with * here.

  3. Use the listed port as the serial port in MATLAB®. For example: /dev/ttyUSB0.