Wire MPU6050 (cheap eBay breakoutboard) to Arduino MEGA 1280

Nantonos:

EliteTUM:
I asked the seller and he gave me the following advice for wiring it all together:

MPU6050 breakoutboard Arduino MEGA 1280
VCC <-> 3V3
GND <-> GND
SCL <-> ANALOG IN A5
SDA <-> ANALOG IN A4

That is wrong (it is the right answer for an Arduino Uno). One Arduino Mega1280 and Mega2560 the SCL is on pin 21 and the SDA is on pin 20.

Thanks for the hint. Could have figured that out by myself, duuuh.
I re-wired everything now and get the following:

Initializing I2C devices...
Testing device connections...
MPU6050 connection failed
a/g: 13312 0 0 0 0 0
a/g: 13312 0 0 0 0 0
a/g: 13312 0 0 0 0 0
a/g: 13312 0 0 0 0 0
a/g: 13312 0 0 0 0 0

I guess the message "MPU6050 connection failed" can be ignored, since my loop()-Function looks like this:

void loop() {
    if(accelgyro.testConnection()==true){
        delay(100);
        // read raw accel/gyro measurements from device
        accelgyro.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);
    
        // these methods (and a few others) are also available
        //accelgyro.getAcceleration(&ax, &ay, &az);
        //accelgyro.getRotation(&gx, &gy, &gz);
    
        // display tab-separated accel/gyro x/y/z values
        Serial.print("a/g:\t");
        Serial.print(ax); Serial.print("\t");
        Serial.print(ay); Serial.print("\t");
        Serial.print(az); Serial.print("\t");
        Serial.print(gx); Serial.print("\t");
        Serial.print(gy); Serial.print("\t");
        Serial.println(gz);
    
        // blink LED to indicate activity
        blinkState = !blinkState;
        digitalWrite(LED_PIN, blinkState);
    }
}

So, maybe the connection-test just does not work correctly when called during setup(), but later it returns true.
Nevertheless, it still doesn't seem to be working since it doesn't output anything except what you see above. No mater how fast I move/rotate the sensor.
Could be I accidently now fried it if it wasn't fried before :frowning:

Would the testConnection()-Function still return true even if the MPU6050 were damaged?