-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MPU6050 connection failed but showing DMP results! #85
Comments
Hello @Sinamajidi The fact that you're seeing DMP output even after the connection failure is peculiar because the DMP relies on the MPU6050 to function. The library might be reporting a failure incorrectly, or there could be an edge case where the DMP still processes data despite a failed connection. Check that the power supply to the MPU6050 is stable and at the correct voltage level. Ensure that you are using the latest version of the library. Likewise, I will see it with my team to investigate and correct it. Have a nice Day! Support Team |
Great. I have checked them all, and I will be thankful if you correct this bug. Before that, I'm gonna ignore that error, and I'll try to use DMP independently. |
@Sinamajidi Hi, unfortunately since the creation of the library mpu.initialize(); does not have a return value and this makes it impossible to detect if the library is initialized correctly. It would be a question to see if devStatus = mpu.dmpInitialize(); can help you to stop the program if it is not initialized correctly. We will try to improve mpu.initialize(); so that at startup the device can do a startup validation and not continue to advance, but this will take a few months for our current projects, contributions are welcome. Thanks Edit: mpu.testConnection() may be the temporary function that helps you. |
@sabas1080 |
@Sinamajidi can you try to test this sketch and see how it behaves?
please share with me the output of the serial terminal |
Ok, I did. The first time I saw the monitor, it was infinitely showing the following message:
After that, I held the EN button on ESP32 and disconnected. After immediately reconnecting the VCC pin of the MPU module, I released the EN button and this appeared in the serial monitor:
|
@Sinamajidi Ok, this information is useful to me, can you try to test this sketch, please share with me the output of the serial terminal
|
I did it here is the result:
|
@Sinamajidi it seems that the mpu6050 you have is not working or you should check the connection. |
Do you mean it doesn't work at all or just for the last test result? Bcz as you have seen, the DMP is working, so the chip should work normally despite the fact that acceleration and direction vectors can't be accessible with lib as I told you at first. |
@Sinamajidi
|
There were problems with the pins that I connected to the esp32, now I am using the rawData example and I connected the module to the esp32 default I2C pins and the problem has been solved! |
Hey there, I'm using ESP32 and I wanted to connect it to my mpu6050 chip of mpu-92.65 board using this library.
after scanning i2c addresses i figured out its set to 0x68 and I also connected the SDA and SCL to 21, and 22 respectively.
After running the example although it couldn't connect to MPU6050 but showed me the DMP results in real-time, how it can be possible to cant be connected to MPU6050 but show the result of the DMP?! (DMP is dependent on the MPU6050 chip)
I know this is a bug but I dont know how to solve it. help me please.
Here is the modified example of the library to that gave me that result:
And here is the signal monitor result:
@sabas1080 @REGIOIGER @quesswho @JahazielLem @ignacioacosta
The text was updated successfully, but these errors were encountered: