Adxl345 detect movement when mounted in an angle

Hi!
I've been wanting to wake up an attiny85 on movement detected by the adxl345.
The problem I'm facing is that the adxl345 doesn't differentiate between "external" forces and gravity and in my use case (a bike light) it won't be possible to mount the sensor perfectly (or even roughly) perpendicular to the ground to separate the gravity values.
As a result I don't know how I can detect movement without using the attiny to calculate the sum of forces (which is problematic as I want it to sleep).

Is it just not possible with the adxl345? If so, is there any other sensor that will better fit my needs?

To wake on movement irrespective of orientation, you can use a "shake switch", available here in three different sensitivity levels: Fast Vibration Sensor Switch (Easy to trigger) : ID 1766 : $0.95 : Adafruit Industries, Unique & fun DIY electronics and kits

thanks!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.