Changing the pin of Arduino in Matlab script for mapping algorithm
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ali Khan
am 11 Jun. 2019
Kommentiert: Floris
am 12 Jun. 2019
HI guys,
I want to know that either we can change the predefined digital pin of Arduino in Matlab mapping algorithm or not. I am attaching the refrence link where i took the code. Now i am not sure that either these digital pins are predefined in libraries or just in a script. Thanks for your help
1 Kommentar
Floris
am 11 Jun. 2019
Hello,
Are you talking about the digital pins defined in the example code?
%% Create an ultrasonic sensor object with trigger pin D12 and echo pin D13.
% Create a servo object for the servo connected to pin D3.
sensor = addon(a, 'JRodrigoTech/HCSR04', 'D12', 'D13');
servo_motor = servo(a, 'D3');
Because you should be able to just configure 'D12', 'D13', 'D3' to other pins on your board.
You can read more about setting arduino pins here:
Akzeptierte Antwort
Ali Khan
am 11 Jun. 2019
1 Kommentar
Floris
am 11 Jun. 2019
So I have never messed around with bluetooth for MATLAB and Arduino. I would recommend doing some googling and looking around on the internet. Here is what I found: https://www.mathworks.com/help/supportpkg/arduinoio/ug/arduino-bluetooth-setup-issues.html
Weitere Antworten (1)
Ali Khan
am 11 Jun. 2019
1 Kommentar
Floris
am 12 Jun. 2019
Hello Ali,
I would open this as a separate question rather than using this question-answer thread to answer more questions. This error is, as the error states, because you have not defined 'table'. This means that the MATLAB compiler has no idea what to do with the word 'table' so take a good look at your code to see what table should be.
-Floris
Siehe auch
Kategorien
Mehr zu MATLAB Support Package for Arduino Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!