HC-SR04 library listArduinoLibraries is not showing it.

4 次查看(过去 30 天)
HI i have copied HC-SR04 library to default folder i.e arduino\libraries\ yet listArduinoLibraries is not showing it. please advise actions

回答(3 个)

Madhu Govindarajan
Madhu Govindarajan 2017-10-26
编辑:Walter Roberson 2019-2-9
Please follow all the instructions provided in that order -
Important: Before using this add-on library in MATLAB, you need to install the Ultrasonic Arduino library. Here are the instructions: 1. Download the zip file from https://github.com/JRodrigoTech/Ultrasonic-HC-SR04/archive/master.zip 2. Unpackage the zip into local directory and rename the folder to ‘Ultrasonic’. 3. Move the ‘Ultrasonic’ folder into the "libraries" folder inside your Arduino sketchbook folder: On Windows, the default path is "Documents\Arduino\libraries\" On Mac, the default path is "~/Documents/Arduino/libraries/" On Linux, the default path is "/home/<username>/Arduino/libraries"

vladimir so
vladimir so 2018-2-24
query
They could explain where exactly this file should be copied.
I have copied everywhere but when writing: listArduinoLibraries in matlab I only get it: 'Adafruit / MotorShieldV2'      'I2C'      'SPI'      'Servo'
  1 个评论
Madhu Govindarajan
Madhu Govindarajan 2018-2-26
Have you tried the commands provided in this answer ? If not, please try it with your library name - I would guess some version that involves 'JRodrigoTech/HCSR04' should fix the issue.

请先登录,再进行评论。


Thulasiram Reddy
Thulasiram Reddy 2019-2-9
iam using matlab 2016a version and i installed arduino matlab support packages
Description:
i want to interface ultrasonicsensor with matlab but the addon is not showing in matlab after that i seted path i given command "listArduinoLibraries" it showing
'Adafruit/MotorShieldV2'
'I2C'
'JRodrigoTech/HCSR04'
'SPI'
'Servo
afer that i again given command a = arduino('COM6', 'Uno', 'Libraries', 'JRodrigoTech/HCSR04')
Updating server code on board Uno (COM6). Please wait.
Cannot program board Uno (COM6). Please make sure the board is supported and the port and board type are correct.
?????????????whycoming like this...

类别

Help CenterFile 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!

Translated by