Velocity and Acceleration from Accelerometer values
I am trying to compute the velocity and acceleration from the accelerometer. So far I have been unsuccessful in getting the desired results. I have tried filtering the raw data using Butterworth filter and then double integrating the magnitude of acceleration to get the magnitudes of velocity and displacement respectively.
I also tried computing using the basic equations of v=u+at and v^2-u^2=2aS. But the results seem nowhere close to what it should be.
What should be the best approach towards calculating the velocity and displacement?
Also, at rest the magnitude of the acceleration of the sensor is in the range of 0.3-0.4 m/s^2. Is this noise consistent with the sensor? and what is the best way to nullify it as it keeps on varying through the simulation?
I appreciate your time and help over this.