Electrical – Speed calculation using Accelerometer

accelerometerdevelopmentspeedstm32stm32f4

I am using ST manufacture Accelerometer(LIS2DE12) and i making a small hobbyist project for me. For this I am using ST-Microcontroller and developing the C code i am using KEIL V5 IDE. Configured the Accelerometer with normal modes, having the Data rate frequency of 200Hz and +-2g as the measurement range. (If some one needs to get the full details or configuration then let me know i will share, to solve these issue)
For calculating the speed i am using the velocity formula v = u + at. After developing this equation code i am getting wrong and continuously increasing velocity without moving the accelerometer. I don't know why this issue is for.

Waiting for the positive replies ….

Thanks
Sachin

Best Answer

You really can't calculate speed from accelerometers, in practice.

The accelerometer is actually just a gravity-tilt sensor when used on earth.

Any error is a tilt error.

Now imagine you have an absolutely flat, horizontal formica table with a ball bearing sitting on it. Your error is just like putting a couple of coins under the legs at one end, and tilting it ever so slightly.

After a couple of seconds the ball bearing is shooting off the edge of the table at speed.

This is exactly what is happening to you.

Related Topic