I am wondering if there is a way to calibrate the accelerometer with code to people to operate in different reference frames. I want to be able to detect changes in acceleration while accounting for the fact that it might not be perfectly flat during the acceleration. Any help is greatly appreciated.


The part’s onboard processing appears to be quite limited; it can generate an interrupt when measured acceleration along some axis goes over or under a specified threshold, but that’s about the extent of it. Anything more complex than this would involve streaming acceleration data from the part and interpreting it using an external processor of some kind to achieve the specific function desired.