Compensating for accelerometer values

  • Thread starter Thread starter turban2k
  • Start date Start date
  • Tags Tags
    Accelerometer
Click For Summary
SUMMARY

This discussion focuses on compensating for the normal force components in accelerometer readings due to misalignments on the X and Y axes. The user seeks to de-rotate 3-D vectors (x, y, z) from an accelerometer to account for these normal forces, which are misinterpreted as gravity. The conversation emphasizes the distinction between normal force and gravitational force, clarifying that accelerometers measure normal forces rather than gravitational acceleration. The IEEE standard IEEE Std 1293-1998 is recommended for further guidance on this topic.

PREREQUISITES
  • Understanding of 3-D vector mathematics
  • Familiarity with accelerometer functionality and readings
  • Knowledge of quaternions for rotation calculations
  • Basic principles of forces acting on stationary objects
NEXT STEPS
  • Study the IEEE Std 1293-1998 for specifications on accelerometers
  • Learn about quaternion mathematics for 3-D rotations
  • Research methods to isolate normal force components in accelerometer data
  • Explore practical applications of accelerometer data in robotics and motion tracking
USEFUL FOR

Engineers, robotics developers, and anyone involved in motion sensing or accelerometer data analysis will benefit from this discussion.

turban2k
Messages
2
Reaction score
0
This is my first post, so forgive me if I'm in the wrong place!

I know this topic has come up before, but I haven't seen quite what I need. I am basically looking for the math behind de-rotating the 3-D vectors (x,y,z) that I read out of an accelerometer, in order to compensate for gravity.

So I'll try to use an example. I have an accelerometer mounted on a surface, but it may be slightly tilted on the X axis (roll) and slightly tilted on the Y-axis (pitch). I'm assuming X axis points forward/back. Due to these slight rotations, I will have gravity components in the X and Y readings from the accelerometer.

So at steady state, I read out a relatively constant vector v1 = (x,y,z), where z is close to 1, but not quite since x and y are non-zero.

Given that vector v1, how do I de-rotate future readings (v2,v3 etc..) to compensate for this?? I have read lots of quaternions lately, and can sort of use them... but I can only use them to do a straight rotation about the X-axis let's say. I'm not sure how I can apply them for this example..

Any helps much appreciated!
 
Engineering news on Phys.org
A nitpick first: You do not have gravity components in any of the readings from the accelerometer. Accelerometers (in fact, no device at all) can directly sense the acceleration due to gravity.

Think about it this way: An accelerometer stationary on the surface of the Earth gives a reading of about 9.8 meters/second2 upward. That stationary accelerometer has two forces acting on it: A downward gravitation force and an upward normal force (the force that keeps the accelerometer from sinking into the table). You accelerometer is measuring the normal force but not the gravitational force. Bottom line: Because of misalignments, what you have are normal force components in the X and Y readings from the accelerometer.

That said, take a look at IEEE standard IEEE Std 1293-1998, "IEEE standard specification format guide and test procedure for linear, single-axis, nongyroscopic accelerometers". Link: http://ieeexplore.ieee.org/xpl/standardstoc.jsp?isnumber=16982 .
 
Last edited by a moderator:
D H said:
A nitpick first: You do not have gravity components in any of the readings from the accelerometer. Accelerometers (in fact, no device at all) can directly sense the acceleration due to gravity.

Think about it this way: An accelerometer stationary on the surface of the Earth gives a reading of about 9.8 meters/second2 upward. That stationary accelerometer has two forces acting on it: A downward gravitation force and an upward normal force (the force that keeps the accelerometer from sinking into the table). You accelerometer is measuring the normal force but not the gravitational force. Bottom line: Because of misalignments, what you have are normal force components in the X and Y readings from the accelerometer.

That said, take a look at IEEE standard IEEE Std 1293-1998, "IEEE standard specification format guide and test procedure for linear, single-axis, nongyroscopic accelerometers". Link: http://ieeexplore.ieee.org/xpl/standardstoc.jsp?isnumber=16982 .

Yes, that's true.. I was assuming that when I said compensating for gravity, people would know it's the normal force. But you are correct.. what I need is to remove the normal component of gravity from X and Y.

Unfortunately, I Am not an IEEE member so I cannot view the full article :(
 
Last edited by a moderator:

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 47 ·
2
Replies
47
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K
Replies
13
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
11
Views
24K