How to derive 3D body motion from accelerometers

In summary: The minimum number of accelerometers required to derive the pitch and roll axes locations and translational accelerations of a rigid body is 3, assuming that all 3 accelerometers are not in a straight line. By using a 3D vector analysis, the measured data and locations of the accelerometers can be used to solve for the unknowns. This can also be done with 4 accelerometers, but the resulting system is no longer linear and may require additional techniques such as least-squares fitting, numerical integration, and coordinate system transformations. Good luck with your analysis!
  • #1
tduell
43
1
Hello All,
Is is possible to the derive pitch, roll and translational acceleration, and the location of pitch and roll axes from a set of tri-axial accelerometers mounted on a rigid body?
My initial though is that 3 accelerometers might be sufficient, but not sure. I need to do figure out the equations that result from the component accelerations to see if I can solve for the unknowns, but it is while now since I used 3D vectors, so not really sure how best to proceed.
If someone could suggest, or point me to how I could go about solving this it would be appreciated.

Cheers,
Terry
 
Physics news on Phys.org
  • #2
You will want to research inertial navigation systems:
http://en.wikipedia.org/wiki/Inertial_navigation_system

Such systems are used by submarines which cannot use conventional navigation tools (star sights, GPS, etc.) while submerged. They work starting from a known position before the submarine submerges and update the position of the vessel during its voyage by having a time history of the movements of vessel.
 
  • #3
SteamKing, thanks for your reply.
I'm not sure it is going to help me. I may have over simplified the explanation of my needs.
We have an array of accelerometers mounted on a vehicle, in the x-y plane. x being the roll axis, y being the pitch axis.
There are 5 in all, 4 tri-axial and one z only. 2 tri-axial and the Z (1,2,3) are in a line parallel to the a axis. Three tri-axial (3,4,5) are at right angles, parallel to y axis. Accelerometer 3 is common to both lines of accelerometers.
We don't have a gyroscope available.
The installation has been done in the expectation that the required data, described in my initial post, could be derived from the measured data. Indeed it has been suggested that all the required data can be derived from 3 of the array of accelerometers.
I should add that I don't think we can assume the locations of the pitch and roll axes.
My investigations thus far indicate that I can only derive pitch and roll acceleration, probably yaw as well, but I haven't looked at that as yet as it wasn't expected to be significant.
The accelerometers at the known locations on an x-y plane will give me 4 3D acceleration vectors (if all 4 tri-axials are used) plus one z vector from the 5th accelerometer.
What I really need is advice as to whether the unknowns can indeed be derived from this data, and if so, a gentle prod in the direction of the solution method. As I said, I am a bit rusty on 3D vectors, assuming that is the approach needed.
Cheers,
Terry
 
  • #4
The inertial nav reference was just to get you started. I don't know the details of your vehicle or its intended use. Basically, the accelerometers will provide just acceleration data, obviously. Your application might not need gyroscopes, which provide velocity data. The OP suggests that you may not be certain of the inertial characteristics of your vehicle, such as its mass, c.o.m., gyradii. To fill in those blanks, other procedures are required. One wiki article would not be sufficient, but you are the one who must search out the answers to your questions.
 
  • #5
SteamKing, thanks for your attempts to help. Sure the accelerometers just provide acceleration data, but it is a rigid body and we know the locations of those measurements.
My question is: Can that acceleration data and locations be used to derive the rigid body pitch and roll axes locations and the translational accelerations? I have already determined that pitch and roll acceleration can be derived from that data. I don't think that mass, inertia, centre of mass etc should be needed to further analyse the measured data.
Certainly those parameters (mass, inertia etc) determine the motion, but we are measuring it at the locations as described. Unless I'm really confused about all this, it seems to me that the measured data , along with measurement locations, should be sufficient.
Isn't it a 3D vector analysis that is now needed?

Cheers,
Terry
 
  • #6
It is certainly possible. Rigid body has 6 degrees of freedom (3 translation + 3 rotation) so you need a minimum of 6 independent channels. However with 3-axis accelerometers, not all of them are going to be linearly independent, so the minimum is 3.

The acceleration of point [itex]\vec{r}[/itex] is [itex]\vec{a}_r = \vec{a} + \vec{\alpha} \times \vec{r} + \vec{\omega} \times (\vec{\omega} \times \vec{r})[/itex], where [itex]\vec{a}[/itex] is linear acceleration of the origin, [itex]\vec{\alpha}[/itex] is angular acceleration and [itex]\vec{\omega}[/itex] is angular velocity. look up "Rigid Body Kinematics".
A single channel accelerometer pointing in the direction of a unit vector [itex]\vec{d}_i[/itex] measures [itex]a_i = \vec{a}_i \cdot \vec{d}_i[/itex]. Now expand all that in coordinates and solve the resulting linear system with respect to components of [itex]\vec{a}[/itex] and [itex]\vec{\alpha}[/itex] (assuming you know [itex]\vec{\omega}[/itex]).[STRIKE]If you have more than 6 equations use least-squares fit.[/STRIKE] Obviously you'd want your matrix to be nice and well-conditioned and that generally means NOT placing accelerometers in a straight line :)

PS: With 6 channels [itex]\vec{\omega}[/itex] is obtained by integrating [itex]\vec{\alpha}[/itex] with suitable initial conditions. With 9 channels you can find [itex]\vec{a}[/itex], [itex]\vec{\alpha}[/itex] and [itex]\vec{\omega}[/itex] simultaneously (but the system is no longer linear). There are better ways of dealing with it, but things become complicated rather quickly. Not to mention numerical integration techniques, coordinate system transformations (rotation matrices, quaternions, Euler angles), Kalman filters, calibration etc. etc. Good luck :)
 
Last edited:
  • #7
Delta Kilo said:
It is certainly possible. Rigid body has 6 degrees of freedom (3 translation + 3 rotation) so you need a minimum of 6 independent channels. However with 3-axis accelerometers, not all of them are going to be linearly independent, so the minimum is 3.

OK, so we are off to a reasonable start, with 4 x 3 axis.
The acceleration of point [itex]\vec{r}[/itex] is [itex]\vec{a}_r = \vec{a} + \vec{\alpha} \times \vec{r} + \vec{\omega} \times (\vec{\omega} \times \vec{r})[/itex], where [itex]\vec{a}[/itex] is linear acceleration of the origin, [itex]\vec{\alpha}[/itex] is angular acceleration and [itex]\vec{\omega}[/itex] is angular velocity. look up "Rigid Body Kinematics".
A single channel accelerometer pointing in the direction of a unit vector [itex]\vec{d}_i[/itex] measures [itex]a_i = \vec{a}_i \cdot \vec{d}_i[/itex]. Now expand all that in coordinates and solve the resulting linear system with respect to components of [itex]\vec{a}[/itex] and [itex]\vec{\alpha}[/itex] (assuming you know [itex]\vec{\omega}[/itex]).If you have more than 6 equations use least-squares fit.

OK, I'll see if I can work through those relationships.

Obviously you'd want your matrix to be nice and well-conditioned and that generally means NOT placing accelerometers in a straight line :)

Oh dear, a bit too late I'm afraid.
Many thanks for your help, it has given me a good start.

Cheers,
Terry
 
  • #8
Delta Kilo, have just seen your edit. It is becoming a bit complicated.
Can I assume that the vector r is from an origin I define?
Otherwise, I'm not sure how I proceed, as I really only know the accels at positions relative to one another, but at unknown locations relative to 'origin'.
I think I am going to be in trouble attempting to solve for vectors a,alpha, and omega...it's been a bit too long away from such math techniques. I use Octave, which I expect is a suitable toolkit, but I will have to do some revision on just how to put together a solution of what looks like simultaneous vector equations.
Thanks for your help, it is much appreciated.
Cheers,
Terry
 
  • #9
tduell said:
Can I assume that the vector r is from an origin I define?
Yes, certainly. You designate one point to be your origin O. Everything is then relative to this point O: acceleration [itex]\vec{a}[/itex] is the acceleration of point O, [itex]\vec{w}[/itex] is the rotation around axis along [itex]\vec{w}[/itex] and going through O etc. There are very good reason to use C.M. as the origin.

tduell said:
I think I am going to be in trouble attempting to solve for vectors a,alpha, and omega...it's been a bit too long away from such math techniques. I use Octave, which I expect is a suitable toolkit, but I will have to do some revision on just how to put together a solution of what looks like simultaneous vector equations.
You just expand it in coordinates according to the definition of dot- and cross-products and get a normal algebraic system.
Another thing to watch out for is coordinate system transformation: your accelerometers are in fixed positions in local coordinate system. If you work in global coordinate system (which is the easiest option), vectors r and d must be rotated by your current orientation before you use them.
You can work in local coordinate system then vectors r and d are fixed but then your current position and velocity (or rather the position and velocity of the rest of the world relative to you) would have to be rotated when doing the integration. Either way there be [STRIKE]dragons [/STRIKE]rotation matrices/quaternions.
 
  • #10
Delta Kilo, many thanks for your helpful advice on this.
I'm loathe to ask for more help, but do you know of an example of a problem like this with the solution methodology, that you can point to?

Cheers,
Terry
 
  • #11
Hi Terry, glad to be of help. Sorry don't know on any specific example but there are plenty DIY INS projects on the web. Search for "Open Source inertial navigation system" yields lots of links. Even though most of them would use gyros as well as accelerometers they are going to be similar in many respects. As for methodology, do you mean this? http://en.wikipedia.org/wiki/Inertial_navigation_system#Methodology Check out reference [10], from horse's mouth :)
Regards, DK
 
  • #12
Delta Kilo said:
It is certainly possible. Rigid body has 6 degrees of freedom (3 translation + 3 rotation) so you need a minimum of 6 independent channels. However with 3-axis accelerometers, not all of them are going to be linearly independent, so the minimum is 3.

The acceleration of point [itex]\vec{r}[/itex] is [itex]\vec{a}_r = \vec{a} + \vec{\alpha} \times \vec{r} + \vec{\omega} \times (\vec{\omega} \times \vec{r})[/itex], where [itex]\vec{a}[/itex] is linear acceleration of the origin, [itex]\vec{\alpha}[/itex] is angular acceleration and [itex]\vec{\omega}[/itex] is angular velocity. look up "Rigid Body Kinematics".
A single channel accelerometer pointing in the direction of a unit vector [itex]\vec{d}_i[/itex] measures [itex]a_i = \vec{a}_i \cdot \vec{d}_i[/itex]. Now expand all that in coordinates and solve the resulting linear system with respect to components of [itex]\vec{a}[/itex] and [itex]\vec{\alpha}[/itex] (assuming you know [itex]\vec{\omega}[/itex]). Obviously you'd want your matrix to be nice and well-conditioned and that generally means NOT placing accelerometers in a straight line :)

PS: With 6 channels [itex]\vec{\omega}[/itex] is obtained by integrating [itex]\vec{\alpha}[/itex] with suitable initial conditions. With 9 channels you can find [itex]\vec{a}[/itex], [itex]\vec{\alpha}[/itex] and [itex]\vec{\omega}[/itex] simultaneously (but the system is no longer linear). There are better ways of dealing with it, but things become complicated rather quickly. Not to mention numerical integration techniques, coordinate system transformations (rotation matrices, quaternions, Euler angles), Kalman filters, calibration etc. etc. Good luck :)

Sorry for the late response, but other things have occupied me, and I have spent quite a bit of time trying to understand how to solve this.
I can now refine the problem a little.
I have measured x,y,z accelerations at locations as outlined in my earlier post, ie 3 positions in the pitch plane, and 3 in the roll plane. I have an additional measurement location, where the acc'ns have components due to translation, roll and pitch. I need to be able to adjust the measured z at this location, to remove effects of roll.
The measured values from all these accelerometers are arrays, of about 10 secs of data at 2000Hz.
Now I can see how to formulate the equations for the measurements points in one plane (say the pitch plane),
(of the form [itex]\vec{a}_r = \vec{a} + \vec{\alpha} \times \vec{r} + \vec{\omega} \times (\vec{\omega} \times \vec{r})[/itex]) and could iteratively solve that using Octave's fsolve, if [itex] \vec{r} [/itex] was a constant, but it isn't. In the plane it is a function of the pitch angle, which requires integrating the pitch velocity, but as I see it the pitch velocity isn't known until the set of simultaneous equations has been solved.
So, if I understand it all correctly, I really have a set of simultaneous differential equations. What solution method does one use when the elements of the equations are already arrays of data at time intervals?
Sorry if I appear a bit dense on this but it isn't at all clear to me how to attack this.

Cheers,
Terry
 
  • #13
tduell said:
Sorry if I appear a bit dense on this but it isn't at all clear to me how to attack this.

Greatcoats off...in case you were about to reply. I think I now understand it. The angles are just another variable, along with angular velocity, angular acceleration, to be solved in the system of equations.

Cheers,
Terry
 
  • #14
Earlier you mentioned possibly wanting the yaw angle also. This isn't possible with accelerometers, you'd need a compass or better yet a gyro for that. Also in my experience accelerometers aren't reliable for transient fidelity, that is during bumps, vibrations or other quick accelerations they go haywire. I've used them for error correction in a PID loop where gyros handled the actual navigation. The gyro signals were numerically integrated and fed into a direction cosine matrix. I realize you don't have gyros but for yaw angle, you'll need something other than accelerometers.
 
  • #15
I don't think I mentioned yaw. I was looking for pitch and roll.
These accelerometers are specifically for measuring bumps and vibration and other quick accelerations, at 2000Hz.
Not sure why yaw is really any different to pitch and roll.

Thanks for your comment.

Cheers,
Terry
 
  • #16
tduell said:
My investigations thus far indicate that I can only derive pitch and roll acceleration, probably yaw as well, but I haven't looked at that as yet as it wasn't expected to be significant.

I thought this meant you would eventually want to know yaw, sorry for any mistake on my part. The reason you can't use accelerometers for yaw is that once you rotate through the angle the chip's axes still aren't rotated relative to the gravity vector. The pitch and roll axes are orthogonal to the gravity vector (assuming you're on a flat plane) Then any tilt gives a reading on your z axis (or whatever you're calling vertical). Yaw does not change this value because its axis of rotation is parallel with the gravity vector.
 
  • #17
Ah...yes, yaw was mentioned, sorry.
Thanks for the explanation.

Cheers,
Terry
 

1. How do accelerometers work in measuring 3D body motion?

Accelerometers work by measuring changes in acceleration or force in three different axes: x, y, and z. These changes can then be translated into 3D body motion, such as walking, running, or jumping.

2. What are the limitations of using accelerometers to derive 3D body motion?

Some limitations of using accelerometers to derive 3D body motion include the inability to accurately measure rotational movements, as well as variations in accuracy based on the placement of the accelerometer on the body.

3. How do you calibrate accelerometers for accurate 3D body motion measurement?

To calibrate accelerometers, a known reference motion is typically performed and recorded, and then compared to the accelerometer data. This allows for adjustments to be made to ensure accurate measurement of 3D body motion.

4. Can accelerometers be used to track specific movements, such as sports skills?

Yes, accelerometers can be used to track specific movements and skills in sports, such as throwing, kicking, and swinging. However, the accuracy may vary depending on the type of movement and the placement of the accelerometer.

5. What other factors should be considered when using accelerometers to derive 3D body motion?

Some other factors to consider when using accelerometers for 3D body motion measurement include the sampling rate, data processing techniques, and potential interference from external factors such as electromagnetic fields.

Similar threads

  • Mechanics
Replies
3
Views
112
Replies
1
Views
791
Replies
1
Views
1K
Replies
8
Views
1K
Replies
13
Views
2K
Replies
2
Views
1K
Replies
21
Views
2K
  • Mechanics
Replies
18
Views
2K
Replies
22
Views
2K
Back
Top