using complementary filter on mpu6050

Hi all, I am a newbie and have a problem.
I tried using a complementary filter from this link "i2cdevlib/Arduino/MPU6050 at master · jrowberg/i2cdevlib · GitHub". but i got a message "Invalid library found in C:\Users\Dwi Firmansyah\Documents\Arduino\libraries\i2cdevlib-master: no headers files (.h) on .........".
can anyone help me?

The problem is you installed the library wrong. Unfortunately, the author of the i2cdevlib chose to lump many libraries into the same repository, which makes it a bit more challenging to install those libraries. Arduino libraries must be directly under the libraries folder but what you currently have is a structure like this:

C:\Users\Dwi Firmansyah\Documents\Arduino
|_libraries
|_i2cdevlib-master
|_Arduino
|_MPU6050

The Arduino IDE can't recognize the MPU6050 library in that subfolder.

Here's what you need to do:

  • Delete C:\Users\Dwi Firmansyah\Documents\Arduino\libraries\i2cdevlib-master
  • Download the i2cdevlib repository: https://github.com/jrowberg/i2cdevlib/archive/master.zip
  • Unzip the downloaded file.
  • (In the Arduino IDE) Sketch > Include Library > Add .ZIP Library
  • From the unzipped file, select the folder i2cdevlib-master\Arduino\MPU6050.
  • Click the "Open" button.
  • Wait for the Arduino IDE to tell you the library was installed successfully.

As you can now see, despite the menu item name, "Add .ZIP Library" can be used to install libraries from folders as well as .zip files.

hi buddy, thanks for your help. it works thanks
but i got a new problem, like this :

wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld

i using nodemcu lolin.

Please post your full sketch.

If possible, you should always post code directly in the forum thread as text using code tags:

  • Do an Auto Format (Tools > Auto Format[/b) on your code. This will make it easier for you to spot bugs and make it easier for us to read.[/li]
  • - Edit > Copy for Forum*
  • - In a forum reply here, click on the reply field.*
    - Click the </> button on the forum toolbar. This will add the forum’s code tags markup to your reply.
  • - Press “Ctrl + V”. This will paste the sketch between the code tags.*
  • - Move the cursor outside of the code tags before you add any additional text to your reply.*
  • - Repeat the above process if your sketch has multiple tabs.*
  • [/list]*
  • This will make it easy for anyone to look at it, which will increase the likelihood of you getting help.*
  • If the sketch is longer than the 9000 characters maximum allowed by the forum, then it’s OK to add it as an attachment. After clicking the “Reply” button, you will see an “Attachments and other settings” link.*
    When your code requires a library that’s not included with the Arduino IDE please post a link (using the chain links icon on the forum toolbar to make it clickable) to where you downloaded that library from or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries in the Arduino IDE or Libraries > Library Manager in the Arduino Web Editor) then say so and state the full name of the library.