Distance Measuring using Accelerometer and Gyroscope Sensors

Distance measurement is necessary in various areas and applications. This project is an alternative to GPS and is able to measure the distance traveled by a person inside a building. An algorithm was implemented for the purpose of distance measuring. The measuring is done by integrating twice the acceleration, but the results are not satisfactory because the errors are accumulating much faster than expected. The second method implemented was an algorithm that measures the distance traveled by counting the number of steps. The step distance determination was made by an algorithm that takes the angle between legs made by the accelerometer and gyroscope. To eliminate errors a complementary filter was used. The advantages in using this method are low cost and portability sensor circuit.