Skip to content
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初始化失败 #25

Open
song-hailong opened this issue May 27, 2022 · 4 comments
Open

MPU6050初始化失败 #25

song-hailong opened this issue May 27, 2022 · 4 comments

Comments

@song-hailong
Copy link

有遇到程序卡在accelgyro.initialize();的吗?串口只打印了下面的信息,就卡死了。
image

@hanchuangqj
Copy link

hanchuangqj commented Jun 1, 2022

IMG_20220601_180649.jpg
我也遇到了

@CodeChenL
Copy link

这个问题我也遇到了,可以找到Wrie.h这个文件,在开头添加#define CONFIG_DISABLE_HAL_LOCKS true宏定义就行了

@Drswith
Copy link

Drswith commented Sep 4, 2022

是电路设计问题,
问题一:电路图控制I2C地址的AD0引脚虽然接地了但是没有加下拉电阻,导致电压浮空,使用0x69地址可解决,但是也不稳定,终极办法就是AD0飞线个10k下拉电阻到GND
问题二:MPU的I2C没有接上拉电阻,容易被信号干扰,解决办法一样是SCL、SDA分别飞线4.7K电阻到VCC

@oYuXo
Copy link

oYuXo commented Sep 16, 2022

对比ad源文件发现Gerber文件中mpu6050 9、10、11引脚侧的地孔缺失了,直接用Gerber文件打板出来,会导致AD0浮空,我怀疑是这个原因导致初始化失败的
e136fb82cbdba76e14c7c86e45bc65e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants