Arduino Uno Unable to Connect. Running on Mac OSx Big Sur on M1 Chip Macbook

8 vues (au cours des 30 derniers jours)
Harry C. Binder
Harry C. Binder le 26 Août 2021
Modifié(e) : Matt Smith le 1 Oct 2021
I keep trying to connect my Arduino to Matlab and am recieving this error:
"Unable to create a communication link with the serial port. Please check the input argument
PORT and verify that a device is connected."
I am trying to connect using this code:
a = arduino('/dev/tty.usbmodem113201','Uno')
I have confirmed this is the correct port via both terminal and the arduino IDE. The connection is made through a Multi Hub USB to USBC adapter. The connection works properly on the arduino IDE and I am able to run code through the IDE and serial monitor.
Does anyone have any ideas?
  1 commentaire
Matt Smith
Matt Smith le 1 Oct 2021
Modifié(e) : Matt Smith le 1 Oct 2021
I have a very similar issue. I have connected my Arduino board (ATmega328P) through a USB to USB-C adapter (Apple adapter) and I am running Matlab 2019b and get an error:
a = arduino('/dev/cu.usbserial-A400hvsX','Due')
Updating server code on board Due (/dev/cu.usbserial-A400hvsX). This may take a few minutes.
Cannot program board Due (/dev/cu.usbserial-A400hvsX). Please make sure the board is supported and the port and board type are correct. For more information, see Arduino Hardware Troubleshooting.
I have successfully ran scripts from the arduino IDE without problems. I have read about FTDI drivers, but I tried installing one without success. @MathWorks Support Team, your troubleshooting recs fall a bit short. Can you help us?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Arduino Hardware dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by