MPU6050 motion tracking? [on Visuino]

Try wandeimer's code.

Be sure to come back and tell us if it does what you want.