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

    AtomS3R bmm150 magnetometer readings

    Atom
    3
    4
    682
    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

      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
        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
          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
            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
            • First post
              Last post