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.
1 year ago.
How to interpret accelerometer data?
I am developing a tilt sensor for which I am using the ADXL313.
I am confused with the data I am getting because I can not do further process If I will not understand the reading of accelerometer.
I am dealing with all the 3 axes of accelerometer and the data I got on rest are as follows
X-Axis Y-axis Zaxis -256, 2240, 32704, -256, 2240, 32704, -256, 2368, 32704, -128, 2240, 32704, -256, 2304, 32704, -192, 2304, 32704, -192, 2240, 32704, -192, 2240, 32704, -128, 2368, 32704, -256, 2368, 32704, -256, 2304, 32704, -256, 2368, 32704, -256, 2304, 32704, -192, 2304, 32704, Here I want to make clear some of the setting of accelerometer so that it will be more clear to ask.
I am using 0.5 g sensitivity level and the data rate is 50 Hz, Here I am including some information please take a look--
Go into standby mode to configure the device. accelerometer.SetPowerControl(0x00);
Full resolution, +/-0.5g, 1024LSB/g. accelerometer.SetDataFormatControl(0x04); 0b 0000 0100 ;
100Hz data rate. accelerometer.SetDataRate(ADXL313_100HZ);
Measurement mode. accelerometer.SetPowerControl(0x08); 0b 0000 1000
I am very confused that what I am getting from accelerometer When I read the datasheet then in that it is given that the accelerometer gives the output in mg/LSB form but according to that when I converti it into gravity I got the wrong data.
I also want to know that the data is in 16 bit or 10 but since the range is weird so I can not understand what it is and in which form?
I do not belong to an engineering background so I am struggling a lot.
Please make me clear all there things.
1 year ago.
The data looks very stable and normal to me. The part puts out 10 bit data so take your values and divide by 64 From there you will get data that looks like: -256, 2240, 32704 => -4, 35, -1
Each "bit" represents 0.5mg so you are slightly tilted from horizontal -4/511g(X), 35/511g(Y), -1/511g (Z)