I can not connect my arduino to MATLAB
14 ビュー (過去 30 日間)
古いコメントを表示
>> a=arduino('COM5'); Attempting connection ............. Warning: Unsuccessful read: A timeout occurred before the Terminator was reached. Error using arduino (line 104) Connection unsuccessful, please make sure that the board is powered on, running a sketch provided with thepackage, and connected to the indicated serial port. You might also try to unplug and re-plug the USB cable before attempting a reconnection. Please tell me how to fix this error, i used Matlab 2013a, does it support this feature?
0 件のコメント
採用された回答
その他の回答 (1 件)
Brais Gonzalez
2017 年 11 月 21 日
Answer for Error using arduino (line 104) Warning: Unsuccessful read: A timeout occurred before the Terminator was reached.
The answer is: 1 In the Arduino software(IDE). You need write the code, which you find in file "adioes.pde" There are three files adio, adioe, adioes. A for analog D for digital I for input O for Output E for encoder S for Servo. If you need a Servo o a encoder, you need put the code more complete adioes. 2 Compile this code and send to arduino. Close the IDE 3 To open matlab and to write a=arduino("COMxx") 4 You has finalized the Arduino instalation
2 件のコメント
Mohammed Zaid Khan
2020 年 9 月 3 日
thanks, i faced the same problem. I sought out the problem with your method. Thanks a lot.
参考
カテゴリ
Help Center および File Exchange で MATLAB Support Package for Arduino Hardware についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!