Embeeded RPM sensor calculation programming assistance

Click For Summary
SUMMARY

The discussion focuses on calculating RPM from a Hall effect sensor signal using an Altera DE0 development board operating at 10 MHz. The sensor provides a frequency range of 1.6 to 166.6 Hz, corresponding to RPM limits of 100 to 10,000 RPM after conversion to RPS. The user polls the digital input to record timestamps for logic level changes, counting clock cycles to determine the duration of the high signal. The proposed calculation method involves dividing the tick count by the CPU frequency and multiplying by 60 to convert to RPM, which is confirmed as correct.

PREREQUISITES
  • Understanding of Hall effect sensors and their output characteristics
  • Familiarity with Altera DE0 development board and its clock frequency
  • Knowledge of basic programming concepts for polling digital inputs
  • Ability to perform calculations involving frequency and RPM conversions
NEXT STEPS
  • Research "Altera DE0 digital input polling techniques"
  • Learn about "Hall effect sensor signal processing"
  • Explore "Calculating RPM from frequency measurements"
  • Investigate "Altera FPGA programming for real-time applications"
USEFUL FOR

Electronics hobbyists, embedded systems developers, and engineers working on RPM measurement and sensor integration projects.

Sparkypedia
Messages
15
Reaction score
0
Hi

i am doing a side project of displaying RPM speed on the Altera development board DE0 which i have running at 10MHZ.

i have got a digital input from a hall effect sensor that has a frequency range from 1.6 to 166.6 Hz.

the signal incoming has a duty cycle of 50%

to calculate the RPM so far the RPM limits of 100rpm to 10000rpm have been converted to RPS by dividing by 60 which has given the above frequencies.

to calculate the time taken i an polling this pin, when is changes to a logic level high the time-stamp of the processor is recorded, from here every tick (clock cycle) is counted up until the signal returns to a logic level low the amount of tick counts is stopped and stored as a variable.

from this value how do i calculate the RPM, thoughts so far have been to divide this value by the CPU frequency (10MHz) to give Hz and then multiply by 60 to give RPM, but I am am not sure if this is correct.

all help with this issue greatly appreciated
 
Engineering news on Phys.org
I'm sorry about the threads heading, I was in a hurry when I typed it up.
 

Similar threads

  • · Replies 21 ·
Replies
21
Views
7K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 18 ·
Replies
18
Views
8K