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

    AtomS3R IMU and magnetometer calibration

    Atom
    2
    3
    938
    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
      mgrouch
      last edited by

      How can I calibrate AtomS3R IMU and magnetometer? Can someone provide some methods and examples? Maybe in M5Unified?

      Any example of a compass for it?

      thanks

      P 1 Reply Last reply Reply Quote 0
      • P
        patf @mgrouch
        last edited by

        @mgrouch Hi there, the M5Unified library has a calibration routine that works well. See the IMU example in the library, and make sure to read all of the comments carefully.

        You press the Atom BtnA (screen) and it will calibrate for 10 seconds, enough to do one axis at a time. You are best to calibrate the accelerometer, gyro and magnetometer separately for best results.

        Personally I modified the example so that the calibration starts on press BtnA, and ends on the second press of BtnA. i.e. no 10 second countdown. This way I can take my time and calibrate all 3 axes of each sensor (accl, gyro, or mag) in one continuous movement.

        M 1 Reply Last reply Reply Quote 0
        • M
          mgrouch @patf
          last edited by

          @patf said in AtomS3R IMU and magnetometer calibration:

          @mgrouch Hi there, the M5Unified library has a calibration routine that works well. See the IMU example in the library, and make sure to read all of the comments carefully.

          You press the Atom BtnA (screen) and it will calibrate for 10 seconds, enough to do one axis at a time. You are best to calibrate the accelerometer, gyro and magnetometer separately for best results.

          Personally I modified the example so that the calibration starts on press BtnA, and ends on the second press of BtnA. i.e. no 10 second countdown. This way I can take my time and calibrate all 3 axes of each sensor (accl, gyro, or mag) in one continuous movement.

          I looked at the calibration code in m5unified library. It doesn't look right to me.
          There is no sphere fit being performed. Only offset biases are estimated.
          What about scale biases?

          Thanks

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