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:

Baser Kandehir / MPU6050 Featured
MPU6050 library using i2c interface on LPC1768 - Complementary filter is added. Now program can calculate pitch and roll angles. ANGLE, complementary, filter, gyro, gyroscope, I2C, LPC1768, mbed, MPU6050, Nucleo F411RE, pitch, roll

2 Answers

9 years, 2 months ago.

I have the same problem, Could you resolve the problem?

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.