Arduino Uno Unable to Connect. Running on Mac OSx Big Sur on M1 Chip Macbook
11 views (last 30 days)
Show older comments
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 Comment
Matt Smith
on 1 Oct 2021
Edited: Matt Smith
on 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?
Answers (0)
See Also
Categories
Find more on Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!