• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Matlab安装Arduino函数库HC-SR04

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

Matlab安装Arduino函数库HC-SR04

这个官网给出的教程存在瑕疵HC-SR04 Add-On Library for Arduino,但还是能解决问题的。我是先在官网下的工具箱HCSR04_Add-On_Library_for_Arduino.mltbx,(如何安装)安装之后发现会报错,然后根据评论里的大佬的留言:到github上下载了一个文件,把解压后放到目录:
C:\MATLAB\SupportPackages\R2016a\arduino-1.6.1\libraries或者C:\Documents\Arduino\libraries
然后就可以使用了。

大佬原话如下:
Hi!
For all those who have downloaded and installed all the libraries but still cannot get their arduino board to work, follow the steps below. Skip those you’ve done already.
-install arduino support package for matlab.
-install arduino support package for simulink.
-download the hcsro4 arduino library from the link below
https://github.com/JRodrigoTech/Ultrasonic-HC-SR04/archive/master.zip
-extract the zip to Documents\Arduino\libraries" and rename it to ‘Ultrasonic’.
Note: if the exracted folder has two folder levels then you must delete one. see the paths below;
Correct path:
“Documents\Arduino\libraries\Ultrasonic”. then you see the “. h” file,…
Wrong path:
Documents\Arduino\libraries\Ultrasonic\Ultrasonic".

参考以下:
https://ww2.mathworks.cn/matlabcentral/fileexchange/57898-hc-sr04-add-on-library-for-arduino?s_tid=srchtitle
https://blog.csdn.net/majun1259389904/article/details/54773397


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
用Matlab和Arduino+HC-SR04建图发布时间:2022-07-18
下一篇:
MATLAB——textscan发布时间:2022-07-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap