Using the motion detector examine the rebound distance of different balls to calculate
Set this up with a retort stand so that you are measuring the distance from the ball to the meter as it drops and then rebounds..