tuupola / micropython-mpu9250

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

AK8963 - [Errno 5] EIO #26

Closed serdaraltin closed 1 year ago

serdaraltin commented 1 year ago

I am using sensor model MPU9250 + BMP280 and I cannot read the magnetometer sensor. I can read the data of all other sensors, but the sensor named AK8963 gives the error in the picture. 2022-11-12_02-33 2022-11-12_02-35

The sensor I use: MPU9250-BMP280

i2c Configuration: 2022-11-12_02-44

i2c Scan Result: 2022-11-12_02-39

Thanks

tuupola commented 1 year ago

The i2c.scan() finds 104 ie 0x68 which is default i2c address for MPU-6500 and 118 ie 0x76 which is default i2c address for BME280.

serdaraltin commented 1 year ago

When I turn off data reading from AK8963 sensor other sensors work fine. Why is this so? 2022-11-12_15-10_1 2022-11-12_15-10_2 2022-11-12_15-10

tuupola commented 1 year ago

There is no AK8963 in the i2c bus. There is only BME280 and MPU-6500. So my guess is that your sensor is not MPU-9250 but a plain MPU-6500 instead.

MPU-9250 is a System in Package (SiP) which combines two chips: MPU-6500 and AK8963.