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つのエンコーダーを制御する関数を教えていただきたいです.

Respuestas (0)

Preguntada:

el 5 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!