measure velocity

You can find the velocity by integration.

Only if you know the initial velocity, and can cancel the measured acceleration due to gravity.

The latter is essentially impossible with consumer grade accelerometers/IMUs, as anyone who has tried quickly learns.