Accessing MPU-6050 on Raspberry Pi using Python to get temperature, accelerometer and gyroscope data.
sudo apt install python3-smbus
pip install mpu6050-raspberrypi
Python3 mpu_6050.py
- https://pypi.org/project/mpu6050-raspberrypi/
- The library used in this code is written by https://github.com/m-rtijn/mpu6050/