I2c failure with MPU6050 component
-
I am using a simple Arduino sketch to get values from the MPU6050 over I2C. The only values I receive are 0. Also, I cannot write to any register. The I2C scanner shows it is connected.
If I use an Arduino Mega2560, the device works correctly.
I have also tried to use a M5Stack MPU6886 and it fails as well.
I am using a M5Stack Basic.
-
More information
If I use M5Unified.h and then a begin of M5.begin(), the data is all zeros. If I take out the begin, then the data is correct. There must be something in the M5Unified that is restarting the Wire or taking over the I2C bus.
How can I correct this. It is a show stopper. If I can find a solution, then I will have to discard the M5Stack basic and go to a regular ESP32.