How Do You Convert Milliseconds to 8.68 Microsecond Units for RPM Calculations?

  • Context: Undergrad 
  • Thread starter Thread starter Wetmelon
  • Start date Start date
  • Tags Tags
    Units
Click For Summary
SUMMARY

The discussion focuses on converting time measurements from milliseconds to 8.68 microsecond units for RPM calculations in microcontroller programming. The conversion of 10 milliseconds to 8.68 microsecond units results in approximately 1152 units, confirming the calculation as accurate. The relationship between the number of pulses counted and RPM is established as linear, with the formula R(n_p) = 6000n_P, where n_P represents the number of pulses. This formula allows for straightforward conversion from pulse counts to RPM values.

PREREQUISITES
  • Understanding of microcontroller programming
  • Familiarity with time unit conversions (milliseconds to microseconds)
  • Knowledge of RPM calculations and relationships
  • Basic mathematical skills for linear equations
NEXT STEPS
  • Research time unit conversion techniques in embedded systems
  • Learn about pulse counting methods in microcontroller applications
  • Explore linear relationships in RPM calculations
  • Study programming techniques for microcontroller timing functions
USEFUL FOR

Microcontroller developers, engineers working with RPM measurements, and anyone involved in embedded systems programming will benefit from this discussion.

Wetmelon
Messages
154
Reaction score
1
Hi all,

I'm running a microcontroller that has me program times in 8.68microsecond units, and I'm having an issue converting 10ms to 8.68us units, then counting a number (scalar) then taking that number and getting RPMs from it.

Here's what I have so far:

10ms = 10,000us

10,000us/8.68 ~ 1152 (8.68us units) --> Is this right?

The program counts a number of pulses for 10ms, and returns that value, for example, in 10ms at 6,000 RPM I should see

6,000RPM = 100R/s (Hz) = 1R/10ms = 1 pulse

Then I want to convert from the one pulse back up to RPMs, so I need a scalar, I guess 6000 would be correct across all RPMs?


I feel like I've made a mistake here somewhere, but have I done this correctly?
 
Mathematics news on Phys.org
A bit late, but in case someone else has a similar question:
Wetmelon said:
10,000us/8.68 ~ 1152 (8.68us units) --> Is this right?
To the nearest unit, yes.
Wetmelon said:
6,000RPM = 100R/s (Hz) = 1R/10ms = 1 pulse
That works for me.
Wetmelon said:
Then I want to convert from the one pulse back up to RPMs, so I need a scalar, I guess 6000 would be correct across all RPMs?
Yes, if I understand what you mean. There's a linear relationship between the number of pulses and the RPM, according to this formula: ##R(n_p) = 6000n_P##. If there is one pulse (##n_p = 1##), then R = 6000 (rev. per min). If there are two pulses, R = 12,000.
 

Similar threads

Replies
4
Views
2K