本文介绍了MPU6050 DMP不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用DMP并生成此错误

I'm using DMP and It generates this error

  Send any character to begin DMP programming and demo: 
  Initializing DMP...
  DMP Initialization failed (code 1)

任何帮助将不胜感激:)谢谢

Any help would be appreciated :)Thanks

推荐答案

首先要检查的是i2c设备已正确连接.一种好的方法是使用 i2c扫描器.您应该在0x68或0x69上看到mpu6050,具体取决于地址引脚是拉低还是拉高.

The first thing to check is that the i2c device is connected properly. A good way to do this is to use the i2c scanner. You should see the mpu6050 on 0x68 or 0x69 depending on whether the address pin is pulled low or high.

如果看到它,但仍然无法连接,请确保您的媒体库已设置为使用正确的地址.

If you see it, but still can't connect, make sure your library is set up to use the correct address.

从那里我发现最容易首先尝试原始读数.如果您可以阅读原始的加速度计和陀螺仪,则可以尝试DMP.

From there I find it easiest to try the raw readings first. If you can read the accels and gyros raw, you are ready to try DMP.

这篇关于MPU6050 DMP不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 12:24