Arduino Encoder Application with Simulink Problem
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Berke Ogulcan Parlak
am 1 Mär. 2020
Kommentiert: Berke Ogulcan Parlak
am 11 Mär. 2020
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 Kommentare
Akzeptierte Antwort
J Chen
am 2 Mär. 2020
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Arduino Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!