Maybe I should start by telling you what I am doing so you can get a perspective of my problem and maybe give me a helping hand.
I have a sensor called Triple Axis Accelerometer & Gyro Breakout - MPU-6050 , and Ive managed to get it working. I can get the information I want from it. And to get the information I want from it Im using the interrupt function. So the interrupt part is a big factor of the problem I will tell you about.
So Ive tried to expand the code further, by adding servos. What Im trying to do is to control the servos depending on the values the sensor is generating. It works out, for a couple of seconds.
The problem is now that, after these couple of seconds the values from the sensor gets screwd up. Getting values that I shouldnt get.
Conclusions: The servo and the sensor are overflowing the fifobuffer.
Help appreciated, cheers!
Edit: Link for the code im using https://github.com/jrowberg/i2cdevlib/blob/master/Arduino/MPU6050/Examples/MPU6050_DMP6/MPU6050_DMP6.ino