user33230: I am trying to do a self-balancing bot as a school project, but I got stuck with the MPU6050.
I tried using the code by Jeff Rowberg (MPU_6050_raw) but it's reading only zeros.
I tried the MPU_6050_DMP and got stuck at "initializing DMP..." and no reading is shown.
I tried other code, but same thing happens, either reading zeros or getting stuck at "initializing DMP..".
And how can I make sure that the chip isn't broken?

user30198: The MPU-6050 is a 3.3V chip. When you are using a 5V Arduino board, you should take care that you don't put current into the SDA and SCL pins of the MPU-6050.  
Start with a i2c scanner.
This one: Arduino Playground I2C scanner
Or this one: Nick Gammon I2C scanner
If the I2C scanner halts, then there is a hardware problem with the I2C bus. It might be a shortcut of SDA or SCL to GND, or the MPU-6050 module is not powered.
If the I2C scanner is working, then you know the address (0x68 or 0x69). With that address you can try the Short example sketch to read data from the chip.
If that is working, then you can try the Jeff Rowberg library.

33230: <p>I am trying to do a self-balancing bot as a school project, but I got stuck with the MPU6050.</p>

<p>I tried using the code by Jeff Rowberg (MPU_6050_raw) but it's reading only zeros.</p>

<p>I tried the MPU_6050_DMP and got stuck at "initializing DMP..." and no reading is shown.</p>

<p>I tried other code, but same thing happens, either reading zeros or getting stuck at "initializing DMP..".</p>

<p>And how can I make sure that the chip isn't broken?</p>
 30198: <p>The MPU-6050 is a 3.3V chip. When you are using a 5V Arduino board, you should take care that you don't put current into the SDA and SCL pins of the MPU-6050.  </p>

<p>Start with a i2c scanner.<br>
This one: <a href="http://playground.arduino.cc/Main/I2cScanner" rel="nofollow noreferrer">Arduino Playground I2C scanner</a><br>
Or this one: <a href="http://www.gammon.com.au/forum/?id=10896&amp;reply=6#reply6" rel="nofollow noreferrer">Nick Gammon I2C scanner</a><br>
If the I2C scanner halts, then there is a hardware problem with the I2C bus. It might be a shortcut of SDA or SCL to GND, or the MPU-6050 module is not powered.</p>

<p>If the I2C scanner is working, then you know the address (0x68 or 0x69). With that address you can try the <a href="http://playground.arduino.cc/Main/MPU-6050#short" rel="nofollow noreferrer">Short example sketch</a> to read data from the chip.</p>

<p>If that is working, then you can try the Jeff Rowberg library.</p>
