HC-SR04 library listArduinoLibraries is not showing it.
8 ビュー (過去 30 日間)
回答 (3 件)
Madhu Govindarajan 2017 年 10 月 26 日
編集済み: Walter Roberson 2019 年 2 月 9 日
Have you tried using this? - https://www.mathworks.com/matlabcentral/fileexchange/57898-hc-sr04-add-on-library-for-arduino
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 2018 年 2 月 24 日
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'
Thulasiram Reddy 2019 年 2 月 9 日
iam using matlab 2016a version and i installed arduino matlab support packages
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
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...