I need to connect two mpu6050 with arduino mega. I don't know how to connect two mpu6050 at same time. Any one help me to do.
Connect both to the I2C bus, and on one, set the address select pin AD0 to LOW (GND) and on the other, set AD0 to HIGH (3.3V).
They will then respond to different I2C device addresses. Consult the device data sheet for the details.
Where to connect SCL and SDA of second mpu. Any circuit connection diagram and example program please
You connect SDA and SCL in parallel. I2C is a bus, intended for several devices at one time.
Please do some basic research and reading on the subject. Google "i2c bus".