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

    Reading data from MPU with M5Stick V on MaixPy

    Scheduled Pinned Locked Moved M5Stick V
    3 Posts 2 Posters 6.7k 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.
    • A Offline
      Alisson Brito
      last edited by

      Hi guys,

      Do you have some example using MPU on a M5Stick V with MaixPY? The examples I found return error when trying to write memory with command: "write_i2c(MPU6886_PWR_MGMT_1, 0x00)". The error message is:
      File "<stdin>", line 44, in <module>
      File "<stdin>", line 41, in write_i2c
      OSError: [Errno 5] EIO

      1 Reply Last reply Reply Quote 0
      • m5stackM Online
        m5stack
        last edited by

        you could find the MPU6886 example in this page:

        https://docs.m5stack.com/#/en/related_documents/M5StickV-Maixpy

        1 Reply Last reply Reply Quote 0
        • A Offline
          Alisson Brito
          last edited by

          When I try to run the code I have the following message:

          Traceback (most recent call last):
          File "<stdin>", line 59, in <module>
          File "<stdin>", line 32, in MPU6866_init
          File "<stdin>", line 28, in write_i2c
          OSError: [Errno 5] EIO

          Do you know what it could be?

          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