# Accelerometer Calculations

1. Nov 17, 2006

### gunnerone

Hi, please don't hesitate to reply to either of my paragraphs. Or ask for clarification. The first paragraph descibes the basic problem, and the second one is more indepth. I'd be happy if I could get just the first one working.

I'm working on a project were a two-axis accelerometer will be mounted to a helmet, and worn by a user. Currently I have the accelerometer mounted with both axes parallel to the earth. The problem I'm working on, is having the user pan their head(moving parallel to the earth), left or right, and calculating the angle. My approach is to calculate the distance in each direction(x and y), using d = d0 + V0*t + 1/2 * a * t^2, and then take the inverse tangent of these two results. Then store the new velocity, using v = v0 + a*t, for use in the next calculation. Does this sound like a good approach, or is there perhaps a better way to do it?

As it currently is, I can calculate the amount the user rolls or tilts their head, since the measured acceleration changes as the axes become more or less perpendicular/parallel to the earth. i.e. When the X-axis is perpendicular to the earth it experiences +-1g of acceleration, when it is parallel it experiences 0g. So these values can be used directly. However this approach doesn't work for panning, since the movement is parallel to the earth. Ideally, I'd like to be able to calculate the amount the user pans their head even when their head is tilted and rolled. Any advice or ideas would be greatly appreciated.

2. Nov 18, 2006

### FredGarvin

Accelerometers don't work like that. Accelerometers are dynamic measurement devices. If you were to move your head slowly, you would not pick up any acceleration. This is due to the piezoelectric nature of the accelerometers.

What you need is something like an iclinometer.

3. Nov 18, 2006

### gunnerone

Thanks for your reply. Could you please explain a little more? If I have a very sensitive accelerometer wouldn't I be able to measure the acceleration even if they pan their head slowly?

Also, the inclinometer doesn't look like it'll work for the panning, since it measures with respect to gravity.

Last edited: Nov 18, 2006
4. Nov 18, 2006

### FredGarvin

Accelerometers are dynamic measurement devices. The piezoelectric elements create a charge when deformed. However, that charge is quickly dissipated due to voltage leakage. For eample, they are good for cyclic vibrations that induce sinusoidal accelerations (a vibrating piece of machinery), but they do not work under a continuous acceleration (like gravity).

Honestly, I think that the accelerations are going to be so small that your measured signal is going to get lost in the usual noise of a system. However, it's easy enough to set up. Give it a go.