hc-sr04

10 次查看(过去 30 天)
rasim cekic
rasim cekic 2017-3-22
评论: Golden YE 2021-7-19
The Arduino source 'Ultrasonic/Ultrasonic.h' for libraries 'JRodrigoTech/HCSR04' cannot be found. Install the 3P library source first and try again
  3 个评论
Madhu Govindarajan
Madhu Govindarajan 2017-10-27
Is it possible that you did not put the folder in the libraries as mentioned? Step 3.
If you did that correctly, then please check if there is only one level of folder called Ultrasonic under libraries as shown in the image below
zhang yingpeng
zhang yingpeng 2017-10-30
can I install the Ultrasonic Arduino library with MATLAB2015b?

请先登录,再进行评论。

回答(1 个)

ibra
ibra 2019-4-1
First download the file from this link
there is another file in the describtion, download it and put it in the arduino file in matlab
C:\ProgramData\MATLAB\SupportPackages\R2016b\3P.instrset\arduinoide.instrset\arduino-1.6.13/libraries
or type arduinoio.IDERoot in command window to see the directory of the file
if you get this error:
Cannot program board Uno (COMX). Please make sure the board is supported and the port and
board type are correct.
then rename the Arduino folder in Documents into anything else. and open the arduino.exe
from this folder (C:\ProgramData\MATLAB\SupportPackages\R2016b\3P.instrset\arduinoide.instrset\arduino-1.6.13/libraries)
you'll get this message "The sketchbook folder no longer exists. Arduino will switch to the default sketchbook location , and create a new sketchbook folder if necessary. Arduino will then stop talking about himself in the third person."
also it will help if you run matlab as an administrator

类别

Help CenterFile Exchange 中查找有关 Setup and Configuration 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by