All Projects → m-rtijn → Mpu6050

m-rtijn / Mpu6050

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

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Mpu6050

Omxiv
OpenMax image viewer for the Raspberry Pi
Stars: ✭ 175 (-0.57%)
Mutual labels:  raspberry-pi, raspberrypi
Rpi Magicmirror Eink
MagicMirror on 7.5 ePaper Waveshare Display with a Raspberry Pi
Stars: ✭ 136 (-22.73%)
Mutual labels:  raspberry-pi, raspberrypi
Yahm
Yet Another Homematic Management - Skripte zur Einrichtung der Homematic CCU Oberfläche in einem LXC Container unter Debian Jessie auf ARM CPU (z.B.: Raspberry Pi & Co)
Stars: ✭ 113 (-35.8%)
Mutual labels:  raspberry-pi, raspberrypi
Core
Ultibo Core
Stars: ✭ 102 (-42.05%)
Mutual labels:  raspberry-pi, raspberrypi
E paper weather display
Raspberry Pi weather display using Waveshare e-paper display and Open Weather Map API
Stars: ✭ 159 (-9.66%)
Mutual labels:  raspberry-pi, raspberrypi
Create
Software for the HifiBerry/BeoCreate Re-Create project for upcycling vintage loudspeakers
Stars: ✭ 103 (-41.48%)
Mutual labels:  raspberry-pi, raspberrypi
Gumcp
Web Control Panel for Raspberry Pi
Stars: ✭ 124 (-29.55%)
Mutual labels:  raspberry-pi, raspberrypi
Balena Sound
Build a single or multi-room streamer for an existing audio device using a Raspberry Pi! Supports Bluetooth, Airplay and Spotify Connect
Stars: ✭ 1,306 (+642.05%)
Mutual labels:  raspberry-pi, raspberrypi
Pishrink
Make your pi images smaller!
Stars: ✭ 2,255 (+1181.25%)
Mutual labels:  raspberry-pi, raspberrypi
Openauto
AndroidAuto headunit emulator
Stars: ✭ 1,926 (+994.32%)
Mutual labels:  raspberry-pi, raspberrypi
Wifimeshraspberrypi
Workshop to create a sensor application over a WiFi Mesh network
Stars: ✭ 99 (-43.75%)
Mutual labels:  raspberry-pi, raspberrypi
Spypi
An (un-)ethical hacking-station based on Raspberry Pi and Python
Stars: ✭ 167 (-5.11%)
Mutual labels:  raspberry-pi, raspberrypi
Nwjs rpi
[NW.js port for Raspberry Pi] binary compiled for the ARMv6 used in Raspberry Pi (compatible with RPi 2 and RPi 3)
Stars: ✭ 91 (-48.3%)
Mutual labels:  raspberry-pi, raspberrypi
Rpi Tempruntime
基于树莓派3B,DHT11/DHT22,LCD1602的一个实时温度湿度检测系统
Stars: ✭ 109 (-38.07%)
Mutual labels:  raspberry-pi, raspberrypi
Gpiozero
A simple interface to GPIO devices with Raspberry Pi
Stars: ✭ 1,302 (+639.77%)
Mutual labels:  raspberry-pi, raspberrypi
Crankshaft
Crankshaft: A turnkey GNU/Linux solution that transforms a Raspberry Pi to an Android Auto head unit.
Stars: ✭ 1,703 (+867.61%)
Mutual labels:  raspberry-pi, raspberrypi
Inkyshot
Get a daily random inspirational quote delivered direct to your desk with Inkyshot. Build multiple Inkyshots and share the inspiration with your friends, family and loved ones ❤️
Stars: ✭ 72 (-59.09%)
Mutual labels:  raspberry-pi, raspberrypi
Docker Jdownloader
JDownloader 2 Docker Image (Multiarch) - Passed 40M Downloads
Stars: ✭ 85 (-51.7%)
Mutual labels:  raspberry-pi, raspberrypi
Piadvanced
This started as a custom install for my pihole!
Stars: ✭ 144 (-18.18%)
Mutual labels:  raspberry-pi, raspberrypi
Aasdk
Library to build AndroidAuto headunit emulator
Stars: ✭ 167 (-5.11%)
Mutual labels:  raspberry-pi, raspberrypi

mpu6050

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

Example

Assuming that the address of your MPU-6050 is 0x68, you can read read accelerometer data like this:

::

>>> from mpu6050 import mpu6050

>>> sensor = mpu6050(0x68)

>>> accelerometer_data = sensor.get_accel_data()

Dependencies

Either the python-smbus or python3-smbus package, according to your Python version.

Installation

There are two ways of installing this package: via PyPi or via the git repository. Installing from the git repository insures that you have the absolute latest version installed, but this can be prone to bugs.

  1. install the python-smbus package ::

    sudo apt install python3-smbus

2a. Install this package from PyPi repository ::

pip install mpu6050-raspberrypi

Or:

2b. Clone the repository and run setup.py ::

git clone https://github.com/Tijndagamer/mpu6050.git
python setup.py install

Issues & Bugs

Please report any issues or bugs here:

https://github.com/Tijndagamer/mpu6050/issues

License

::

Copyright (c) 2015, 2016, 2017, 2018 Martijn (MrTijn) and contributors
Licensed under the MIT License. For more information, see ``LICENSE``.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].