aruduinoを用​いてロータリーエンコ​ーダー付きモータの値​を出力する方法

エンコーダーの値を出力するため,rotaryEncoder(a,chA,chB) の関数を用いましたが,
Library 'RotaryEncoder' is not uploaded to the board. Clear the current arduino object and recreate it to include the appropriate library. For a list of available libraries, type 'listArduinoLibraries'
というエラーが出てしまいました.
考えられる原因は,使用したエンコーダーのパルスが2つではなく,1つのものを使用しました.
パルスが1つであるエンコーダーはこの関数では使用できないのでしょうか.
もしそうであれば,パルスが1つのエンコーダーを制御する関数を教えていただきたいです.

回答(0 个)

类别

帮助中心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!