Hello all,
I am using the pedometer given inside MPU9150. The API which I am using is:
dmp_get_pedometer_step_count(&stepc);Now, I want to know two things:
1. How are the steps counted inside? Can I modify the algorithm or template which is used inside?
2. Some times it gives step counts in window of 7. That means, if the step count is 2, the next step count will be 9 directly. So, what i deduced is that, pedometer sleeps for sometime and don't give the data to I2C for transfer. Can i turn it of? How?
Thank you in advance...
Re: Re: Inconsistent Data From Pedometer of MPU9150
The algorithm looks for continuous steps (Rhythm) before updating the steps. For example, if you took 2 steps and stop, the algorithm will discard the two steps. But if one takes more than 6 steps it will starting counting from 7,8…until stopped.
Re: Re: Inconsistent Data From Pedometer of MPU9150
@sectionsbest wrote:
Thanks for this reply. Now, i understand how this works. But now my question is...
Can i modify that algorithm?? Or is it hard coded??
Re: Re: Inconsistent Data From Pedometer of MPU9150
It is hard coded by InvenSense and the way it is structured now only InvenSense can change the algorithm.