# Measuring the speed of an object moving fast through air [closed]

I am new to arduino and am confused about how I would go about doing this: I want to attach a device to a small ball, that will move through the air at speed. The purpose of this device would be to determine the speed of this object as it moves through the air. My ball will always move in the same path because it will be shot out of a tennis ball shooter. My initial intuition would be to use an accelerometer to determine the acceleration at quarter second intervals and then multiply those values by a quarter of a second to obtain the change in speed and then add it to the sum of all the previous change in speed values (starting at 0).

Would this work? Is my reasoning correct? Are there any better solutions?

Thank You!

• some part of the fly path will be without measurable acceleration and deceleration. Mythbusters used a high speed camera – Juraj Jun 3 '18 at 10:16
• How so? What circumstances would lead to that? – pranchan Jun 3 '18 at 10:19
• When you get to max speed it will flatten out? What you are proposing is constant integration and is a best-guess scenario. Better is to get the time between two known positions and work it out from there. – Majenko Jun 3 '18 at 10:39
• But at max speed, I just need to add a 0 change in speed to my speed counter, and that would by default be the max speed right? – pranchan Jun 3 '18 at 10:44
• The problem is I don't have any two known positions. – pranchan Jun 3 '18 at 10:46

``````velocity(i) = velocity(i-1) + acceleration (i)