MPU6050 IMU
Combines three-axis acceleration and angular-rate sensing.
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.
Motion measurement and orientation experiments
Sensors convert a physical quantity into an electrical signal. Calibrate, verify module supply, interfaces and environmental limits.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | 3-axis acceleration and 3-axis rotation rate |
| Range | ±2 to ±16 g; ±250 to ±2000 °/s |
| Accuracy | 16-bit readings; drifts, needs calibration |
| Interface | I2C |
| I2C address | 0x68 (AD0 low) or 0x69 (AD0 high) |
| Supply voltage | Module 3.3 to 5 V (chip 2.375 to 3.46 V via regulator) |
| Operating temperature | −40 to 85 °C |
Pinout
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
Builds that use it
Four sensors on one I²C bus
Digital spirit level with MPU6050
Two-wheel self-balancing robot
Ramp slope checker
Web Bluetooth dashboard
Glove-controlled toy car
Head-controlled mouse
Hand gesture controlled robot
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).
