Skip to content

High-Frequency MPU6050 Implementation using Register Access

Notifications You must be signed in to change notification settings

rasisbuldan/mpu6050-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpu6050-lib

MPU6050 Python Implementation spinoff using smbus to provide device register read/write, hopefully faster reading on acceleration value.

Usage

import mpu6050

mpu = mpu6050.MPU6050(i2c_addr=0x68, g_range='2g', sample_rate='1000')

# Flat trim offset value
mpu.reset_offset()

# Get acceleration data
mpu.get_accel_data() # return acceleration value tuple (x,y,z)

Benchmark

Initial version of this library on a par with Adafruit MPU6050 CircuitPython Library shown by this sequential read of acceleration value. Not bad. Test conducted using Raspberry Pi 3B+ - python 3.7.3 - I2C. Starting Dark Mode

To do

  • Implement FIFO buffer for consistent throughput

About

High-Frequency MPU6050 Implementation using Register Access

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages