Arduino Encoder Application with Simulink Problem
4 ビュー (過去 30 日間)
古いコメントを表示
Berke Ogulcan Parlak
2020 年 3 月 1 日
コメント済み: Berke Ogulcan Parlak
2020 年 3 月 11 日
Hi, I'm using the Arduino Support Package for Simulink Toolbox. My goal is to make a counter that counts up when it rotates clockwise and counts down when it rotates counterclockwise by using KY-040 Encoder. I can read all values appropriately. (Encoder has 2 output pins, OutA and OutB, and they produce digital signals.) My problem is to take the values I read from the OutA pin and compare them with the new values. Which blocks should I use for this?
0 件のコメント
採用された回答
J Chen
2020 年 3 月 2 日
You can use Simulink Delay block which store you last data. Type delay in the search box in the Simulink Library Browser to locate the block.
5 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Arduino Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!