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

    MPU6866 - i2c access

    M5 Stick/StickC
    2
    3
    3.9k
    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.
    • M
      m5stickuser
      last edited by

      Hi,
      I'm trying to access the MPU6866 - registers for temperature and other information from the chip. I'm reading only 0.
      What is the default setting for the MPU6866 chip access. Per the invensys datasheet the CS default is SPI mode.
      But I couldn't find the CS in the m5stickc schematic for MPU6866.

      Can you please help to advise on this .

      1 Reply Last reply Reply Quote 0
      • M
        m5stickuser
        last edited by

        I'm trying to access via. c library without using arduino

        1 Reply Last reply Reply Quote 0
        • lukasmaximusL
          lukasmaximus
          last edited by

          This is something I also find quite bizarre, and is an issue with the new M5Atom also.
          the address should be 0x68 but on using the i2c scan program on m5atom which also has an mpu6886 no addresses are found. then I found this in the arduino header file which puzzles me.

          void setup()
          {
              M5.begin(true, false, true);
          
              if (M5.IMU.Init() != 0)
                  IMU6886Flag = false;
              else
                  IMU6886Flag = true;
          }
          

          why should it's address be zero. It seems like this code works in arduino in the case of the M5Atom but I cannot find a workaround for micropython.

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