neither count steps on reaching across a desk or rotating a wrist
My point was just that if you repeatedly rotate your wrist once every second, they may well start to count steps. But yes, normal reaching/rotating is something that obviously needs filtering out :)
Maybe its time to have a competition
Yes, totally! Is anyone interested in this? I had been considering it... I guess the thing to do would be for us to ensure we have a really good representative set of data in https://github.com/gfwilliams/step-count and then see who can get lowest.
I now have a bunch of what will probably be the 'new' Bangle.js (the SMA Q3) and I could send one of those out to the winner... Or maybe something else?
What is the lifcycle of trying to improve this ?
Realistically it's a matter of changing the C code. It's really pretty basic at the moment.
How would one actually test this for real on a Bangle ?
Right now on the Bangle there's a specific step counter file:
So you'd just have to copy/paste into there, recompile, and DFU. Realistically the step-count repo above should just use that file directly though, then you could just move the file across when you were happy with it.
You actually could just include it with Inline C though, so you could tweak it quickly on real hardware without recompiling. If there's interest I could paste up an example of how to do that?
While obviously it helps to do it on real hardware, there's a lot to be said for doing it 'offline' just because you can run over the same data over and over, look at a graph, see exactly what's going on and why it is/isn't working.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
My point was just that if you repeatedly rotate your wrist once every second, they may well start to count steps. But yes, normal reaching/rotating is something that obviously needs filtering out :)
Yes, totally! Is anyone interested in this? I had been considering it... I guess the thing to do would be for us to ensure we have a really good representative set of data in https://github.com/gfwilliams/step-count and then see who can get lowest.
I now have a bunch of what will probably be the 'new' Bangle.js (the SMA Q3) and I could send one of those out to the winner... Or maybe something else?
Realistically it's a matter of changing the C code. It's really pretty basic at the moment.
Right now on the Bangle there's a specific step counter file:
https://github.com/espruino/Espruino/blob/master/libs/misc/stepcount.c
So you'd just have to copy/paste into there, recompile, and DFU. Realistically the step-count repo above should just use that file directly though, then you could just move the file across when you were happy with it.
You actually could just include it with Inline C though, so you could tweak it quickly on real hardware without recompiling. If there's interest I could paste up an example of how to do that?
While obviously it helps to do it on real hardware, there's a lot to be said for doing it 'offline' just because you can run over the same data over and over, look at a graph, see exactly what's going on and why it is/isn't working.