I am trying to create an Arduino Uno object in MATLAB with the typical syntax:
"a = arduino('/dev/cu.usbmodem1411','Uno','Libraries', {'JRodrigoTech/HCSR04', 'Servo'});"
this object is to include the HCSR04 & Servo libraries so I can mount the Ultrasonic sensor on the servo, rotate the servo & take readings with the ultrasonic & finally plot them to a polar plot to create a "radar" effect. However, I can't seem to upload the 'JRodrigoTech/HCSR04' library to the Arduino. I can create an Arduino object normally with:
"a = arduino()"
but this, by default only includes the 'Servo' library. I've tried the 'listArduinoLibraries' command in MATLAB & the 'JRodrigoTech/HCSR04' shows up, so it's installed properly in MATLAB, but for whatever reason, I cannot get 'JRodrigoTech/HCSR04' to upload to the board. The error message that I get in particular is:
"Error using Radar (line 2)
Cannot program board Uno (/dev/cu.usbmodem1411). Please make sure the board is supported and the
port and board type are correct."
Any suggestions would be greatly appreciated!
hey, did you get any lucky answer on this question? I got exactly the same problem and I am quite struggling here....