Correcting accelerometer mounting angles

  • Context: Graduate 
  • Thread starter Thread starter Hemib
  • Start date Start date
  • Tags Tags
    Accelerometer Angles
Click For Summary

Discussion Overview

The discussion revolves around the challenges of determining the correct orientation angles of an accelerometer that is mounted randomly, particularly in the context of measuring pitch for a vehicle. Participants explore various methods for calibration and the implications of using additional sensors like gyroscopes and GPS.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant notes that the accelerometer should ideally read [0 0 -g] when stationary, but due to random mounting, it returns [a b c] instead.
  • Another suggests rotating the accelerometer 180 degrees to cancel errors, but this is challenged by a participant who states that the accelerometer is fixed and cannot be rotated.
  • There is a proposal to use GPS for initial calibration, although the feasibility of this approach is questioned.
  • Some participants discuss the possibility of using the accelerometer output to calculate the initial angle and then adjusting future readings accordingly, but concerns are raised about the initial angle not being zero.
  • One participant mentions that for vehicles, starting on a level surface could provide a calibration reference.
  • There is uncertainty about whether gyroscopes are affected by their mounting position, with a participant seeking clarification on this point.
  • A suggestion is made to record the initial 'down' vector and use it to calculate angles based on subsequent readings, but concerns about steep inclines are raised.
  • Another participant expresses confusion about differentiating between acceleration and pitch changes, emphasizing that the accelerometer cannot distinguish between the two forces when the vehicle is accelerating.
  • There is a discussion about integrating other vehicle sensors, such as the vehicle speed sensor, to assist with calibration, but this does not address the mounting issue directly.
  • One participant questions the reliability of a MEMS gyro in providing accurate angles for calibration, indicating a need for further exploration of suitable sensors.

Areas of Agreement / Disagreement

Participants express a range of views on calibration methods and the role of additional sensors, indicating that multiple competing approaches are being considered. There is no consensus on a definitive solution to the mounting problem.

Contextual Notes

Participants acknowledge limitations in their approaches, including the dependence on initial conditions, the potential for measurement errors due to vehicle acceleration, and the challenges of aligning sensor axes correctly.

Hemib
Messages
14
Reaction score
0
Hi all!

I'm working on a system that uses an accelerometer to measure pitch. I know how I can calculate the pitch angle from the accelerometer readings, but I've another problem.

At the start I never know how the accelerometer is mounted. So normally on at the start the accelerometer should give me [Ax Ay Ax] = [0 0 -g]. But this is not the case, because my accelerometer is mounted randomly at the start. So it returns instead [Ax Ay Az] = [a b c]. How can i know calculate the right angles of orientation when moving?

I've also have access to gyroscope readings (also randomly mounted, but always aligned with the accelerometer). Maybe a solution is to find the orientation angles first with the gyro (I think that for a gyro the mounting is not important, correct me if I'm wrong!) and then correct the accelerometer.

So I need something like this:
[ \theta \Psi \Phi] = T [a b c]

- theta, psi and phi are the real orientation angles
- T is the transformation matrix
- a b and c are the wrong accelerometer readings

Thx!
 
Physics news on Phys.org
Rotate the accelerometer 180 degrees and take a second reading. The errors will cancel.
 
The accelerometer is fixed mounted, but in a random position. It's not possible to turn is 180°

There has to be some way to calibrate this.. Maybe with a reference to a GPS signal?
 
Why can't you use the accelerometer output to calculate the initial angle, then subtract it from all later calculations?
 
How do you do this? Problem is that it's possible that in the initial position the angle I want to calculate is not 0°.
 
What's the application? If it's aircraft, most aprons are flat enough to get an initial calibration.
 
It's for calculating pitch angle of a vehicle
 
Well you'll need something to get you a calibration, either starting on a level surface or measuring the initial angle by another means and comparing it to the angle the accelerometers measure.
 
Hmm.. Ye, was thinking about using GPS for this.

Btw, is a gyro also affected by his mounting position?

Thx for replies!
 
  • #10
I think you can just record the initial (level) value for the 'down' vector, then just use the dot product of that vector with later down vectors to get the cosine of the angle of the vehicle. For a car you can assume that all of the angle is front-to-back tilt.
 
  • #11
Ye, then you have the angle with respect to the initial position, right? But what if the car starts on a steep hill?
 
  • #12
Im sorry, but I am a little confused in what you are trying to do, you are using an accelerometer to measure pitch, by referencing it to gravity, so if the vehicle is not moving the accelerometer will read either zero (if horizontal to g) or 1g if vertical to gravity.

But if the car is accellerating and is pitched, there is (I think) no way to differentiate between the two forces.

In other words the sensor will not know if you are accellerating or changing your pitch.

The only time, I can see that system giving an accurate reading of pitch is when the vehicle is not accellerating either standing still or traveling at a constant speed.

What information is provided by your gyro, if it provides precession information or some other way of seperating (and then subtracting) the acceleration and pitch data.

Im also (only guessing) that such a system would intruduce measuring errors I would expect a gravity based system, with both pitch and accelleration to give different results depending on if you are going up hill or downhill.

Im thing something like mounting the accellerometer on a gymbal, but I stall have trouble see how the system would be able to differentiate between accelleration and tilt, without fixing one of the values seperatly..
 
  • #13
Its indeed impossible to detect if the change of pitch is due to vehicle acceleration or gravity. But that's not the problem. The problem is that accelerometer axes or not aligned with the 'measured' axes. So how can I get the right pitch angle from a wrong mounted accelerometer.
 
  • #14
What other vehicle sensors can you tie into? If you can access the vehicle speed sensor (VSS) you can do a direct calculation of the acceleration rate and calibrate from that. Maybe.
 
Last edited:
  • #15
Ye, I have access to those sensors. Thx

But that doesn't solve the mounting problem :frown:
 
  • #16
Im also a bit confused with the gyro. Is a MEMS gyro also dependent of the mounting position? because otherwise the gyro would give me the right angels, so i can calibrate the accelerometer

any idea what sensors would do the job? would this one be good? www.sparkfun.com/commerce/product_info.php?products_id=9268
 

Similar threads

  • · Replies 25 ·
Replies
25
Views
9K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
8
Views
2K