Hi,
Did you find a solution to this problem? I've been having the same problem and it's driving me crazy!
I've tried a Arduino Uno and a Mega 2560. And I've tried 2 different GY-521 breakout boards, so it doesn't appear to be a hardware issue.
I can initialise and get data from the MPU6050 if I use Arduino Wire library for I2C. I've tried doing a comparison of the debug output when using Wire and Fastwire, and they look the same right up until the point where the Fastwire version stops being able to read.
Debug output using Fastwire:
Setting motion detection duration to 80...
I2C (0x69) writing 1 bytes to 0x20...50. Done.
Setting zero-motion detection duration to 0...
I2C (0x69) writing 1 bytes to 0x22...0. Done.
Resetting FIFO...
I2C (0x69) reading 1 bytes from 0x6A.... Done (-1 read).
I2C (0x69) writing 1 bytes to 0x6A...4. Done.
Enabling FIFO...
I2C (0x69) reading 1 bytes from 0x6A.... Done (-1 read).
I2C (0x69) writing 1 bytes to 0x6A...40. Done.
Enabling DMP...
I2C (0x69) reading 1 bytes from 0x6A.... Done (-1 read).
I2C (0x69) writing 1 bytes to 0x6A...80. Done.
Debug output using Wire
Setting motion detection duration to 80...
I2C (0x69) writing 1 bytes to 0x20...50. Done.
Setting zero-motion detection duration to 0...
I2C (0x69) writing 1 bytes to 0x22...0. Done.
Resetting FIFO...
I2C (0x69) reading 1 bytes from 0x6A...0. Done (1 read).
I2C (0x69) writing 1 bytes to 0x6A...4. Done.
Enabling FIFO...
I2C (0x69) reading 1 bytes from 0x6A...0. Done (1 read).
I2C (0x69) writing 1 bytes to 0x6A...40. Done.
Enabling DMP...
I2C (0x69) reading 1 bytes from 0x6A...40. Done (1 read).
I2C (0x69) writing 1 bytes to 0x6A...C0. Done.
The reason I want to use Fastwire is because I'm seeing lock-ups when using Wire. I'm trying to log the data from the MPU-6050, along with a time stamp, to a SD card.
Thanks,
Nick