MPU6050 get distance from acceleration

userHead adrian.vladinski 2024-02-22 05:08:45 496 Views2 Replies

Hello, how do I calculate distance from acceleration? When I move the MPU, I get a positive acceleration, but when I stop the MPU, I get a negative acceleration. The negative acceleration I get from the backlash counters the calculations to get the distance. How do I counteract the backlash?

2024-02-22 10:41:08

This may require integrating over time. Or you may need to integrate over time. Since s = vt + (1/2)at²
where u is the initial velocity, t is the time, and a is the acceleration.

You will also need a timer to keep track of the time.

userHeadPic Yeez_B
2024-02-22 05:15:24


userHeadPic adrian.vladinski