Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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