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
 
This week, I saw a documentary done by the French called Les sacrifiés de l'IA, which was presented by a Canadian show Enquête. If you understand French I recommend it. Very eye-opening. I found a similar documentary in English called The Human Cost of AI: Data workers in the Global South. There is also an interview with Milagros Miceli (appearing in both documentaries) on Youtube: I also found a powerpoint presentation by the economist Uma Rani (appearing in the French documentary), AI...
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...
Back
Top