I am thinking of using an ADXL345 accelerometer in a project to detect if my device has a heavy collision with a wall/ hard surface. I was wondering whether anyone knows a good library or source to be able to achieve this. I need to trigger other events on a big collision.
Are you reading data from the ADXL345 now? How does that data change when a "heavy collision" occurs?
Since the ADXL345 is an accelerometer, and an accelerometer reports instantaneous acceleration, and acceleration is rate of change of velocity, a "heavy collision" should result in a large change in velocity in a very short time.