New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cadence (runzi like) #24
Comments
What you mean by cadence is number of steps / minute ? |
yes number of steps (foot impacts) minute |
I'm sort of working on implementing this... but it's probably gonna take some time before it gets added. |
I thought this was only for when having a cadence sensor, e.g like once Or ? what do you have in mind ? (btw, i think the nexus5 has a cadence sensor...) /Jonas On Tue, Jun 17, 2014 at 8:50 AM, nebmo notifications@github.com wrote:
|
You can use the accelerometer and some algorithm to detect steps. The problem is that is kind of hard creating an algorithm that can handle run/walk while wearing the device anywhere on your body. |
why is step sensor in nexus5 not an option ? i think it's a great option. /Jonas On Tue, Jun 17, 2014 at 9:01 AM, nebmo notifications@github.com wrote:
|
is it a good idea to implement it if it only works for a fraction of our users? |
BLE only works for fraction of users...or ? i think my point is that I doubt that step sensor will be real-life-useable you not having ant+ and/or nexus5 is ofcourse a bummer... /Jonas On Tue, Jun 17, 2014 at 9:16 AM, nebmo notifications@github.com wrote:
|
High end dedicated use sensors, with some success it seems. |
@nebmo it think it would need one hell of an algorithm as there are several locations where people wear their device: stiff to the upper arm, against the hip in a tight, semi-dangling in a backpocket in a short. I guess all have varying characteristics in the resulting accelerometer data. It would be pretty impressive if you pulled it off. It doesn't replace good ANT+ support, though. Do you expect cyclists to wear their phones strapped to their cranks or legs? What about the ANT+ accurate speedometers, the power meters, altimeters and other ANT+ sensors? The Wahoo Tickr Run is a ANT+/BLE HRM with an accelerometer in there. Since it's located in the cheststrap, it's strapped to the core of the runner, simplifying the task at hand, to get a running cadence out of the data. I don't know in what form the data is presented via ANT+, but if it's a preprocessed cadence, that would mean less CPU cycles spent by RunnerUp trying to get the same data by precessing the accelerometer-stream from the phone. Still impressive, if you pull it off though. |
Hi Chris! |
Did you look at implementing a phase-locked loop?
|
You have any good link? |
Well, there's a bit to it. PLLs are usually analog circuits that produces a smoothed output frequency; basically, locking an oscillator in time with an input. Internally it is a combination of phase detection+replication: It's probably better to look for frequency detection algorithms... autocorrelation seems like the ticket: Here's my code/summary:
This could be run independently on the 3 axes, or you could try to find a way to merge the sensors. It is computationally expensive as written, but there is plenty of room for optimization... once you have a frequency, you can immediately start looking in the ballpark... maybe start at .7*k?
|
Cadence on bicycles would be a bit more difficult to detect (unless the phone is kept on a leg), but you are typically limited to just a few different gear ratios at a given speed - if you know the speed and the gear, you know what cadence would be required to go that speed. |
@nebmo |
I'll take a closer look and compare it to autocorrelation (which I suspect
|
👍 |
As time goes by, step sensors get more and more common, in many high-end phones the last years. Anyone that have tested step counter vs accelerometer? |
Cadence from stepsensor in v1.58 |
@gerhardol @jonasoreland wasn't the cadence via phone accelerometer already supported in the previous beta? |
Cadence from stepsensor supported in #490 |
@gerhardol It took me a while to sort this out, so let me make it clear for the sake of the casual reader.
Only dedicated cadence sensor in the phone are supported at the moment, however there is interest in supporting the others, but no ETA yet. See also #24 #337 and #433 |
Hello,
recently i found an app that count impacts when you run, and in my advice it's a good idea (i have found this because i have an achile tandinitis ...)
It seems the app count impacts with accelerometer, can you do that ?
thank you by advance
The text was updated successfully, but these errors were encountered: