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

    MPU6866 - i2c access

    Scheduled Pinned Locked Moved M5 Stick/StickC
    3 Posts 2 Posters 4.9k Views 1 Watching
    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 Offline
      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 Offline
        m5stickuser
        last edited by

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

        1 Reply Last reply Reply Quote 0
        • lukasmaximusL Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post