This project is a small example to show how to detect shocks with a MEMS. The handler detects the variations of the MEMS data (the sum of squares of the variations of x/y/z), and increment a step for each double variation.
The level is tunable (UP/DOWN with the joystick), and an hysteresis as well (LEFT/DOWN).
The number of steps, the level and the hysteresis are displayed on the LCD monitor.
The default values seem to work not too bad for a "normal" walker (I assume I am "normal").