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

    Library for 6-DoF IMU Pro Mini Unit

    Micropython
    2
    2
    1.5k
    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.
    • 0
      007jimmey
      last edited by

      Hi,
      I been trying to find a library that will work with the M5-stack 6-DoF IMU Pro Mini Unit (BMI270, BMM150, BMP280)for an ESP-32 running micro python and preferable using i2c communication however are open to other types.
      Does any one have any ideas?

      easytargetE 1 Reply Last reply Reply Quote 0
      • easytargetE
        easytarget @007jimmey
        last edited by easytarget

        @007jimmey
        A bit late to the party here but.. maybe of help to you or others

        The bmp280 temperature/humidity/pressure sensor is well known, there are lots of libraries for this (I2C) eg: https://github.com/robert-hh/BME280

        • it has it's own I2C address and is separate from the bmi270/bmm150

        The bmi270 six axis sensor (acceleration and gyro) has a basic, large and slow driver here: https://github.com/micropython/micropython-lib/tree/master/micropython/drivers/imu/bmi270

        I have my own pair of drivers for this:
        https://codeberg.org/easytarget/bmi270-micropython

        • bmi270_fast.py is a drop-in replacement for the above driver, but is 5x smaller, and 25x faster loading. (92 ms vs 2.3 seconds..)
        • bmi270_legacy.py is a work in progress full-feature driver I'm working on for my Tab5. It uses for the 'legacy config' (tablet/mobile phone featureset) and has motion and orientation sensors and interrupts available.

        But.. the BMM150 magnetometer is an issue, it is attached to the 'auxillary' bus of the BMI270, not to the main I2C bus. You can only to access it via special features in the BMI270, and none of the MicroPython drivers support it.

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