Library for 6-DoF IMU Pro Mini Unit
-
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? -
@007jimmey
A bit late to the party here but.. maybe of help to you or othersThe
bmp280temperature/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
bmi270six axis sensor (acceleration and gyro) has a basic, large and slow driver here: https://github.com/micropython/micropython-lib/tree/master/micropython/drivers/imu/bmi270I have my own pair of drivers for this:
https://codeberg.org/easytarget/bmi270-micropythonbmi270_fast.pyis a drop-in replacement for the above driver, but is 5x smaller, and 25x faster loading. (92 ms vs 2.3 seconds..)bmi270_legacy.pyis 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
BMM150magnetometer 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.