🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    I2c failure with MPU6050 component

    Arduino
    arduino
    1
    2
    15
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Grandpa-G
      last edited by

      I am using a simple Arduino sketch to get values from the MPU6050 over I2C. The only values I receive are 0. Also, I cannot write to any register. The I2C scanner shows it is connected.

      If I use an Arduino Mega2560, the device works correctly.

      I have also tried to use a M5Stack MPU6886 and it fails as well.

      I am using a M5Stack Basic.

      G 1 Reply Last reply Reply Quote 0
      • G
        Grandpa-G @Grandpa-G
        last edited by

        More information

        If I use M5Unified.h and then a begin of M5.begin(), the data is all zeros. If I take out the begin, then the data is correct. There must be something in the M5Unified that is restarting the Wire or taking over the I2C bus.

        How can I correct this. It is a show stopper. If I can find a solution, then I will have to discard the M5Stack basic and go to a regular ESP32.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post