Giter VIP home page Giter VIP logo

Comments (5)

barafael avatar barafael commented on August 30, 2024

Thanks for spotting that! I will remove the line. Awesome!

from rapid.

Koepel avatar Koepel commented on August 30, 2024

Thanks. That was fast.

You use the I2Cdev code, which is using the Wire library in a wrong way ( jrowberg/i2cdevlib#265 ). That library is no longer maintained and the issues are piling up. The library is also a little outdated. Your copy of "init_mpu6050" is therefor also a little outdated. The FastWire option is not really needed and setting the TWBR for the speed is no longer needed, since there is a Wire.setClock() function now.

Changing the I2Cdev.cpp is risky. There is not much you or me can do about the library at Github. Keep in mind that the library is slower than needed, with extra unnecessary bus activity that slows it down. With the current version of the AVR Wire library the I2Cdev library works (despite the wrong use), so for now it is okay.

from rapid.

barafael avatar barafael commented on August 30, 2024

I guess it would be possible to use the i2c_t3 library in I2Cdev, however as you said it could be a lot of work.

I have sufficient power on my microcontroller to be able to do my own sensor fusion, so this library by Kris Winer is worth looking at for me.
In the long run, I want to use a different sensor anyway, as InvenSense has presented really good new options as recent as CES.

Thank you for pointing out the issues!

from rapid.

Koepel avatar Koepel commented on August 30, 2024

You might consider to upgrade to the MPU-9250 and try the Kris Winer AHRS fusion. Sometimes a MPU-6050 module is shipped with a smaller capacitor which causes extra noise. The MPU-9250 doesn't have that capacitor.

from rapid.

barafael avatar barafael commented on August 30, 2024

Ok, that sounds like it will improve the IMU quite a bit. I am wondering about the tradeoffs of using on-chip sensor fusion vs. doing it on the main board. I guess I will try both!

BTW, great job on helping all those other people use the Wire library correctly.

from rapid.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.