Code Monkey home page Code Monkey logo

Comments (4)

natanaeljr avatar natanaeljr commented on May 28, 2024

Which esp32 dev board are you using?
Make sure you are connecting the I2C lines according to the GPIO numbers rather than PIN numbers.
If you try the mpu_i2c example does it work?

from esp32-mpu-driver.

esperancaleonardo avatar esperancaleonardo commented on May 28, 2024

I'm using ESP-WROOM-32 in a ESP32 Core Board V2 / ESP32 DevKitC.

I'm using GPIO numbers correctly as I should.

Tested mpu_i2c with no success, same error ocurring... 1sec delay the same error is printed to monitor

from esp32-mpu-driver.

natanaeljr avatar natanaeljr commented on May 28, 2024

The error code 0x107 means I2C reading is timing out. So the esp32 might not be receiving from the MPU6050.

Try the following:

  • change the SDA/SCL to different GPIOs
  • lower the I2C clock speed to 100KHz
  • run an I2C scanner to scan all device addresses found in the I2C bus. See this example from I2Cbus library.

The scanner should show a device with address 0x68 or 0x69. If it does not show then you might have to re-check the wiring.

from esp32-mpu-driver.

esperancaleonardo avatar esperancaleonardo commented on May 28, 2024

All problems solved, nothing wrong with your library!!!

Problems were with my 2 MPU-6050 boards. I've tested 2 other new boards and you examples worked well with them.

Don't know why haven't tested the new boards yet! hahah

Thx by answering me, I'll close the issue by now!!!

from esp32-mpu-driver.

Related Issues (20)

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.