read digital pin pulses
조회 수: 3 (최근 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!