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

    SH200I test strange results

    Scheduled Pinned Locked Moved M5 Stick/StickC
    8 Posts 3 Posters 13.8k 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.
    • V Offline
      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 Offline
        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 Offline
          vvs551 @salty_good
          last edited by

          @salty_good why such values? What does it mean?

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            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 Offline
              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 Offline
                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 Offline
                  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 Offline
                    hague @salty_good
                    last edited by

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

                    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