Azzera filtri
Azzera filtri

Arduino 360 Servo Control Not Possible?

6 visualizzazioni (ultimi 30 giorni)
Mika Clark
Mika Clark il 2 Gen 2021
I am not sure how to control a 360 servo connected to an Arduino with MATLAB. The example here is for an 180 degree servo and I also understand that there is a Simulink Support Package for continuous servo writing here. I am not using Simulink for my project. How do I control this servo motor?
  2 Commenti
Stijn Haenen
Stijn Haenen il 7 Gen 2021
In the example for a 180 degree servo, this line is used to control the angle;
writePosition(s, angle);
For the 360 deg servo you cannot send a command for angle, only for speed. Use:
writePosition(s, 90);
for full speed rotation and
writePosition(s, 0);
to stop the servo.
Stanley
Stanley il 16 Nov 2023
Hi, I am having a very similar problem. I am wondering if you found a solution and if so could you please provide me with advice on how to control my 360 servo. Thank you in advance for any help.

Accedi per commentare.

Risposte (1)

MathWorks MATLAB Hardware Team
Hi,
MATLAB Support Package for Arduino Hardware supports only 180 degrees Servo.
To use 360 degrees Servo please use Custom Addon library as mentioned in this link,
https://in.mathworks.com/help/supportpkg/arduinoio/ug/create-custom-arduino-add-on-library.html
Thanks,
MATLAB Hardware Team
MathWorks

Categorie

Scopri di più su MATLAB Support Package for Arduino Hardware in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by