Using an Arduino in series with a 3-axis acceleromter and 3-axis gyroscope.

Okay thank you very much but did you mean MPU 9150 instead of 9050