Effacer les filtres
Effacer les filtres

HC-SR04 library listArduinoLibraries is not showing it.

6 vues (au cours des 30 derniers jours)
ahmed arsalan
ahmed arsalan le 18 Oct 2017
HI i have copied HC-SR04 library to default folder i.e arduino\libraries\ yet listArduinoLibraries is not showing it. please advise actions
  2 commentaires
Nicolas Schmit
Nicolas Schmit le 19 Oct 2017
Verify that you added arduino\libraries\ to the MATLAB path.
ahmed arsalan
ahmed arsalan le 23 Oct 2017
yes i have added

Connectez-vous pour commenter.

Réponses (3)

Madhu Govindarajan
Madhu Govindarajan le 26 Oct 2017
Modifié(e) : Walter Roberson le 9 Fév 2019
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 commentaires
Kevin Gilliam
Kevin Gilliam le 5 Fév 2018
Did you ever figure this out? I'm having the same problem...
ahmed arsalan
ahmed arsalan le 5 Fév 2018
no not at all!!! I just shifted to labview

Connectez-vous pour commenter.


vladimir so
vladimir so le 24 Fév 2018
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 commentaire
Madhu Govindarajan
Madhu Govindarajan le 26 Fév 2018
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.

Connectez-vous pour commenter.


Thulasiram Reddy
Thulasiram Reddy le 9 Fév 2019
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 commentaire
Madhu Govindarajan
Madhu Govindarajan le 11 Fév 2019
Have you tried putting the board into bootloader mode by double pressing the Reset button?

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Support Package for Arduino Hardware dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by