Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

how to do rpm measurement with hall effect sensor

Hello everyone, 

 

Sorry for my enquiry if it's too simple problem for you, anyway I am new to LabView. I want to measure rpm of a shaft. Let me describe the setup. I have attached two magnets on either side of the shaft and placed a hall effect sensor near by. In each revolution when north pole passes I get positive volt and when south pole passes it reduced to 0 volt. So i get square signal and each consecutive peak indicates one revolution. Now the thing is that I want to count the peaks lets say 10 peaks (or 10 rev) and the time from 1st peak to 10th peak. then I want to calculate the rpm. 

Download All
0 Kudos
Message 1 of 2
(4,519 Views)

Hey fuadhasan,

 

What DAQ device do you have?

 

Use a counter task to count the number of pulses. Alternatively, if you can only use a digital input task you can read the line and compare it to the previous reading. If the previous reading was 0 and the new reading is 10V then you can count that as a single pulse.

 

I hope this helps.

Michael Bilyk
Former NI Software Engineer (IT)
0 Kudos
Message 2 of 2
(4,472 Views)