ADXL345 impact detection

Hi,

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.

Thanks

The ADXL345 can measure up to 16G. So if you hit something, it is out of the range. An accelerometer with a range up to 200G would be better.

A good library is perhaps Adafruit code or i2devlib. http://learn.adafruit.com/adxl345-digital-accelerometer/programming http://www.i2cdevlib.com/devices/adxl345#source

Don't cross-post: http://forum.arduino.cc/index.php?topic=168610.0

An accelerometer with a range up to 200G would be better.

Thanks, I found a ADXL377. Are there any cheaper, Arduino friendly accelerometers out there? Cheers