read digital pin pulses
8 ビュー (過去 30 日間)
古いコメントを表示
how could I read digital pin pulses from arduino in matlab?
I mean by writing readDigitalPin(a,'D4')
it shows just 0 or 1
but I want to read pulses from this pin which connected with the phase of increamental encoder
0 件のコメント
回答 (1 件)
Asad Mirza
2019 年 2 月 24 日
Digital pins only return values of 0 or 1. If you want to read voltage information from an incremental encoder it would have to be connected to an analog in pin and then you would have to use readVoltage.
7 件のコメント
Welid Benchouche
2022 年 9 月 15 日
but can matlab call an interrupt in matlab code ?not the external interrupt or detect increase in simulink, in matlab code.
参考
カテゴリ
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!