Skip to content

Instantly share code, notes, and snippets.

@turbinenreiter
Created June 15, 2013 14:39
Show Gist options
  • Save turbinenreiter/5788356 to your computer and use it in GitHub Desktop.
Save turbinenreiter/5788356 to your computer and use it in GitHub Desktop.
Python script to visualize the data from the MPU6050.
import numpy as np
from pylab import *
acc = []
with open('data') as f:
data = f.readlines()
for value in data:
value_acc = ((int(value))-128)/30.0
acc.append(value_acc)
plt.plot(acc)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment