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

    AtomS3R bmm150 magnetometer readings

    Scheduled Pinned Locked Moved Atom
    4 Posts 3 Posters 3.6k Views
    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 Offline
      mgrouch
      last edited by

      I'm getting really bad magnetometer readings from AtomS3R bmm150
      using m5stack libraries.

      atan2(mag.x, mag.y) should give some reasonable result in radians.

      However I do not see it being even close.

      My code:

      https://github.com/bareboat-necessities/bbn-atomS3R/blob/07bdf3e322c907e398563786f0af95e70cd635ac/bbn_atomS3R_mahony/bbn_atomS3R_mahony.ino

      I think there is a bug in m5stack unified library which reads that sensor.

      Thanks,

      1 Reply Last reply Reply Quote 0
      • P Offline
        proTartareSauce
        last edited by

        Hi there, I'm using an M5core2 with the GNSS module and getting really strange readings form the bmm150 as well. Did you find a fix ?

        Best,

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

          @proTartareSauce

          m5stack code for calibration is very primitive. It doesn’t do sphere fit. That’s the issue I had

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sywong2000 @mgrouch
            last edited by

            @mgrouch I can use the M5Unified library to read a reasonable readings from the BMM150. Yet have to work on the orientation. In my case I have to invert the X-axis value and Z-axis value and able to calculate into a tilt-compensated headings

            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