Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Indoor Positioning System based on Gyroscope and Accelerometer

I am developing an Android App to track indoor position. My phone is an Google Nexus S using two sensors, the first being an Accelerometer and the second being a Gyroscope.

My idea is that from a starting reference point (a known GPS position), using the 2 sensors (accelerometer for motion and Gyro for directions) track the phone when moving. And display on a map when the user is going.

But the problem is that i have no idea how to combine both of these sensors to give me an actual position?

I have read some article on internet that talk about "kalman filter" and after some more research i found out that that filter is very very complex /too much for me) especially to code it in java for Android (cpu killer)

Does someone has some experience that he can share with me about indoor positioning system using Gyro and accelerometer?

like image 410
Alexis Avatar asked Sep 21 '11 12:09

Alexis


People also ask

Can you use an accelerometer to determine position?

However, if you want position and orientation, then you can determine orientation from the accelerometer data (if you have all 3 axes) and compare or update it with gyroscopes to compensate for accelerometer drift.

What is the use of accelerometer and gyroscope?

Accelerometers measure linear acceleration (specified in mV/g) along one or several axis. A gyroscope measures angular velocity (specified in mV/deg/s).

Which is better gyroscope or accelerometer?

The main difference between the two devices is simple: one can sense rotation, whereas the other cannot. In a way, the accelerometer can gauge the orientation of a stationary item with relation to Earth's surface.

Can we use accelerometer as gyroscope?

Yes they both can be used to together describe the motion of a device, but they can also be used to correct each other. For example, I read and experimented that the drift in the gyroscope can be corrected by using the accelerometer even though they don't essentially measure the same thing.


2 Answers

Gyros and accelerometers are not enough.

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

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

As for indoor positioning, I have found these useful:

  • RSSI-Based Indoor Localization and Tracking Using Sigma-Point Kalman Smoothers
  • Pedestrian Tracking with Shoe-Mounted Inertial Sensors
  • Enhancing the Performance of Pedometers Using a Single Accelerometer

I have no idea how these methods would perform in real-life applications or how to turn them into a nice Android app.

A similar question is Calculating distance within a building.

like image 132
Ali Avatar answered Oct 06 '22 06:10

Ali


I think this is a great post answering your question. This kalman filter combine data from accelerometers and gyros. Hope it helps.

like image 37
Allen Jee Avatar answered Oct 06 '22 08:10

Allen Jee