Relative Postion Calculation using Accelerometer

Click For Summary

Discussion Overview

The discussion revolves around the feasibility of using a mobile phone's accelerometer to calculate relative position when the phone is moved from one location to another. Participants explore the theoretical and practical challenges of this approach, including the need for accurate orientation detection and the limitations of accelerometer technology.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant suggests that by monitoring acceleration in all three axes, it may be possible to determine instantaneous velocity and subsequently displacement through time integration.
  • Another participant points out that the acceleration vector includes both the actual acceleration of the phone and the force of gravity, emphasizing the need to determine the phone's orientation to accurately subtract the gravity component.
  • Concerns are raised about the practical limitations of accelerometers, noting that errors in displacement calculations increase with larger movements and that there is no way to quantify this error using only an accelerometer.
  • A participant questions how to distinguish between rotation and translation of the phone, and whether it is possible to find the new orientation to correctly account for gravity during such movements.
  • Some participants inquire about the availability of additional sensors, such as magnetometers and gyroscopes, that could assist in improving accuracy.
  • It is noted that while many phones have gyroscope sensors, their accuracy may be compromised in indoor environments.

Areas of Agreement / Disagreement

Participants express a mix of theoretical optimism and practical skepticism regarding the use of accelerometers for relative position calculation. There is no consensus on how to effectively address the challenges posed by orientation detection and error accumulation.

Contextual Notes

Limitations include the dependence on accurate orientation detection to separate gravitational effects from actual motion, the inherent inaccuracies of accelerometers, and the potential impact of environmental factors on sensor performance.

Who May Find This Useful

This discussion may be of interest to those involved in mobile application development, sensor technology, and anyone exploring motion tracking and position calculation methods.

I_am_learning
Messages
681
Reaction score
16
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?
 
Computer science news on Phys.org
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.
 
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.
 
mrspeedybob said:
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?
 
what other sensors does it have? magnetometer? gyro?
 
Many phones have gyroscope sensors and some have magnetic compasses but those have decreased accuracy indoors
 

Similar threads

  • · Replies 25 ·
Replies
25
Views
60K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 36 ·
2
Replies
36
Views
7K
  • · Replies 23 ·
Replies
23
Views
6K
  • · Replies 152 ·
6
Replies
152
Views
11K
Replies
90
Views
12K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 29 ·
Replies
29
Views
3K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 17 ·
Replies
17
Views
4K