# MPU-6050 Module 3 Axis Gyroscope + Accelerometer

**Type:** Product page · **SKU:** 018-MPU-6050 · **Brand:** [Core Electronics](https://core-electronics.com.au/brands/core-electronics-australia)
**Page:** https://core-electronics.com.au/mpu-6050-module-3-axis-gyroscope-acce-lerometer.html ([markdown](https://core-electronics.com.au/mpu-6050-module-3-axis-gyroscope-acce-lerometer.html.md))

A 3-axis gyroscope and 3-axis accelerometer housed on a development board ready for prototyping.

## Pricing

- **Price:** $4.60 (inc GST) — $4.18 AUD, exc GST
- **Quantity discounts:** 10+ $3.76 (exc GST) · 50+ $3.55 (exc GST)

## Availability & dispatch

- In stock, ships same business day if ordered before 2PM (Australia/Sydney).
- We can dispatch 192 today; more stock is typically available with a 8–12 day lead time.

## Description

A 3-axis gyroscope and 3-axis accelerometer are housed on a development board ready for prototyping. Check out the GitHub repository linked below for setting up this sensor with appropriate libraries.

**Note: Soldering required - the headers come loose in the bag.**

**Features :**

- MPU 6050 Motion Sensor module with integrated 3-axis gyroscope, 3-axis accelerometer
- Chip: MPU-6050
- Onboard power regulator
 
**Specifications:**

- Two addresses, Default 0x68, Swap to 0x69 by shorting the ADR pin to 3.3V
- Power supply: 3V-5V
- Logic Level: 3.3V - For use on an Arduino or another dev board with 5V logic use a [logic level converter](https://core-electronics.com.au/logic-level-converter-bidirectional.html)
- Configurable gyroscope range: + 250, 500, 1000, 2000 ° / s
- Configurable acceleration range: ± 2, ± 4, ± 8, ± 16 g
- Dimensions: 21mm x 16mm
 
**Downloads:**

- [MPU-6050 Datasheet](https://core-electronics.com.au/attachments/localcontent/MPU-6050_DataSheet_V34_14872bbfb20.pdf)
- [Arduino Libraries for setup](https://github.com/jarzebski/Arduino-MPU6050)
 
### Examples

#### Raspberry Pi Pico - Micropython

Library: [https://github.com/micropython-IMU/micropython-mpu9x50/blob/master/README\_MPU9150.md](https://github.com/micropython-IMU/micropython-mpu9x50/blob/master/README_MPU9150.md)

 ```
from imu import MPU6050
from time import sleep
from machine import Pin, I2C

import math

i2c = I2C(0, sda=Pin(8), scl=Pin(9), freq=400000)
imu = MPU6050(i2c)

while True:
    ax=round(imu.accel.x,2)
    ay=round(imu.accel.y,2)
    az=round(imu.accel.z,2)
    gx=round(imu.gyro.x)
    gy=round(imu.gyro.y)
    gz=round(imu.gyro.z)
    tem=round(imu.temperature,2)
        
    pitch = math.atan2(ax,az)
    roll = math.atan2(ay,az)
    
    print("Pitch",pitch,"/t","Roll",roll)
    
    # Uncomment line below to show acceleration
#     print("ax",ax,"\t","ay",ay,"\t","az",az)
    
    # Uncomment line below to show acceleration
#     print("gx",gx,"\t","gy",gy,"\t","gz",gz)

    sleep(0.2)
    

```

## Guides for this product

- [Getting Started With Inertial Measurement Units \| Exploring Degrees Of Freedom](https://core-electronics.com.au/guides/sensors/getting-started-with-inertial-measurement-units-exploring-degrees-of-freedom/)

## Videos for this product

- [Getting Started With Inertial Measurement Units \| Exploring Degrees Of Freedom](https://core-electronics.com.au/videos/getting-started-with-inertial-measurement-units-exploring-degrees-of-freedom)

## Images

- [Product image 1](https://core-electronics.com.au/media/catalog/product/d/e/device13_1000.jpg)
