Skip to main content

A package to handle the i2c communicationbetween a Raspberry Pi and a MPU-6050

Project description

#MPU-6050 Python

This program handles the I2C communication between a Raspberry Pi and a MPU-6050 Gyroscope/Accelerometer sensor.

For this program to work you need to have I2C enabled on your Raspberry Pi and you need to have the python-smbus package installed.

This project is available on pypi:


You can install this module by executing the following command:

sudo pip install mpu6050-raspberrypi


Using the module is quite straight-forward. You simply create an object of the mpu6050 class and use the appropriate methods to get your data.

The following methods are available to read sensor data:

`python get_accel_data() get_gyro_data() get_temp() `


This project is licensed under the MIT License. For the full license, please refer to the LICENSE file.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mpu6050-raspberrypi- (3.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page