The LIS2D looks to be very similar to the LIS3DH so it could probably be implemented with few changes to my library. However, Particle no longer uses the ST accelerometers; the Tracker SoM use the Bosch BMI160 IMU.
@rickkas7 do you recall why the asset tracker moved away from using the LIS3DH? I’m curious to know if I should use the same thinking for introducing a new design change to use the LIS3DH or try to find something newer.
The main problem I have with the LIS3DH is with gravity cancellation. Since it does not have a gyroscope, the only way you can cancel out gravity is either:
Require that it be sitting flat, and then ignore acceleration in the Z direction. Often not a practical solution.
When it’s not moving, use that as a baseline to detect change in acceleration. The problem is how do you know it’s not moving? There’s a heuristic in the library that sort of works, but it’s not great.