Faster analog read for Geartooth Hall Sensor on an Arduino Mega2560 with Simulink?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to measure the revolutions per minute of my DC motor with Simulink. I got a geartooth sensor / hall sensor to detect the leading edges of the motors gear. When i increase the baud rate of my Arduino the detected leading edges are increasing aswell, which brings me to the conclusion that my sampling rate isn't high enough to detect the gears true revolutions per second.
I have found a discussion on the arduino forums (https://forum.arduino.cc/index.php?topic=6549.0) explaining how to do it using the arduino programming environment.
Is there a way to increase the sampling rate of my Arduino's in Simulink?
In the attachments are the function i used in my Simulink model and the Simulink model itself.
0 Kommentare
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!