LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RPM from hall effect sensor, peak detection?

Hello,

 

I have a hall effect sensor picking up from a small magnet attached to a small fan, the input into the DAQ is in the below Imgur link and attached.

 

www.imgur.com/a/8TOpjs1

 

I can tell that I am getting roughly two rotations every 0.1seconds, so 20/second, 1200/min, however how can I get labvLab to detect and calculate this automatically over a period of one minute. Ideally I'm after something that would count how many times 2.5V is exceeded, then resetting at 2.45 so it can increment again after 2.5V is exceeded again, so that ultimately if the count in a minute period is lower than a setpoint I can trigger an output when the rpm is less than a certain setpoint if the fan slows down. (I can do this but I think)

 

After looking at previous threads I've seen peak detection recommended, however it looks more complicated than I'd have guessed, is this the only way, or is there a simpler, cruder solution?

Od067AQ_d.jpg

 

Regards

 

Ed

0 Kudos
Message 1 of 3
(2,304 Views)

Wire your signal up to the "Extract Single Tone Information" VI to get a frequency value.  Since you only get one pulse per revolution, multiply frequency by 60 to get an RPM value. 

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 2 of 3
(2,292 Views)

Thanks pal, I'm going to have a look tomorrow, appreciate it

0 Kudos
Message 3 of 3
(2,253 Views)