|
发表于 2013-11-9 00:19:39
|
显示全部楼层
本帖最后由 wingerchen 于 2013-11-9 00:22 编辑
其实MPU6050的DMP就带了计步器功能,而且是7步缓冲。不过这个的工作电流有点大,3.9MA,可以配合MOTION DETECT功能,平时处于低功耗状态,检测到运动了再切换到正常计步模式。
准备移植一把这个DMP库试试看工作电流情况,如果能够让平时工作到LP模式,电流在100微安以下,就可以用用的,至少标称待机时间可以长很多。
文档里是这么说的:
e) DMP_PEDOMETER: This is a step-counting feature that is always ON and running on
the DMP while the MPU is powered. The Motion Driver library can reset pedometer step
count value, query for the walk time, and return step count. There is a latency of 7 steps
before updating the step count number and walk time to improve accuracy and minimize
false-detection. This feature is always enabled as long as the DMP is enabled.
反复试用了各种计步器,基本上关键点就在那个7步延迟计数这里,一定时间内不满7步的就丢掉,可以忽略不少非走路振动。 |
|