Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Accelerometer to measure distance for Android Application Development

I am just a beginner in the application development industry. I know the accelerometer can be used to return the current acceleration along three axis in meters per second squared (m/s2). But I have come to know that an accelerometer can also be use as speedometer.

I want to know how I can use accelerometer to determine distance traveled by Android device between points of interest. If it is possible, then how can I implement it? I have seen a similar question "how do I measure the distance traveled by an Iphone using accelerometer" How do I measure the distance traveled by an iPhone using the accelerometer?. But I didn't come to a point.

Thank You, Arslan

like image 411
Dr. Arslan Avatar asked Jun 15 '11 03:06

Dr. Arslan


People also ask

Can you use an accelerometer to measure distance?

The sensors that are used to measure distance are accelerometer and GPS. For measuring distance, accelerometer will provide more details or information than GPS, in the other hand, GPS has some restrictions, such as points, signals, data resolution and sampling rate.

What does accelerometer sensor detect in an app?

AccelerometerSensor. This component senses the Android device's accelerometer, which detects shaking and measures acceleration in three dimensions. Acceleration is measured in SI units (m/s 2 ).

What is the use of accelerometer in Android?

In general, the accelerometer is a good sensor to use if you are monitoring device motion. Almost every Android-powered handset and tablet has an accelerometer, and it uses about 10 times less power than the other motion sensors.

What can you measure with an accelerometer?

An accelerometer is a device that measures the vibration, or acceleration of motion of a structure.


1 Answers

You get position by integrating the linear acceleration twice but the error is horrible. It is useless in practice.

Here is an explanation why (Google Tech Talk) at 23:20. I highly recommend this video.

Similar questions:

track small movements of iphone with no GPS
What is the real world accuracy of phone accelerometers when used for positioning?
how to calculate phone's movement in the vertical direction from rest?
iOS: Movement Precision in 3D Space

like image 82
Ali Avatar answered Oct 08 '22 06:10

Ali