MPU6050 Sensor module
MPU6050 6-DoF Accelerometer and Gyro module for Micropython
Loading...
Searching...
No Matches
mpu6050.py File Reference

Micropython module for the MPU6050 6-DoF sensor. More...

Classes

class  MPU6050.AccelRange
 Accelerometer measurement range. More...
class  MPU6050.FilterBandwidth
 Digital Low Pass Filter bandwidth. More...
class  MPU6050.GyroRange
 Gyroscope measurement range. More...
class  MPU6050
 Driver class for the MPU6050 sensor. More...

Namespaces

namespace  mpu6050

Variables

float SENSORS_GRAVITY_STANDARD = 9.80665
 Standard gravity for conversion to m/s^2.
Register Map
int _MPU6050_ACCEL_CONFIG = 0x1C
 Accelerometer Configuration register.
int _MPU6050_ACCEL_OUT = 0x3B
 Base address for accelerometer data registers.
int _MPU6050_CONFIG = 0x1A
 Configuration register.
int _MPU6050_DEFAULT_ADDR = 0x68
 Default I2C address.
int _MPU6050_DEVICE_ID = 0x68
 Device ID stored in WHO_AM_I register.
int _MPU6050_GYRO_CONFIG = 0x1B
 Gyroscope Configuration register.
int _MPU6050_GYRO_OUT = 0x43
 Base address for gyroscope data registers.
int _MPU6050_PWR_MGMT_1 = 0x6B
 Power Management 1 register.
int _MPU6050_SMPLRT_DIV = 0x19
 Sample Rate Divider register.
int _MPU6050_TEMP_OUT = 0x41
 Base address for temperature data registers.
int _MPU6050_WHO_AM_I = 0x75
 WHO_AM_I register, contains device ID.

Detailed Description

Micropython module for the MPU6050 6-DoF sensor.

This module provides a class to interface with the MPU6050 accelerometer and gyroscope sensor over I2C.

Author
Adafruit (Original C++ library)
Gemini (Micropython conversion)
Date
August 2, 2025
Version
1.1