Changing from an LSM9DS0 to a MPU6050 in code

Hi guys!

I posted here before and got a great deal of help. I'm back!

My project is a glove fitted with a couple sensors so that it can control a computer cursor through hand movement.

I found an instructable for a 'head mouse' which is pretty much what I'm doing, but instead my project is a 'hand mouse.' I tried coding the MPU6050 (the sensor I have) myself, but it is too advanced for me. The intructable has code that uses an LSM9DS0 to act as a gyro and an accelerometer to control a mouse. There is a problem here: I don't have the LSM9DS0

Here is the instructable:

What I want to do is to convert the sensor used in the code from an LSM9DS0 to an MPU6050, but I don't know how to do so. I have attached the code from the instructable to this email. For the libraries, you'll have to go to the instructable. For the MPU, I'm using Jeff Rowberg's libraries (just do a quick google search :slight_smile: ).

Help is much appreciated.

Thank you!

headMouse2.ino (8.93 KB)