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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login