Can't connect Arduino Uno (Genuino) to Matlab R2016a

8 ビュー (過去 30 日間)
simon
simon 2016 年 6 月 6 日
回答済み: Madhu Govindarajan 2019 年 3 月 11 日
I'm trying to connect my Genuino Uno (which is just a European Arduino Uno) to Matlab, but Matlab doesn't seem to be able to detect it.
a = arduino();
gives me the follwing error message: "Cannot detect Arduino hardware. Make sure original Arduino hardware is properly plugged in. Otherwise, please specify both port and board type. For more information, see arduino function reference page."
When I try
a = arduino('COM4','Uno');
I get this message: "Failed to open serial port COM4 to communicate with board Uno. Make sure there is no other MATLAB arduino object for this board. For troubleshooting, see Arduino Hardware Troubleshooting."
In device manager, the board is written as "Genuino Uno" but Matlab tells me device is unsupported.
I have downloaded the arduino package. Hope you guys can help me solve this!

回答 (2 件)

Oguz Türker
Oguz Türker 2016 年 7 月 6 日
編集済み: Oguz Türker 2016 年 7 月 6 日
  1. go to device manager
  2. than find arduino board at there
  3. right click
  4. open properties
  5. in this link http://cedrus.com/support/rb_series/tn1045_usbport_win.htm it shows how to change com port for any device
  6. then change the com value to com 23
  7. then unplug the board replug it
  8. it will work definitelytry
a = arduino('COM23','Uno');
  1 件のコメント
Alex Barbu
Alex Barbu 2019 年 3 月 10 日
changing the port wasnt a solution for me. it still does not connect

サインインしてコメントする。


Madhu Govindarajan
Madhu Govindarajan 2019 年 3 月 11 日
Try putting the device in bootloader mode, by double presssing the RESET button.

カテゴリ

Help Center および File ExchangeSetup and Configuration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by