micropython-IMU / micropython-mpu9x50

Drivers for InvenSense inertial measurement units MPU9250, MPU9150, MPU6050
MIT License
260 stars 82 forks source link

MPU exception during startup with RPi Pico #24

Closed xdthegreat closed 2 years ago

xdthegreat commented 2 years ago

Hardware: Raspberry Pi Pico, MPU-6050

Error message: Traceback (most recent call last): File "", line 33, in File "imu.py", line 105, in init File "imu.py", line 159, in chip_id MPUException: I2C failure when communicating with IMU

Suspected bug is in _read() class function. Why try cell is not used in chip_id, following error message is recorded: Traceback (most recent call last): File "", line 33, in File "imu.py", line 105, in init File "imu.py", line 157, in chip_id File "imu.py", line 117, in _read OSError: [Errno 5] EIO

Not sure if issue is with hardware or code

xdthegreat commented 2 years ago

Rebooting the whole thing somehow fixed the system. I apologize for not trying the nuclear option.