Compensating for accelerometer values

In summary, to compensate for the gravity component in an accelerometer reading, you need to de-rotate the 3-D vector (x,y,z) that is read out. The article provides a guide on how to do this.
  • #1
turban2k
2
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
  • #2
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:
  • #3
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:

1. How do accelerometers compensate for temperature variations?

Accelerometers use temperature compensation techniques, such as thermal stabilization or temperature sensing, to adjust for changes in temperature and maintain accuracy in their measurements.

2. Can accelerometers compensate for sensor drift?

Yes, accelerometers have built-in algorithms to detect and correct for sensor drift, which is the gradual change in measurement values over time. This allows for more accurate and reliable data collection.

3. How do accelerometers compensate for changes in orientation?

Accelerometers use mathematical calculations, such as trigonometry, to compensate for changes in orientation and determine the true acceleration values in the desired direction.

4. What techniques are used to compensate for noise in accelerometer data?

Accelerometers use filtering techniques, such as low-pass or Kalman filters, to remove noise from the collected data and improve the accuracy of the measurements.

5. Are there any limitations to accelerometer compensation methods?

While accelerometers have advanced compensation techniques, there are still limitations, such as external interference or non-linear behavior, that can affect the accuracy of the measurements. It is important to carefully consider these factors when using accelerometers for scientific research.

Similar threads

  • General Engineering
Replies
4
Views
2K
  • General Engineering
Replies
9
Views
8K
  • General Engineering
Replies
2
Views
2K
  • General Engineering
Replies
6
Views
3K
  • General Engineering
Replies
1
Views
4K
  • General Engineering
Replies
6
Views
11K
  • Classical Physics
Replies
1
Views
736
  • Classical Physics
Replies
1
Views
785
  • Mechanical Engineering
Replies
3
Views
435
Back
Top