PetoiCamp / OpenCat-Old

A programmable and highly maneuverable robotic cat for STEM education and AI-enhanced services.
https://www.petoi.com
1.36k stars 362 forks source link

error message "MPU6050 connection failed" #10

Closed borntoleave closed 5 years ago

borntoleave commented 5 years ago

Hi, I have noticed some strange error message from the MPU6050 codes borrowed from the popular i2cdevlib: The MPU6050 test code will occasionally show error message "MPU6050 connection failed", but the following codes can read all the sensor data just fine. And it seems to be a rare but reproducible error across several forums.

Basically it's the function mpu.testConnection() always returns false. My current solution is just ignoring the error message since it's not affecting any later use on the sensor data. But does anyone have better insight why it is happening? Thanks!

RongzhongLi commented 5 years ago

Seems to be the problem of the gy-521.