I found a lot of algorithms for pedometers that assume a fast CPU with a decent ALU and high sampling rates, which I don't have. (Z80) However, the LIS3DH has various options for generating interrupts when some condition occurs.
How can I configure it such that it generates interrupts when I'm walking? High accuracy is not needed, I just need to know if the user is moving or not.
I looked through the datasheet, but there are more options than I can wrap my head around. Click detection looked promising, but gave useless, semi-random results, maybe because it only detects fast clicks and not walking speeds. There are also options for free-fall interrupt, inertial interrupt, orientation detection, high-pass filter, FIFO, and more.
I'll sleep on it and toil along tomorrow, but any wise words are hugely appreciated.