I'm playing with an idea of putting Arduino microcontroller and IMU sensor inside of a ball in order to measure the trajectory and speed of the ball and also determine when it's not in motion.
Any ideas on how to do that? So far I've gotten raw values - 6 DOF (X, Y, Z from the accelerometer and X, Y, Z from the gyroscope) but they are quite noisy and trying to make sense of them. Also one of the other challenge is getting location in 3D space as the data is relative to the Arduino but it has no understanding of where it is in real world.
Some things in my initial research came up are using Kalman filter to clean up data, similar question/answer posted here: https://stackoverflow.com/questions/42176603/getting-a-trajectory-from-accelerometer-and-gyroscope-imu and Transform linear acceleration from frame of reference of IMU to vehicle but still not clear to me yet.