Finally, I solved it! The problem was in bitwise operation. Should do int16_t temp = 0;temp = i2c_readbyte(addr, 0x28);temp |= i2c_readbyte(addr, 0x29) << 8;temp >>= 6;OUTX_NOST += temp;instead of OUTX_NOST += ( i2c_readbyte(addr, 0x28) | (i2c_readby...
Can you check your code with the lsm303agr_self_test.c C example for LSM303AGRUnfortunately, already has been done, but had no luck :( Shall check once more.
are you facing the issue always on the X axis or this is random?If the board is in one position, then only X-axis fails. If orientation changes, then it could be two axes fail or only Y-axis. Did you discarded the 1st sample data as described in the...
Hi @Eleon BORLINI , we are struggling to solve the accelerometer self-test constant failure. We were referencing AN4825 self-test routine flow. We are facing this issue on three different boards. Besides, results depend on board orientation. Could...