필터 지우기
필터 지우기

HC-SR04 library listArduinoLibraries is not showing it.

조회 수: 6 (최근 30일)
ahmed arsalan
ahmed arsalan 2017년 10월 18일
댓글: Madhu Govindarajan 2019년 2월 11일
HI i have copied HC-SR04 library to default folder i.e arduino\libraries\ yet listArduinoLibraries is not showing it. please advise actions
  댓글 수: 2
Nicolas Schmit
Nicolas Schmit 2017년 10월 19일
Verify that you added arduino\libraries\ to the MATLAB path.
ahmed arsalan
ahmed arsalan 2017년 10월 23일
yes i have added

댓글을 달려면 로그인하십시오.

답변 (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"
  댓글 수: 3
Kevin Gilliam
Kevin Gilliam 2018년 2월 5일
Did you ever figure this out? I'm having the same problem...
ahmed arsalan
ahmed arsalan 2018년 2월 5일
no not at all!!! I just shifted to labview

댓글을 달려면 로그인하십시오.


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...
  댓글 수: 1
Madhu Govindarajan
Madhu Govindarajan 2019년 2월 11일
Have you tried putting the board into bootloader mode by double pressing the Reset button?

댓글을 달려면 로그인하십시오.

카테고리

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