Hello,
My current setup is an Arduino Uno with a Datalogger Shield and LIS331 Accelerometer breakout board (SparkFun Triple Axis Accelerometer Breakout - LIS331 - SEN-10345 - SparkFun Electronics). I am trying to create a device that will detect a bump and record the accelerometer information to the SD card on the datalogger shield. So far, I have the X, Y and Z data being recorded constantly and time stamped onto the SD card. Now I want the accelerometer to only record bumps, not constant data.
This is where the problem lies. I have found useful code (Configuring interrupt on accelerometer (LIS331HH) - Programming Questions - Arduino Forum) from someone with a similar problem but their solution does not seem to help my case. I cannot configure the interrupts on the accelerometer. Any help is greatly appreciated!
Arduino_Code.ino (7.29 KB)