Moddable-OpenSource / moddable

Tools for developers to create truly open IoT products using standard JavaScript on low cost microcontrollers.
http://www.moddable.com
1.32k stars 236 forks source link

IMUs on M5Stack Fire? #428

Closed phoddie closed 1 year ago

phoddie commented 4 years ago

I recently made a change to the M5Stack Fire so that start-up could proceed if the IMU was not found. This was done because @meganetaaan mentioned that some M5Stack Fire hardware uses a different IMU from the MPU6050 currently expected.

There were recent changes to the M5Stick-C to detect the IMU (SH200Q or MPU6886). This allows the M5Stick-C to work with either IMU without user intervention.

It seems like we should apply a similar change to the M5Stack Fire. To do that, we would need to know which IMUs it has shipped with. I don't know. @meganetaaan, @wilberforce, @Tiryoh -- do you know?

wilberforce commented 4 years ago

https://docs.m5stack.com/#/en/core/fire

BMM150 + MPU6886

So we now have a mpu8666 driver.

The MAG is new:

https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmm150-ds001.pdf

phoddie commented 4 years ago

Oh good. One more driver to write. I don't have the part, so I can't volunteer. Anyone?

Tiryoh commented 4 years ago

I don't have an M5Stack Fire, but I looked it up on Switch Science, a M5Stack distributor in Japan. According to Switch Science, the current M5Stack Fire has BMM150 + MPU6886 or BMM150 + SH200Q. 2020-08-28_23h39_39 https://www.switch-science.com/catalog/3953/

Also, it seems like M5Stack Gray has MPU6886 + BMM150 (or MPU9250). 2020-08-28_23h46_12 https://www.switch-science.com/catalog/3648/

related issue: https://github.com/m5stack/M5Stack/issues/191