Relative Postion Calculation using Accelerometer

AI Thread Summary
The concept of developing a mobile application that detects the movement of a phone from one room to another relies on monitoring acceleration across three axes using the phone's accelerometer. By integrating the acceleration data over time, it is theoretically possible to calculate displacement. However, significant challenges arise due to the need to account for the force of gravity, which complicates the acceleration readings. To accurately determine the phone's orientation and the gravity vector, additional sensors such as gyroscopes and magnetometers may be necessary, as they can help distinguish between rotation and translation. Despite the theoretical feasibility, practical limitations exist, including the inherent inaccuracies of accelerometers, which can lead to cumulative errors in displacement calculations, especially during complex movements. Thus, while the idea is promising, achieving reliable results would require overcoming these technical hurdles.
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
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top