MPU6050 DMP 不工作? [英] MPU6050 DMP does not work?

查看:27
本文介绍了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 不工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆