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

    M5StickC - MPU-6886 Data Ready Interrupt & Read Process

    M5 Stick/StickC
    1
    1
    1.4k
    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.
    • J
      jacobfw
      last edited by

      I'm looking to use the data ready interrupt on the MPU-6886 to know when to get data from the sensor. I've been trying to piece it together from the documentation and other sites, and I think I have the process worked out, and am just hoping someone can verify it for me.

      Step 1
      Setup the interrupt handler on GPIO35 to trigger on change

      Step 2
      Because there are multiple devices which can trigger an interrupt on GPIO35, we need to read the INT_STATUS register on the MPU-6886 to verify there is data ready, which tells us it was the MPU that triggered the interrupt.

      Step 3
      We read the accel and gyro data from the MPU.

      Obviously steps 2 & 3 happen outside of the interrupt function.

      There is a potential Step 0 where we might have to configure the MPU to on how it triggers the interrupt pin, but going by their documentation, it looks like as long as the interrupt handler is triggered on change, and the INT_STATUS register gets cleared (which happens when we read it) we should be fine.

      Overall, does this sound correct?

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