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: https://pypi.python.org/pypi/mpu6050-raspberrypi/
#Installation
You can install this module by executing the following command:
sudo pip install mpu6050-raspberrypi
#Usage
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() `
#License
This project is licensed under the MIT License. For the full license, please refer to the LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for mpu6050-raspberrypi-1.0.3.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 517e018b4aa49190e5dc3894de275e8411533dfc641b65e7a4d5dc2867d42831 |
|
MD5 | 1c246198dae74aad3e75f1a8a3b7ae7d |
|
BLAKE2b-256 | d74d9f9416c2c56cd1b513e4d5517db9cb56d278e675198e0a6d835351c2077f |