matlab error while trying to connect servo motor through arduino
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
if true
a = arduino('com24', 'uno', 'Libraries', 'Servo');
s = servo(a, 'D8')
end
when i run this code i get an error Invalid pin format. Pin number must be a scalar integer.
i am using r2014a version.
Pls help me solve this error
2 Kommentare
Antworten (2)
Duaner
am 2 Jul. 2016
I had the same error when trying to read voltage output readVoltage(a,'A1') Invalid pin format. Pin number must be a scalar integer. after messing around i found this to work: readVoltage(a,1)
ans =
4.9951
1 Kommentar
PRIYA RANJAN PATTANAIK
am 4 Mär. 2017
Bearbeitet: PRIYA RANJAN PATTANAIK
am 4 Mär. 2017
Try s = servo(a, 8)
0 Kommentare
Communitys
Weitere Antworten in Power Electronics Control
Siehe auch
Kategorien
Mehr zu Servo Motors 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!