Relative Postion Calculation using Accelerometer


by I_am_learning
Tags: accelerometer, calculation, postion, relative
I_am_learning
I_am_learning is offline
#1
Apr22-12, 05:44 AM
I_am_learning's Avatar
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?
Phys.Org News Partner Science news on Phys.org
Internet co-creator Cerf debunks 'myth' that US runs it
Astronomical forensics uncover planetary disks in Hubble archive
Solar-powered two-seat Sunseeker airplane has progress report
mrspeedybob
mrspeedybob is offline
#2
Apr22-12, 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/s2). 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.
Hobin
Hobin is offline
#3
Apr22-12, 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.

I_am_learning
I_am_learning is offline
#4
Apr22-12, 11:13 AM
I_am_learning's Avatar
P: 669

Relative Postion Calculation using Accelerometer


Quote Quote by mrspeedybob View Post
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/s2). 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.
Yeah, the rotation thing is what is bothering me too.
Lets suppose the Phone starts flat on the table, with x-acceleration = 0, y-acceleration = 0 and z-acceleration = 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 z-acceleration.
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?
chingkui
chingkui is offline
#5
Apr25-12, 03:01 AM
P: 195
what other sensors does it have? magnetometer? gyro?
ferret_guy
ferret_guy is offline
#6
Aug1-12, 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
Postion-Time Graphs Introductory Physics Homework 1
Energy and postion in QM General Physics 5