Reputation: 57
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
Upvotes: 2
Views: 11412
Reputation: 1
As a starting point, connect your MPU-6050 to 3.3V as it is designed to work with "Voltage - Supply:2.375 V ~ 3.46 V".
Upvotes: 0
Reputation: 371
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.
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.
Upvotes: 6
Reputation: 836
As soon as you provide info, we can talk on a common basis. Before that, I assume you use a "copy and paste" code of i2c-devlib's code. Therefore, the first error one could make is to forget to set up an interrupt handler in code for the interrupt of the FIFO buffer.
Upvotes: 0