Created
June 15, 2013 14:39
-
-
Save turbinenreiter/5788356 to your computer and use it in GitHub Desktop.
Python script to visualize the data from the MPU6050.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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