read digital pin pulses
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Asad Mirza
le 24 Fév 2019
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 commentaires
Welid Benchouche
le 15 Sep 2022
but can matlab call an interrupt in matlab code ?not the external interrupt or detect increase in simulink, in matlab code.
Voir également
Catégories
En savoir plus sur Arduino Hardware dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!