trying to hack an xbox controler with a mpu6050 for headtracking need help!!

im new to Arduino and I guess I have bitten off more than I can chow for my first project... the wireing up is easy its manly the programing I am strugaling with... I thought it would be simple but its not... ive looked everywhere for people who may have done the same thing as I'm am trying to do but have found nothing and am only frying my brain... which is why I have asked for help... please can some one help me out are at lest point me in the right direction...

danoson: im new to Arduino and I guess I have bitten off more than I can chow for my first project... the wireing up is easy its manly the programing I am strugaling with... I thought it would be simple but its not... ive looked everywhere for people who may have done the same thing as I'm am trying to do but have found nothing and am only frying my brain... which is why I have asked for help... please can some one help me out are at lest point me in the right direction...

Umm, where's your code?

You should check out the usb host shield (and its library). The shield and it's library will solve a lot of your issues with the XBox controller. The MPU also has a library that you can use.

Power_Broker: Umm, where's your code?

You should check out the usb host shield (and its library). The shield and it's library will solve a lot of your issues with the XBox controller. The MPU also has a library that you can use.

Thank you so much for your reply.... As ive said im nearly new to arduino and have never done anything with this software before... i went and looked up some of the librarys for the the mpu6050 and have only just found a script that i could get values from... so I guess im kind of half way there...

In my project iv pulled my controler apart and have made a new case for it and have relocated most of the buttons... the mpu6050 i am using is to replace the right hand analog stick which is normally the joystick that controls the head movment of the character my plan is try translate the gyroscope readings from the mpu6050 and out put them through the arduino through to the sense wires on the control on the x and y axis.... taking the voltage high or low tricking the controler as if it still had an analog stick still attached..... so im just needing help in figuring out how to take the code that i have how and hopefully fill in abit more code to send an output signal to the controler....

Its will be the head traking for a vr headset im making...

Thanks again hopefully you and make sence of what i am trying to say :) and hopefully with your help i can make sence of it all to :)