Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I measure RPM from a gear tooth sensor.

Hi

 

I have a NPN type gear tooth Hall Effect speed sensor that produces a pulse (voltage drops to zero then back to the pull up voltage value V) with every passing gear tooth.

 

I want to measure the speed of that rotating gear at a rate of at least a 100 Hz (meaning a 100 readings per second for monitoring purposes).

 

How do I perform this measurement? What hardware would I need? I currently have the USB 6002 with 1 built in counter but no hardware clock so I can’t perforce frequency measurements with it😭.

3ABB3CB9-3A06-4A26-AF46-C4F76CA8CB20.jpeg


I know the formulae for RPM from pulses is:

 

54DD0482-59D8-49BF-B787-991075C98265.png


I can I reliably get the Pulse frequency?

 

Regards.

 

0 Kudos
Message 1 of 5
(2,232 Views)

You can still reuse 6008 by capturing your pulse signal using analog input, do N sample read, read 100ms worth of samples every time, count the number of transitions in 100ms worth of captured analog signal, and convert to RPM.

 

Please note, this method has a bunch of downsides compared to native counter-based frequency measurement.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 5
(2,223 Views)

What kind of software environment are you using? (LabVIEW? Something else?). Done right, reading the counter at somewhat regular intervals should be able to give you the desired measurements.

0 Kudos
Message 3 of 5
(2,192 Views)

@santo_13 wrote:

You can still reuse 6008 by capturing your pulse signal using analog input, do N sample read, read 100ms worth of samples every time, count the number of transitions in 100ms worth of captured analog signal, and convert to RPM.

 

Please note, this method has a bunch of downsides compared to native counter-based frequency measurement.


Thank you, will try that out. N samples with every read is what I didn’t think of doing.  

0 Kudos
Message 4 of 5
(2,167 Views)

@altenbach wrote:

What kind of software environment are you using? (LabVIEW? Something else?). Done right, reading the counter at somewhat regular intervals should be able to give you the desired measurements.


LabView 2021.


Yes I tried exploring that avenue but discovered that I only had 1 counter in the 6002 USB device and I need to measure +3 speed sensors.

 

So I made my own edge counter VI using the digital input with Boolean data and an interval of 100 ms but it would often skip counts and cause the rpm reading to drop with every few readings.

 

Will link the VI as soon as my Power is back.

0 Kudos
Message 5 of 5
(2,161 Views)