Raspberry IMU datas visualiser
acc : adxl345
gyro : itg3200
magneto : qmc5883L
python3, pip3
smbus
Adafruit_GPIO
vpython(optional)
matplotlib
sudo raspi-config
-> interfaces = activate I2C
sudo raspi-config
-> Advanced Options -> GL Driver = Full KMS
python3 main.py [--v](vpython/OpenGL needed) [--o file.csv]
--v : vpython 3d box visualisation
--o : output data to csv file
import GY-85
import IMU
import time
imu = IMU(GY-85())
imu.start()
# let the thread start
time.sleep(0.5)
while True:
print(imu.values)
# Will print eternaly until "imu.stop = True"