Relative Postion Calculation using Accelerometerby I_am_learning Tags: accelerometer, calculation, postion, relative 

#1
Apr2212, 05:44 AM

P: 669

I am starting to learn Mobile Phone Application Development.
Suddenly this idea clicked in. The app starts with the Phone in rest on your living room table. Now, the phone is picked up from the living room and transported to the dining room. Could the app be able to tell this? Here is how I think it. If I constantly monitor the acceleration in all three axis, I could be able to tell the instanteneus velocity about those axixes. Then time integral should provide me the displacement? Is there flaw somewhere? Can the mobile phone accelerometer be fast and accurate enough? 



#2
Apr2212, 10:19 AM

P: 689

The acceleration vector described by the phones accelerometers will be the sum of 2 component vectors, the actual acceleration of the phone, and the force of gravity. In order to make your idea work you need a way to figure out the orientation of the phone at every instant so that you know the direction of the gravity vector (you already know the amplitude is 9.8 m/s^{2}). Once you know the gravity component you can subtract it from the vector measured by the phone to obtain the acceleration. Then you could, in principal, integrate over time to keep track of relative displacement.
The tricky part is finding the direction of the gravity vector. I can think of no way to do it. someone more clever then I might have an idea though. 



#3
Apr2212, 10:20 AM

P: 194

Theoretically, it's very possible.
Practically, there's a problem. Accelerometers aren't perfect, which means that the larger the displacement (especially when the discplacement occurs in all directions in the three dimensions), the larger the error. Using only an accelerometer, you have no way of knowing how large this error is. 



#4
Apr2212, 11:13 AM

P: 669

Relative Postion Calculation using AccelerometerLets suppose the Phone starts flat on the table, with xacceleration = 0, yacceleration = 0 and zacceleration = 9.8m/s. Now, if our kind volunteer would always transport the phone, with its plane parallel to the ground (like in the initial condition), then we could always subtract 9.8m/s from zacceleration. But what if he rotates the phone? What acceleration is felt during the rotation? Can I distinguish rotation from translation?, and if yes, can I find the new orientation, and thus be able to correctly subtract the gravity? 



#5
Apr2512, 03:01 AM

P: 195

what other sensors does it have? magnetometer? gyro?




#6
Aug112, 01:25 PM

P: 15

Many phones have gyroscope sensors and some have magnetic compasses but those have decreased accuracy indoors



Register to reply 
Related Discussions  
Propogating Relative Error through an Energy Calculation  Set Theory, Logic, Probability, Statistics  3  
Propogating Relative Error through an Energy Calculation  Mechanical Engineering  0  
PostionTime Graphs  Introductory Physics Homework  1  
Energy and postion in QM  General Physics  5 