Skip to content

Instantly share code, notes, and snippets.

View scspaeth's full-sized avatar

Stephen Spaeth scspaeth

View GitHub Profile
@scspaeth
scspaeth / gist:7babc28c8acdf34226f1
Created February 18, 2016 15:26
GravAccStandWOW2016-02-18
Timestamp,GravAcc_X,GravAcc_Y,GravAcc_Z
0.055797,0.000000,0.000000,0.000000
0.101071,0.000000,0.000000,0.000000
0.159338,0.000000,0.000000,0.000000
0.200812,0.000000,0.000000,0.000000
0.250776,0.000000,0.000000,0.000000
0.300691,0.000000,0.000000,0.000000
0.350532,0.000000,0.000000,0.000000
0.400971,0.000000,0.000000,0.000000
0.451562,0.000000,0.000000,0.000000
@scspaeth
scspaeth / GyroStationary2015_12-21Wheel.csv
Last active February 7, 2016 18:38
Gyro during Stationary 2015-12-21 095509
Timestamp RotRate_X RotRate_Y RotRate_Z
0.053121 0.014048 -0.019051 -0.009504
0.100730 0.014048 -0.019051 -0.009504
0.150457 0.014048 -0.019051 -0.009504
0.200748 0.014048 -0.019051 -0.009504
0.250580 0.014048 -0.019051 -0.009504
0.300492 0.014048 -0.019051 -0.009504
0.351312 0.014048 -0.019051 -0.009504
0.400702 0.014048 -0.019051 -0.009504
0.451459 0.014048 -0.019051 -0.009504
@scspaeth
scspaeth / GyroAccDnDrivePushUp
Last active February 6, 2016 16:39
2016-1-2 GyroAccDnDrivePushUp; Originally saved from Plot.ly after calculating displacement and acceleration from RotRate_Z but formatted in exponential notation. This copy loaded directly from Sensor Data file exported, viewed in text editor, copied and pasted into Gist. Easier Starts with a couple of seconds of phone with +Y pointed down. Then…
Timestamp,Accel_X,Accel_Y,Accel_Z,RotRate_X,RotRate_Y,RotRate_Z
0.084835,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000
0.102788,-0.101898,1.005478,-0.144867,0.000000,0.000000,0.000000
0.150715,-0.113846,0.983627,-0.110275,0.000000,0.000000,0.000000
0.200472,-0.122955,0.991974,-0.104660,0.000000,0.000000,0.000000
0.251248,-0.098648,0.992050,-0.087921,0.000000,0.000000,0.000000
0.300888,-0.074432,0.994156,-0.068207,0.000000,0.000000,0.000000
0.350306,-0.086243,0.998596,-0.071594,0.000000,0.000000,0.000000
0.401218,-0.041626,0.999619,-0.069138,0.000000,0.000000,0.000000
0.451134,-0.079926,1.010071,-0.083420,0.000000,0.000000,0.000000
@scspaeth
scspaeth / gyroDataDr2Bridge
Last active December 30, 2015 15:26
Gyro Data: ride from Dr. up to Bridge St. at 20 Hz using Sensor Data app on an iPhone; serves as a test set for snap.berkeley analysis using gist.github as a CORS compliant data store.
Timestamp,RotRate_X,RotRate_Y,RotRate_Z
0.054770,0.197505,-0.005547,-0.006501
0.100896,0.197505,-0.005547,-0.006501
0.150811,0.197505,-0.005547,-0.006501
0.200300,0.197505,-0.005547,-0.006501
0.251025,0.197505,-0.005547,-0.006501
0.300500,0.197505,-0.005547,-0.006501
0.351265,0.197505,-0.005547,-0.006501
0.400730,0.197505,-0.005547,-0.006501
0.451365,0.197505,-0.005547,-0.006501
@scspaeth
scspaeth / map.geojson
Last active December 30, 2015 20:31
Data collected with Garmin Forerunner 405, transferred to Garmin Connect, exported to GPX, translated using GeoJson tools and saved as this Gist.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scspaeth
scspaeth / JSONPSensorServer.ino
Created September 5, 2012 18:36 — forked from sfentress/JSONPSensorServer.ino
Arduino Server for JSON-P analog pin values A0 - A5
/*
Web Server returning data as JSON-P, adapted from http://arduino.cc/en/Tutorial/WebServer
A simple web server that returns the value of the analog input pins as
a JSON-P object, using an Arduino Wiznet Ethernet shield.
Circuit:
* Ethernet shield attached to pins 10, 11, 12, 13 (standard configuration)
* Analog inputs attached to pins A0 through A5 (optional)
* Example of reading LM35 on pin A0: