Are there any well known algorithms to count steps based on the accelerometer?

前端 未结 3 967
囚心锁ツ
囚心锁ツ 2020-12-08 17:33

I\'m implementing an accelerometer-based pedometer, and I was wondering if there was any known algorithms to handle that.

3条回答
  •  天命终不由人
    2020-12-08 17:59

    There's an interesting paper (with source code) here that may be of help: http://www.analog.com/static/imported-files/application_notes/47076299220991AN_900.pdf.

    The charts are interesting. If I were to do this myself I would probably sample the data at a fairly high frequency, convert to frequency domain with a FFT, apply a digital band-pass filter to cut off all frequencies outside the expected minimum/maximum walking speeds (including any DC offset), do a reverse-FFT to reconstruct the now-filtered signal and then run the resulting data through an edge-detector with a Hysteresis function. This is all pure speculation of course but looking at those charts I think it would work, it would be relatively fast to code up and well within the processing power of a mobile phone.

提交回复
热议问题