- #1
Wetmelon
- 154
- 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?
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?