Skip to main content

py_imu_mpu6050

Inertial Measurement Unit (IMU) Driver based on on the MPU6050

Introduction

This module is able to communicate to the MPU6050 throught I2C. The hardware support is very wide since the code is using Adafruit-Blinka and adafruit-circuitpython-busdevice that provides neccesary configuration for different platform, as shown in the following list:

  • FEATHER_HUZZAH
  • NODEMCU
  • any_raspberry_pi_40_pin
  • any_raspberry_pi_cm
  • RASPBERRY_PI_A or RASPBERRY_PI_B_REV1
  • RASPBERRY_PI_B_REV2
  • BEAGLEBONE_BLACK
  • BEAGLEBONE_GREEN
  • BEAGLEBONE_BLACK_INDUSTRIAL
  • BEAGLEBONE_GREEN_WIRELESS
  • BEAGLEBONE_BLACK_WIRELESS
  • BEAGLEBONE_POCKETBEAGLE
  • ORANGE_PI_PC
  • ORANGE_PI_R1
  • ORANGE_PI_ZERO
  • ORANGE_PI_ONE
  • ORANGE_PI_PC_PLUS
  • ORANGE_PI_PC_PLUS
  • ORANGE_PI_PC_PLUS
  • ORANGE_PI_PC_PLUS
  • ORANGE_PI_PC_PLUS
  • ORANGE_PI_PC_PLUS
  • ORANGE_PI_PC_PLUS
  • ORANGE_PI_PC_PLUS
  • ORANGE_PI_LITE
  • ORANGE_PI_PLUS_2E
  • GIANT_BOARD
  • JETSON_TX1
  • JETSON_TX2
  • JETSON_XAVIER
  • JETSON_NANO
  • JETSON_NX
  • ODROID_C2
  • ODROID_N2
  • DRAGONBOARD_410C
  • BINHO_NOVA
  • MICROCHIP_MCP2221
  • SIFIVE_UNLEASHED
  • PINE64

Dependencies

This driver depends on:

"Adafruit-Blinka" "adafruit-circuitpython-busdevice" "adafruit-circuitpython-register"

The Hardware is the MPU6050

Installing from PyPI

On supported GNU/Linux systems like the RRaspberry pi, Beaglebone, Jetson Boards, etc. you can install the driver locally from PyPI. To install for current user:

pip3 install py-imu-mpu6050

To install system-wide (this may be required in some cases):

sudo pip3 install py-imu-mpu6050

To install in a virtual environment in your current project:

mkdir project-folder-name
cd project-folder-name
python3 -m venv .env
source .env/bin/activate
pip3 install py-imu-mpu6050

Usage Examples

See:

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Future

Add support to the magnetometer I2C device that can be connected at AUX_SCL and AUX_SDA pins

Metadata

Release files for py-imu-mpu6050 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-imu-mpu6050 0.3
File Size Uploaded
py-imu-mpu6050-0.3.tar.gz 11.8 kB Details

Release files / py-imu-mpu6050-0.3.tar.gz

Download URL py-imu-mpu6050-0.3.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
401cc834d383c1a41e67cd3208ea8fe3ac3723fc28a757ea34205826bb643692
BLAKE2b-256 checksum
How to use checksums
24a270677dcc08137098be25e1748d29400494b6e2a56ef652585427519c863a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.5.3

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page