Ok, so I bought an MPU6050 gyro/accel from sparkfun, and I connected it do my arduino.
But when I run Krodal's code (Arduino Playground - MPU-6050), it keeps giving me 'error=2'.
I found out it had something to do with I2C connection, and after running an I2C scanner (from RandallR: I2C EEPROM AT24C16 - #5 by RandallR - Storage - Arduino Forum), this was the result:
I2C Scanner
Scanning I2C bus from 0 to 127...
00 2 01 2 02 2 03 2 04 2 05 2 06 2 07 2
08 2 09 2 0A 2 0B 2 0C 2 0D 2 0E 2 0F 2
10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2
18 2 19 2 1A 2 1B 2 1C 2 1D 2 1E 2 1F 2
20 2 21 2 22 2 23 2 24 2 25 2 26 2 27 2
28 2 29 2 2A 2 2B 2 2C 2 2D 2 2E 2 2F 2
30 2 31 2 32 2 33 2 34 2 35 2 36 2 37 2
38 2 39 2 3A 2 3B 2 3C 2 3D 2 3E 2 3F 2
40 2 41 2 42 2 43 2 44 2 45 2 46 2 47 2
48 2 49 2 4A 2 4B 2 4C 2 4D 2 4E 2 4F 2
50 2 51 2 52 2 53 2 54 2 55 2 56 2 57 2
58 2 59 2 5A 2 5B 2 5C 2 5D 2 5E 2 5F 2
60 2 61 2 62 2 63 2 64 2 65 2 66 2 67 2
68 2 69 2 6A 2 6B 2 6C 2 6D 2 6E 2 6F 2
70 2 71 2 72 2 73 2 74 2 75 2 76 2 77 2
78 2 79 2 7A 2 7B 2 7C 2 7D 2 7E 2 7F 2
-------------------------------
Possible devices:
68 = DS1307
done
It finds DS1307 on bus 68, but it says 68 2, not 68 found!
(as I see everywhere when a was looking for how this test was used.)
So it doesn't find the I2C bus, but it does find the device (?).
What does this mean.
(the board is wired
VDD - 3.3V
GND - GND
SDA - A4
SCL - A5
VIO - VDD)
So do I have I2C communication or do I not?
Please excuse my English, I'm not a native speaker.