MPU6050 get distance from acceleration
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 18: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.
Yeez_B