Phone

    00852-6915 1330

Arduino MPU6050 Accelerometer and Gyroscope Module: Pinout, Schematic, and Datasheet

  • Contents

Overview of MPU6050

Video related to MPU6050

MPU6050 Features

MPU6050 Pinout

MPU6050 Pinout Description

MPU6050 Schematic

How to Use MPU6050

Use Cases for MPU6050

Connecting an Arduino to an MPU6050 Module

MPU6050 Applications

MPU6050 Datasheet

MPU6050 FAQ

 

 

Overview of MPU6050

A serious little motion processing gadget is the MPU-6050! The MPU-6050 eliminates cross-axis alignment issues that might arise on standalone parts by merging a MEMS 3-axis gyroscope and 3-axis accelerometer on the same silicon die, together with an integrated Digital Motion ProcessorTM (DMPTM) capable of executing sophisticated 9-axis MotionFusion algorithms.

It's simple to incorporate this tiny QFN package into your project thanks to our breakout board for the MPU-6050. There are 0.1" headers for every pin you require to get started, including the auxiliary master I2C bus that enables the MPU-6050 to access external magnetometers and other sensors.

 

Video Description: As part of our work with the MPU-6050 IMU today, we'll use an Arduino to create an electronic level.

 

MPU6050 Features

  • Programmable interrupts provide shake detection, panning, zooming, and gesture recognition
  • VDD 2.375V-3.46V supply voltage range; VLOGIC (MPU-6050) at 1.8V5% or VDD
  • 3.6mA is the gyro operating current (full power, gyro at all rates)
  • Operating current for the Gyro + Accel: 3.8mA (full power, gyro at all rates, accel at 1kHz sample rate)
  • Low power acceleration 10 A at 1 Hz, 20 A at 5 Hz, 70 A at 20 Hz, and 140 A at 40 Hz are the operating currents
  • Chip Idle Full Mode supplying 5 A at 400 kHz I2C in Fast Mode or SPI at 20 MHz (MPU-6000 only) interfaces for serial hosts
  • Package for portable gadgets that is the smallest and thinnest (4x4x0.9mm QFN)
  • Green- and RoHS-compliant
  • Combined MEMS 3-axis gyroscope and accelerometer values
  • Supply voltage: 3-5V
  • Protocol for communication: I2C
  • Integrated 16-bit ADC offers great precision
  • High processing power is provided by the built-in DMP
  • can be used to connect to additional IIC devices, such as magnetometers
  • Temperature sensor with programmable IIC address

 

MPU6050 Pinout

MPU6050 Pinout

 

MPU6050 Pinout Description

Pin Number Pin Name Description
1 Vcc Provides power for the module, can be +3V to +5V. Typically +5V is used
2 Ground Connected to Ground of system
3 Serial Clock (SCL) Used for providing clock pulse for I2C Communication
4 Serial Data (SDA) Used for transferring Data through I2C communication
5 Auxiliary Serial Data (XDA) Can be used to interface other I2C modules with MPU6050. It is optional
6 Auxiliary Serial Clock (XCL) Can be used to interface other I2C modules with MPU6050. It is optional
7 AD0 If more than one MPU6050 is used a single MCU, then this pin can be used to vary the address
8 Interrupt (INT) Interrupt pin to indicate that data is available for MCU to read.

 

MPU6050 Schematic

MPU6050 Schematic

 

How to Use MPU6050

The hardware of the module is quite straightforward; as previously mentioned, the MPU6050 serves as its major component. A voltage regulator is also necessary because the module requires 3.3V to operate. One 4.7k resistor is used to pull the IIC lines high, while another 4.7k resistor is used to draw the interrupt pin low.

We may read data from the MPU6050 module over the IIC bus. Every modification to the motion will have an impact on the mechanical system, which will modify the voltage. The IC then utilizes its 16-bit ADC to precisely read these voltage changes, stores them in the FIFO buffer, and activates the INT (interrupt) pin. As a result, we utilize an MCU to read the data from this FIFO buffer using IIC communication because this signal indicates that the data is ready to be read. Even while it sounds simple, you could run into some difficulties when attempting to understand the data. However there are lots of platforms like Arduino using which you can start using this module in no time by utilizing the readily available libraries explained below.

 

Use Cases for MPU6050

Micro Electro-Mechanical Systems (MEMS) called the MPU6050 have a 3-axis accelerometer and a 3-axis gyroscope. This makes it easier for us to measure a system's or object's acceleration, velocity, orientation, displacement, and many other motion-related parameters. Moreover, this module contains a (DMP) Digital Motion Processor, which is strong enough to do complex calculations and free up the Microcontroller's time.

Two auxiliary pins on the module can be used to connect external IIC modules, such as a magnetometer, but doing so is optional. The AD0 pin can be used to interface more than one MPU6050 sensor to a microcontroller because the module's IIC address is programmable. This module is relatively simple to use with well-known platforms like Arduino because it also includes readily available, well-documented, and updated libraries. So, this sensor can be the appropriate option for you if you're seeking for one to regulate motion for your remote-control car, drone, self-balancing robot, humanoid, biped, or something similar.

 

Connecting an Arduino to an MPU6050 Module

Let's connect the Arduino to the MPU6050 module. The connections are simple. Start by attaching the GND pin to ground and the VCC pin to the Arduino's 5V output. The I2C communication pins are all that are left at this point. Keep in mind that the I2C pins on each Arduino board are unique and need to be linked properly. The SDA (data line) and SCL (clock line) are located on the pin headers close to the AREF pin on Arduino boards with the R3 configuration. They are also known as A4 and A5 (SCL) (SDA).

MPU6050 module to the Arduino Diagram

Two sample programs are provided by the library and can be found under File -> Examples -> MPU6050. In these two cases, one will provide raw data while the other will provide DMP-optimized data. The example software can be used to obtain the following data values: Components of a quaternion (w, x, y, z), Euler radii, Roll, Yaw, and Pitch, Actual accelerating, frame acceleration globally, Teapot creates sense. The Yaw, Pitch, and Roll are the most often used of all these statistics. But, the library is able to do more than that and can be applied in other ways. Open serial monitor when the application has been uploaded, change the baud rate to 115200, and you should see the data being displayed on the screen.

 

MPU6050 Applications

  • Used for IMU measurement
  • Drones / Quad copters
  • Self balancing robots
  • Robotic arm controls
  • Humanoid robots
  • Tilt sensor
  • Orientation / Rotation Detector

 

MPU6050 Datasheet

MPU6050 Datasheet

 

MPU6050 FAQ

The MPU6050 accelerometer's accuracy level.

With an accuracy of 1°C, the inbuilt temperature sensor in the MPU6050 can measure temperatures between -40 and 85 °C.

 

What is MPU6050 used for?

The MPU6050 is an internal 3-axis accelerometer and 3-axis gyroscope Micro-Electro-Mechanical Systems (MEMS) device. This makes it easier for us to measure a system's or object's acceleration, velocity, orientation, displacement, and many other motion-related parameters.

 

What benefits does the MPU6050 offer?

However, the DMP (Digital Motion Processor) integrated on the same silicon die, which enables the 9-axis MotionFusion algorithms and corrects any alignment issues or mistakes brought on by small components, is without a doubt the MPU-6050 module's key advantage. Moreover, it is capable of sensing movement.

 

How to use MPU6050 with Arduino?

Digital pin 2 (interrupt pin 0) of your Arduino should be connected to the MPU 6050's INT pin. We must then configure the I2C lines. Connect the MPU 6050's pin marked SDA to the Arduino's analog pin 4 (SDA), and the MPU 6050's pin marked SCL to the Arduino's analog pin 5. (SCL).

 

How can I connect the MPU6050 to my ESP32?

You must connect the MPU6050's SDA line to pin 21, SCL line to pin 22, GND line to GND, and VCC line to 3V3 pin, as indicated in the diagram below. It's not necessary to connect MPU6050's other pins.

Kynix

Kynix was founded in 2008, specializing in the electronic components distribution business. We adhere to honesty and ethics as our business philosophy and have gradually established an excellent reputation and credibility in our international business. With the accurate quotation, excellent credit, reasonable price, reliable quality, fast delivery, and authentic service, we have won the praise of the majority of customers.

Join our mailing list!

Be the first to know about new products, special offers, and more.

Leave a Reply

We'd love to hear from you! Feel free to share your thoughts and comments below. Rest assured, your email address will remain private.

Name *
Email *
Captcha *
Rating:

Kynix

  • How to purchase

  • Order
  • Search & Inquiry
  • Shipping & Tracking
  • Payment Methods
  • Contact Us

  • Tel: 00852-6915 1330
  • Email: info@kynix.com
  • Follow Us

authentication

Kynix

© 2008-2026 kynix.com all rights reserved.