I am having difficulties getting a connection between my arduino onu and a MPU6050.
i have set the I2C connection like this.
arduino 3.3v to MPU6050 VDD
arduino ground to MPU6050 ground
arduino analog pin4 to MPU6050 SDA
arduino analog pin5 to MPU6050 SCL
here is pictures
i read on the MPU datasheet ( http://invensense.com/mems/gyro/documents/RM-MPU-6000A.pdf) that it have pull op resistors so that should not be the problem.
i use a I2C scanner to try and find a connection between the two(Arduino Playground - I2cScanner)
this is the result
i however, i 3 times i got a correct signal for a brief less then 5 second period. it was after i had i t run in the background for 2 hours and i looked through the historic of the connection. i have no idea if anything changed at those 3 moment, but the arduino pretty much just lay on the table, so i highly doubt it. i am out of ideas to get it to work is there anyone who have, advise, help or experienced similar situation.
Update:
Sorry for the late update school vacation and other bad excuses.
The problem posted have been solved, many thanks to Peter Oakes.
Connecting the VIO to the v3.3 seems to work perfectly i there is no more connection problems however i have also worked on minimizing the noise that the wires probably made.
I am now using the code from Arduino Playground - MPU-6050 website which will get the base values out perfectly, however i am struggling with converting the raw 16 bit data to a more readable numbers.
i am trying to use the help from here Gyroscopes, Accelerometers and the Complementary Filter | Bayesian Adventures however i cant seem to get the code for the arduino talker, and i don't understand the reasoning for dividing with the number 131. Doing so seems to works great and the data seems correct at first, but the reasoning for the number i can't find. but that will probably show op as i try ti calculate the values the gyroscope and accelerator should give.
here is a picture of the new setup the INT is on because when i was soldering i was still unsure if it would be necessary, and just get it just in chase.