Inconsistent Data From Pedometer of MPU9150

By pplower , 3 September 2013

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...

guy_mcilroy

12 years 6 months ago

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.

phpbb Post ID
23883

pplower

12 years 6 months ago

@sectionsbest wrote:

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.


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??
phpbb Post ID
23886
phpbb Topic ID
15579