Home/Support/Support Forum/read speed of a motor using a sensor installed on a motor that reads pulses (rabbit bl4s100)
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

read speed of a motor using a sensor installed on a motor that reads pulses (rabbit bl4s100)

0 votes
i am trying to read the "speed of a motor" using the digital inputs on the SBC, i tried using the program Pulse_capture.c with no luck; is there any example programs that shows the way it should be done, considering we have a sensor that is reading pulses from a rod installed on a motor which act as a trigger?(BL4S100 series)
asked Sep 30, 2015 in Rabbit Software by Patchemaly New to the Community (0 points)

Please log in or register to answer this question.

2 Answers

0 votes
Hello, I think you may use interrupts.c application under
C:\DCRABBIT_10.72\Samples\BL4S1xx\DIO
answered Oct 1, 2015 by cpigilam Veteran of the Digi Community (655 points)
0 votes
The setCounter() function in BL4S1xx.lib can configure an input channel to count pulses. Maybe that would work for you? You could sample that counter at some frequency and use the change in reading to calculate the RPM for the motor.
answered Oct 6, 2015 by TomCollins Veteran of the Digi Community (1,752 points)
...