The MPU6050 sensor module is a complete 6-axis Motion Tracking Device. It combines 3-axis Gyroscope, 3-axis Accelerometer, and Digital Motion Processor all in a small package. Also, it has an additional feature of an on-chip temperature sensor. It has an I2C bus interface to communicate with the microcontrollers. If 3-axis Magnetometer is connected to the auxiliary I2C bus, then MPU6050 can provide complete 9-axis Motion Fusion output.
MPU-6050Â pinout:
The MPU-6050 module has 8 pins,
INT:Â Interrupt digital output pin.
AD0:Â I2C Slave Address LSB pin. This is the 0th bit in the 7-bit slave address of the device. If connected to VCC then it is read as logic one and slave address changes.
XCL:Â Auxiliary Serial Clock pin. This pin is used to connect other I2C interface enabled sensors SCL pin to MPU-6050.
XDA:Â Auxiliary Serial Data pin. This pin is used to connect other I2C interface enabled sensors SDA pin to MPU-6050.
SCL:Â Serial Clock pin. Connect this pin to the microcontrollers SCL pin.
SDA:Â Serial Data pin. Connect this pin to the microcontrollers SDA pin.
GND: Ground pin. Connect this pin to a ground connection.
VCC:Â Power supply pin. Connect this pin to +5V DC supply.
MPU-6050 module has Slave address (When AD0 = 0, i.e. it is not connected to Vcc) as,
Slave Write address(SLA+W): 0xD0
Slave Read address(SLA+R): 0xD1