Go Down

Topic: Mega2560+MPU6050 (Read 92 times) previous topic - next topic

noobie1414

Hello,

I am using the MPU DMP6 example to test my mpu6050 with Arduino mega 2560. My connections are

5V - Vcc
Gnd-Gnd
20(SDA)-SDA
21(SCL)-SCL
2 - INT

But the connection is not being established. Could you please help.


Output:

Initializing I2C devices...
Testing device connections...
MPU6050 connection failed

srnet

Do a Google search for;

'Arduino I2C scanner'

And use that test program.

The I2C scanner will tell you if there are any I2C devices on the bus.

If there are none found, either the MPU6050 is wired wrong or it or your Arduino are faulty. 
http://www.50dollarsat.info/
http://www.loratracker.uk/

noobie1414

Thank you for a quick reply.

When using I2C Scanner it shows me that the device is connected to 0x68.

And when using the example program of MPU Raw it gives the correct output but only when using MPU DMP6 it gives a connection failed output


jremington

For informed help, please read and follow the instructions in the " How to use this forum" post.

Go Up