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

You are not going to find a "canned" solution to your project on the web.

You are making a custom mechanism. Careful thought and good engineering combined with experimentation will be required.