Components / Sensors / MPU6050 IMU

MPU6050 IMU

Combines three-axis acceleration and angular-rate sensing.

Measures3-axis acceleration and 3-axis rotation rate
Range±2 to ±16 g; ±250 to ±2000 °/s
Accuracy16-bit readings; drifts, needs calibration
InterfaceI2C
SensorsReviewedMPN MPU-6050 (GY-521 module)Used in 55 projects
MPU6050
In short

What is the MPU6050 IMU and what is it used for?

Combines three-axis acceleration and angular-rate sensing. Makers use it to build a simple tilt monitor.

The MPU-6050 is end-of-life; new designs often use the ICM-20600 series.
In the real world

Motion measurement and orientation experiments

How it works

Sensors convert a physical quantity into an electrical signal. Calibrate, verify module supply, interfaces and environmental limits.

Key specifications

Sensor specValue
Measures3-axis acceleration and 3-axis rotation rate
Range±2 to ±16 g; ±250 to ±2000 °/s
Accuracy16-bit readings; drifts, needs calibration
InterfaceI2C
I2C address0x68 (AD0 low) or 0x69 (AD0 high)
Supply voltageModule 3.3 to 5 V (chip 2.375 to 3.46 V via regulator)
Operating temperature−40 to 85 °C

Pinout

VCC3.3 or 5 V (module regulator)
GNDGround
SCLI2C clock
SDAI2C data
AD0Address select
INTData-ready interrupt

How to use it

Keep it flat and still at start-up to calibrate offsets. Angles from the gyro drift over time; combine with the accelerometer (complementary filter) for steady tilt.

#include <Adafruit_MPU6050.h>
Adafruit_MPU6050 mpu;
void setup() { Serial.begin(115200); mpu.begin(); }
void loop() { sensors_event_t a, g, t; mpu.getEvent(&a, &g, &t); Serial.println(a.acceleration.z); delay(100); }

Applications

Buy at

Common questions

What is the MPU6050 IMU used for?

In products: motion measurement and orientation experiments. In maker projects: build a simple tilt monitor.

How does the MPU6050 IMU work?

Sensors convert a physical quantity into an electrical signal. Calibrate, verify module supply, interfaces and environmental limits.

What voltage does the MPU6050 IMU need?

Module 3.3 to 5 V (chip 2.375 to 3.46 V via regulator).

How do I connect the MPU6050 IMU to an Arduino or ESP32?

I2C. Pins: VCC (3.3 or 5 V (module regulator)), GND (Ground), SCL (I2C clock), SDA (I2C data), AD0 (Address select), INT (Data-ready interrupt).