フィルターのクリア

How can I connect ultrasonic sensor to MatLab by using Arduino?

2 ビュー (過去 30 日間)
Grigoriy Yashin
Grigoriy Yashin 2016 年 10 月 25 日
コメント済み: Hari Desanur 2016 年 11 月 14 日
How can I connect ultrasonic sensor to MatLab R2014a by using Arduino? I tried to use the library HC-SR04 Add-On Library for Arduino, but I couldn't add this library correctly by using buttons Add-Ons and Set Path. MatLab just doesn't see this library. If I try to lounch file HCSR04.m, I got error:
Undefined variable
"arduinoio" or class
"arduinoio.FilePath".
I'm not sure, but may be reason of this is that library is written for MatLab R2016a? Could someone help me with this problem?
  1 件のコメント
Hari Desanur
Hari Desanur 2016 年 11 月 14 日
As the 'HC-SR04 Add-On Library for Arduino' link suggests, it requires MATLAB R2016a or higher and MATLAB Support Package for Arduino Hardware.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by