How to use I/O mode to control a servo motor?

7 ビュー (過去 30 日間)
Cong Sun
Cong Sun 2022 年 5 月 24 日
コメント済み: Cong Sun 2022 年 6 月 24 日
Hello everyone, I am learning to use Arduino to control a servo motor. I successfully realized the this model, using external mode(run on the board), and the motor worked well. However, if I switch to I/O mode(run on the computer), the motor won't move at all. What other settings should I do?
I have another program that is too large to run on the board, so I want to try I/O mode first in this simple example. Any reply is welcomed. Thank you!

採用された回答

Arun Kumar
Arun Kumar 2022 年 6 月 3 日
Hi Cong Sun,
Not all the block support connected IO mode.
The blocks that support this IO mode are listed in the following page:
Other blocks which are not listed in this page will output 0s if you try to run in connecte IO mode.
Hope this helps!
Thanks,
Arun
  6 件のコメント
Arun Kumar
Arun Kumar 2022 年 6 月 24 日
Hi Cong Sun,
Changing of PWM frequency is not supported in Connected IO mode.
Cong Sun
Cong Sun 2022 年 6 月 24 日
Dear Kumar
Thank you for the reply. I think I will try another way. Do you have plan to enrich the functions of Connected IO mode? Have a nice weekend!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by