[STM32 - X-NUCLEO-IKS01A1] Speed Calculation with accelerometer datas

22 Nov 2015

Hello !

I am trying to calculate the speed of my board using the accelerometer LSM6DS0. I got the datas from the accelerometer : acc _x, acc_y and acc_z (in mg) but I don't know how to calculate the speed (in m.s). Does someone knows how to do this ? thank you

23 Nov 2015

I assume you have a basic knowledge of physics and thus V = V0 + a*t.

t is your sample period, V0 is your previous velocity, a is your axis acceleration value. You need to understand that the velocity is the vector sum of each of the x,y,z axes. However the actual velocity may differ due to noise on each of the axis inputs. That's where using just acceleration data as the only input to the system will cause a noticeable error in the velocity after a couple of periods.