cancel
Showing results for 
Search instead for 
Did you mean: 

Distance measured using LSM6DSO32TR

NIVI
Associate III

Hi,

Could you provide any method/code to convert the acceleration values to distance(in cm)?

we are able to read the acceleration but we need to know the distance covered as well. How to do it?

 

This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Andrew Neil
Super User

You get distance by integrating acceleration over time.

https://community.st.com/t5/mems-sensors/calculating-velocity-using-acceleration-data-read-in-mg-from/m-p/637043/highlight/true#M22577

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.