how connect mpu-6050 3 axis gyroscope

Hi, I bought mpu-6050 sensor recently. page: http://www.ebay.it/itm/170881535422?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649

How can I connect it into arduino mega boards?

5V -> Vcc (The board makes it's own 3.3V) SDA -> SDA SCL -> SCL GND -> GND Pin 2 -> INT

http://arduino.cc/en/Main/arduinoBoardMega http://arduino.cc/en/Reference/Wire (for the Mega: SDA is pin 20 or the new SDA pin, SCL is pin 21 or the new SCL pin) http://arduino.cc/en/Reference/AttachInterrupt (for reference, int.0 is pin 2)

I have a problem: I have two pin 0: Analog in 0 and RX0. What's the correct pin? :blush: Thanks!

For the interrupt (INT) signal ?

Connect the INT to digital pin 2 (two, not zero). In the sketch, the software of Jeff Rowberg uses interrupt 0. That 'interrupt 0' is only in the sketch, it is the hardware pin digital pin 2.

Jeff Rowberg, http://www.i2cdevlib.com/

I gave a link to the older Mega. The new Arduino Mega 2560 R3 has SDA and SCL pins near AREF, the older Mega 2560 doesn't have those pins. http://arduino.cc/en/Main/arduinoBoardMega2560

My digital pin 2 isn't avaiable because i have TFT LCD Mega Shield v1.0 on that pin

Use one of the other interrupts. See the list here, http://arduino.cc/en/Reference/AttachInterrupt But you have to change the code of Jeff Rowberg for the new interrupt.