Hi All, I'm trying to use an accelerometer(LIS3LV02DQ) to detect shocks. Currently it is configured to use I2C interface, +/- 6g 40Hz sampling rate. I'm integrating every 60 samples' absolute value, to work out the energy. I then reset the energy value to zero after 60 samples and start over. If the calculated energy is greater then x, I trigger a shock alert.
Is that a correct way of detection shocks? Is my sampling rate too low? Are there any algorithm out there I can use?
Thank you for any help you may offer.
Regards,
Zhao