Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 3 months ago.
MPU6050 does not work stably
Hi Baser,
I am now developing mpu6050 based on your code, I have found a strange issue that during mpu6050 running, uart or some other interrupts may influence mpu6050, and it causes mpu6050 died, I mean it will no longer work, I2C will be always timeout, unless I unplug the power line for mpu6050 and re-plugin. Do you have any ideas? I am using stm32-nucleo
Question relating to:
2 Answers
9 years, 1 month ago.
Hello,
In the code, I was sending some messages to UART in MPU6050 functions, delete this messages and try again. Also try to change I2C and UART pins in the code which cause problem for you.
Also see example code that I wrote here: https://developer.mbed.org/users/BaserK/code/i2c_MPU6050/
Check whether pin connections are correct or not. Also it is possible that this issue may be caused by ST Nucleo board, test the code with different mbed board if you have any by changing neccessary pins.
Hope this helps.