Skip to main content

A package to handle the i2c communication between 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.

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() `

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-1.0.3.1.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file mpu6050-raspberrypi-1.0.3.1.tar.gz.

File metadata

File hashes

Hashes for mpu6050-raspberrypi-1.0.3.1.tar.gz
Algorithm Hash digest
SHA256 07737c0702ebecde49f72a9a39ca80b333441fbfae787f7069c0e975b5786c9c
MD5 a50e5db2c95f01ddc8722143ba13873c
BLAKE2b-256 a102c99ae59f3e7e94238006f6d762729163e3566adc3c1e9f74b53741531bce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page