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

    SH200I test strange results

    M5 Stick/StickC
    3
    8
    11.2k
    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.
    • V
      vvs551
      last edited by vvs551

      Why there are always gyro results the same in any static position of m5stick?
      0_1554965934322_6e84ef8f-ef4d-4853-95e9-625a5ae36656-image.png

      S 1 Reply Last reply Reply Quote 0
      • S
        salty_good @vvs551
        last edited by

        @vvs551 Hi, thank you for your question.

        It is normal.
        The gyro sensor detects angular velocity. so if M5StickC is not rotating, gyro value also not change.

        V 1 Reply Last reply Reply Quote 0
        • V
          vvs551 @salty_good
          last edited by

          @salty_good why such values? What does it mean?

          S 1 Reply Last reply Reply Quote 0
          • S
            salty_good @vvs551
            last edited by

            @vvs551 sorry, I didn't understand your mean.

            You mean M5StickC need to be (x, y, z) = (0, 0, 0) in any static position?
            Because it's no calibration in the test code now...

            V 1 Reply Last reply Reply Quote 0
            • V
              vvs551 @salty_good
              last edited by vvs551

              @salty_good Thank you! I understand
              I have not met before the calibration requirements for i2c digital sensors)
              Sorry

              1 Reply Last reply Reply Quote 0
              • S
                salty_good
                last edited by

                @vvs551 so sorry...
                We will provide calibrated version code in the future!!

                V hagueH 2 Replies Last reply Reply Quote 0
                • V
                  vvs551 @salty_good
                  last edited by

                  @salty_good Could you propose any idea how to calibrate data and get real time angle monitoring sketch?
                  Because there is a terrible fluctuations from the meaning value in the time.
                  I could not get something near zero in static position if I do accumulative addition like here:
                  gyroX += ((float)gX * M5.IMU.gRes - gyroX0);
                  Where gX - int16_t current gyro value, gyroX0 - float calibration value with gRes, and gyroX - float accumulative angle value

                  1 Reply Last reply Reply Quote 0
                  • hagueH
                    hague @salty_good
                    last edited by

                    @salty_good Is there a calibration yet? Any update?
                    Thanks

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