Driving continuous servo through arduino with MATLAB?
2 ビュー (過去 30 日間)
古いコメントを表示
Is it possible to drive a continuous servo connected to an Arduino with MATLAB? The servo library does not seem to have any functions able to drive a servo beyond 360 degrees, and I wonder if there is a workaround. I'm aware of a simulink block that can do this, but I'm working with a MATLAB code base. I'm working with this snippet here:
a = arduino('COM15', 'nano', 'Libraries', 'Servo');
pin = 'D10';
s = servo(a, pin);
writePosition(s, .2)
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で MATLAB Support Package for Arduino Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!