tuupola / micropython-mpu9250

MicroPython I2C driver for MPU9250 9-axis motion tracking device
MIT License
141 stars 47 forks source link

Reset sensor during init, add MPU6700 support #28

Closed fxsheep closed 9 months ago

fxsheep commented 9 months ago

This makes sure the sensor has been reset and kicked out of sleep mode before reading. It also made MPU6700 working, as MPU6700 starts in sleep mode.

tuupola commented 9 months ago

I currently do not have a device to test this and cannot find MPU6700 datasheet. But I guess it is "new" version of MPU6500 so registers match.

fxsheep commented 9 months ago

MPU6700 is a custom version used in certain well-known mobile phones, whose company name starts with letter 'A'. The datasheet is not (and I doubt if it ever will be) publicly available. Register definition and programming sequence looks same as MPU6500, though, according to my reverse engineering.

tuupola commented 9 months ago

No wonder I did not find the datasheet. Thanks!

tuupola commented 9 months ago

Released as 0.4.0. Thanks!

https://pypi.org/project/micropython-mpu9250/