LabWired The easy way to build hardware
I²C device

MPU6050 IMU

The MPU6050 IMU is an I²C device in the LabWired part catalog. Its catalog type is mpu6050. It connects to the MCU over I²C at the default address 0x68. It has 8 pins. A registered peripheral model runs in the engine: the firmware talks to it over the real bus and gets device-accurate responses.

Key facts

CategoryI²C devices
Catalog typempu6050
InterfaceI²C
Default I²C address0x68 (104 decimal)
Pins8
DatasheetTDK InvenSense MPU-6000/MPU-6050 product specification

What LabWired simulates

What is simulated

Simulated device model

How it was validated

Built from the datasheet. Implemented from the part’s register documentation and exercised by automated tests. Nothing physical was ever placed next to it.

MPU6050 IMU pinout

PinElectrical typeFunction
VCC Power input Supply
GND Power input Supply
SCL Open-drain I²C clock (SCL)
SDA Open-drain I²C data (SDA)
XDA Passive —
XCL Passive —
AD0 Passive —
INT Output —

How to simulate the MPU6050 IMU in LabWired

  1. Open the Playground at app.labwired.com and place an MCU board.
  2. Add the MPU6050 IMU (catalog type mpu6050).
  3. Connect VCC and GND to the supply and ground of the board.
  4. Connect SDA and SCL to the I²C data and clock pins of the board.
  5. Connect XDA, XCL, AD0 and INT as your circuit needs.
  6. Run the firmware. It finds the part on the I²C bus at 0x68 and reads and writes it as on hardware.

Other parts at I²C address 0x68

These catalog parts use the same default address. Two parts at one address cannot share one bus segment. A bus switch such as the TCA9548A puts them on separate segments.

Related I²C devices

All I²C devices · All parts

Further reading

Modelled from TDK InvenSense MPU-6000/MPU-6050 product specification.