Skip to content

Instantly share code, notes, and snippets.

View scspaeth's full-sized avatar

Stephen Spaeth scspaeth

View GitHub Profile
@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:
@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 / 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 / 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 / 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 / AccelGravAccGyro_20160106_112735.csv
Created February 23, 2016 16:37
Concurrent measurements of Accel, GravAcc, and RotRate for X,Y,Z for simple ride down drive and push back up.
Timestamp Accel_X Accel_Y Accel_Z GravAcc_X GravAcc_Y GravAcc_Z RotRate_X RotRate_Y RotRate_Z
0.177286 0.075897 0.996262 0.017441 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.202709 0.075897 0.996262 0.017441 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.251362 0.070450 1.002609 0.033127 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.300357 0.067444 0.985596 0.001282 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.351439 0.061539 0.994400 0.064743 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.400375 0.055954 0.997162 0.019745 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.451868 0.021286 0.997696 0.016602 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.501274 0.050949 1.009277 0.020508 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.550620 0.044067 0.996704 0.018356 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
@scspaeth
scspaeth / gist:4d7f1a985506730d99265e6e5a115f91
Created April 15, 2016 19:11
Historical Markers Database Map of the Old Connecticut Path. The HMDB allows you to make a query of their database to produce a map with corresponding marker numbers.
http://www.hmdb.org/map.asp?markers=0,44255,48017,93606,48793,48792,48306,52917,44070,83119,52695,43708,52439,43742,43743,74248,52432,52557,52620,52601,46179,46099,65721,28369,48817,48028
@scspaeth
scspaeth / OakStHillChallenge.geojson
Last active May 15, 2016 21:21
Transfer of data from myMaps.google version of my Oak Street Hill Challenge. Part of Woodside STEM mentoring at WOW and Fifth-grade project-based learning.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scspaeth
scspaeth / OldBostonTnpk.geojson
Last active June 7, 2016 00:36
Track of the Old Boston Turnpike that forms the boundary of the part of the Natchaug State Forest. Visual interpretation taken from satellite imagery at GeoJSON.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.