Skip to content
forked from m-rtijn/mpu6050

A Python module for accessing the MPU-6050 digital accelerometer and gyroscope on a Raspberry Pi.

License

Notifications You must be signed in to change notification settings

sslayer/mpu6050

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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:

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.

About

A Python module for accessing the MPU-6050 digital accelerometer and gyroscope on a Raspberry Pi.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%