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

    ATOM Matrix - IMU values all over the place

    Scheduled Pinned Locked Moved Atom
    3 Posts 2 Posters 5.2k 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.
    • greenleafG Offline
      greenleaf
      last edited by

      I wrote a small program to print out the IMU X, Y, and Z accel values to the serial port.

      It seems the readings can be pretty erratic, jumping from near zero to 0.4 or 0.5 even when the device is completely still.

      How do you all deal with this? I tried taking the average of the last 5 readings which seems to help a little but it's still kind of jumpy.

      Have a look. This is sitting completely flat on the desk:

      X: -0.021 Y: -0.011 Z: -0.987
      X: 0.421 Y: -0.014 Z: -0.986
      X: 0.421 Y: -0.014 Z: -0.987
      X: -0.018 Y: -0.016 Z: -0.986
      X: -0.022 Y: -0.014 Z: -0.986
      X: 0.423 Y: -0.013 Z: -0.987
      X: 0.42 Y: -0.015 Z: -0.987
      X: 0.417 Y: -0.013 Z: -0.988
      X: 0.419 Y: -0.012 Z: -0.984
      X: -0.015 Y: -0.011 Z: -0.984
      X: -0.02 Y: -0.013 Z: -0.987
      X: -0.017 Y: -0.014 Z: -0.987
      X: 0.423 Y: -0.014 Z: -0.988
      X: -0.019 Y: -0.012 Z: -0.986
      X: -0.027 Y: -0.013 Z: -0.988
      X: 0.421 Y: -0.013 Z: -0.99
      X: 0.423 Y: -0.017 Z: -0.988
      X: 0.421 Y: -0.016 Z: -0.988
      X: 0.423 Y: -0.011 Z: -0.987
      X: 0.42 Y: -0.008 Z: -0.987
      X: -0.021 Y: -0.013 Z: -0.986
      X: -0.018 Y: -0.014 Z: -0.99
      X: -0.022 Y: -0.011 Z: -0.99
      X: 0.42 Y: -0.013 Z: -0.984
      X: 0.423 Y: -0.012 Z: -0.988
      X: -0.023 Y: -0.014 Z: -0.984
      X: 0.421 Y: -0.016 Z: -0.985
      X: 0.417 Y: -0.015 Z: -0.985
      
      1 Reply Last reply Reply Quote 0
      • M Offline
        macsbug
        last edited by

        Hello @greenleaf

        An example using a kalman filter.

        https://homemadegarbage.com/reactionwheel03

        https://elchika.com/article/52f804c0-e205-4185-8da4-a32f5e3700ba/

        1 Reply Last reply Reply Quote 3
        • greenleafG Offline
          greenleaf
          last edited by

          Wow, your balancing star is impressive!

          I'm just playing around in UIFlow to see what's possible with this device.

          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