Hello all!
I am doing a project in which I am required to predict the trajectory of ball moving in two dimensions under the effect of gravity. With image processing and computer vision techniques I am able to do that. However, I now want to correlate the data obtained from video with the data I can collect from sensors. Now since the video spits out data which is actually a set of predicted centers of the ball, I would want the sensors to throw out data which represent the tracked center of ball. So how should I go about doing that? I did a bit of research. Is MPU 6050 right choice for this task. If so, please explain the path I should follow to do it. If you have got better alternative(I found that MPU 6050 throws out a lot of errors if not configured properly), please share it.
Thanks.
Consumer grade sensors are not yet up to the task that you are hoping to accomplish.
First, it is not currently possible to use accelerometers to estimate velocity and position with reasonable accuracy, as discussed here: http://www.chrobotics.com/library/accel-position-velocity.
Second, for a sensor attached to an object in free flight, you need to know the object's absolute orientation. While that is to some extent possible these days, no really good solution is yet available, as shown by the tests described here: Hardware Sensor Fusion Solutions · kriswiner/MPU6050 Wiki · GitHub. That is a long article, but the upshot is, absolute orientation accuracy of even +/- 10 degrees is very difficult to obtain with inexpensive 9DOF sensors.
Knowing that, refer to the table in the first link for the positional errors expected for even a 5 degree error in the direction of "down" (I'll save you some time: it is about 42 meters error after just 10 seconds, the table is off by a factor of 2).
I can also get the trajectory with the angle with which the ball is thrown and acceleration, both of which can be obtained from MPU 6050. Any thoughts and issues on this ?
Do the experiment, and let us know how well it works!
noob_geek:
I can also get the trajectory with the angle with which the ball is thrown and acceleration, both of which can be obtained from MPU 6050. Any thoughts and issues on this ?
How are you going to compensate for the ball rotating as it flys along its trajectory, and do ALL the calculations?
Tom... 