(where x, y, z are the acceleration values on the 3-axis in m/s²)
I get values up to 0.5 m/s² when the board is lying and not moving at all.
My expectation is, that the total sum acceleration vector should be 0 when there is no movement (–> no acceleration).
I put some more energy in getting the LIS3DH work.
I hoped that the error is constant, so I developed some kind of calibration for the LIS3DH.
But the values I get from the sensor are a kind of radom. After moving/accellerating the sensor, it often stays at this values…
I also tried now (instead of using the upper mentioned libaries) to use the code of https://github.com/RAKWireless/Arduino-on-Rak5010-/blob/master/Rak5010.ino#L99-L165.
But also thsi does not give me values which I could work with.
@RAK-wireless-Staff, @nero is there maybe some issue about the voltage ? Is it ensured, that the sensor gets it 3.3V ? Is there a level-shift, if the board-voltage is eg 3.7V ?
What is the correct way of using the sensor ? Sparkfun libary, Adafruit, … ?
Any other ideas ? I spent a lot of time trying to get acceptable values from the sensor, but did not find a way yet
Because the library on Arduino is not from us. We are not clear the arithmetic. But if you want to just check it moves or not, what about using the interrupt of lis3dh with a appropriate threshold value? It means you write own arithmetic.