On going Issue

Asked by Suleman Mehmood

Hello Fabio,

I hope you are doing fine.
As you have answered my previous question. Thanks for the code. I want to ask you that the reading of accelerometer which i am getting, what g's are the values... 1g or 2g Can you please explain in detail please.

Also I want to ask you if you have code available to get displacement from accelerometer I believe i have to integrate accelerometer readings twice but i really do not know how to do with the coding. Can you please solve this problem i would really appreciate this.

Thanks

Suleman

Question information

Language:
English Edit question
Status:
Answered
For:
FreeIMU Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Fabio Varesano (fabio-varesano) said :
#1

Regarding accelerometer g, you already have all you need from my answers at https://answers.launchpad.net/freeimu/+question/197389 ... if you divide the raw accelerometer reading by 256 you get a value in g, meaning that an output of 1g = 9.81 m/s^2.

Unfortunately, I don't have any code for displacement to share at the moment. The idea is to gravity compensate the accelerometer readings (see http://www.varesano.net/blog/fabio/simple-gravity-compensation-9-dom-imus ), then double numerically integrate the accelerometers reading into displacements.

Can you help with this problem?

Provide an answer of your own, or ask Suleman Mehmood for more information if necessary.

To post a message you must log in.