Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 1 month ago.
Read data from ADXL345 acceleration sensor
Hello forum,
i currently try to read acceleration data from an ADXL345 sensor. I set the sensor to '16G' - range and 'full-res'. Because of that each unit should represent 4mG.
So this is my code which is responsible for the data read:
If the sensor is placed horizontally i get these values:
X: 0 Y: 0 Z: 9658
I think this can't be correct. If i expect this to be mG it would be9.7G! Where is my mistake?