Arduion code for MPU6050

Guys who can provied me with the arduino code of the (MPU-6050 DMP Data fusion comparaison With the Complementary filter Data) I have attached a picture of the visualisation via Processing to understand what I 'm talking about.
(I have the Processing code I need just the arduino code)

I'll appreciate your help

picture :

Hi,
Have you googled arduino MPU6050 ?

Have you got the library for it?

If you have the library you will also have example code?

Tom.. :slight_smile:

Hi Tom, yes I have all the required librairies MPU6050 librairie and I2C libraraie. I just need the code of this specific project (MPU-6050 DMP Data fusion comparison With the Complementary filter Data), If you have found it for me I'll really appreciate that.

Who can enter to this site https://geekmomprojects.com/mpu-6050-redux-dmp-data-fusion-vs-complementary-filter/ here where this project is presented with the code but the problem is that I could'nt access to this site they wrote "Not secure'' So who can have access to it, because its containes the code I need.

zohrahamadene:
Who can enter to this site MPU-6050 Redux: DMP Data Fusion vs. Complementary Filter – Geek Mom Projects here where this project is presented with the code but the problem is that I could'nt access to this site they wrote "Not secure'' So who can have access to it, because its containes the code I need.

DON'T it is an unsecured site.. BAD MEDICINE
Tom... :slight_smile:

So any one who has another ressources !

Hi,
Have you tried this link?

http://forum.arduino.cc/index.php?topic=58048.0

Tom.. :slight_smile:

yes I saw this post he is not using the same board of IMU that I 'am using mine is (MPU6050 invensense) however he used a Sparkfun chip and I'm not looking for Kalman Filter only Complementary filter

There is lots of code for a complementary filter on line. It is very short, just a few lines.

One example.

// a=tau / (tau + loop time)
// newAngle = angle measured with atan2 using the accelerometer
// newRate = angle measured using the gyro
// looptime = loop time in millis()

float tau=0.075;
float a=0.0;

float Complementary(float newAngle, float newRate,int looptime) {
float dtC = float(looptime)/1000.0;
a=tau/(tau+dtC);
x_angleC= a* (x_angleC + newRate * dtC) + (1-a) * (newAngle);
return x_angleC;
}

Is not this what I'm searching about I need the code of the comparison between the DMP Data (mpu6050 interne processor) and the complementary filter Data !

Describe how you want to compare the data.

I saw the website you are referring to, unfortunately I didn't save the code either.
Unless that website is restored you may be out of luck.

All I can find now is this youtube vid.
MPU-6050 Orientation from DMP vs. Complementary Filter

The DMP code is available as an example sketch included with Jeff Rowberg's mpu6050 library.
And there are many examples of complementary filter sketches on the web.

What is so special about that particular code?