Skip to content

Instantly share code, notes, and snippets.

View jacobrosenthal's full-sized avatar

Jacob Rosenthal jacobrosenthal

View GitHub Profile
@jacobrosenthal
jacobrosenthal / gist:4725502
Created February 6, 2013 20:27
Solenoid Test Arduino Sketch - really just a bit banged low frequency generator
int pin = 13;
int duty = 10; //duty cycle in percent - more is .. VERY power hungry,
int start_freq = 1; //in hz if you don't want to sweep but want constant, set equal to end_freq
int end_freq = 10;// in hz
int num_taps = 5;
int wait = 0; //delay in MS between sweeps
void setup(){
pinMode(pin, OUTPUT);
Serial.begin(9600);
@jacobrosenthal
jacobrosenthal / gist:7523040
Created November 18, 2013 05:36
IOS Firmata log for issue #2
2013-11-17 22:29:55.307 iosFirmata[33915:907] CoreBluetooth[WARNING] <CBConcreteCentralManager: 0x1f5e4a60> is not powered on
2013-11-17 22:29:55.452 iosFirmata[33915:907] No stored array to load
2013-11-17 22:29:56.740 iosFirmata[33915:907] serviceDidChangeStatus from ViewController
2013-11-17 22:29:56.741 iosFirmata[33915:907] Service (Xadow BLE Slave) connected
2013-11-17 22:29:57.358 iosFirmata[33915:907] discovered characteristic Unknown (<fff1>)
2013-11-17 22:29:57.360 iosFirmata[33915:907] Discovered Read Characteristic
2013-11-17 22:29:57.362 iosFirmata[33915:907] discovered characteristic Unknown (<fff2>)
2013-11-17 22:29:57.363 iosFirmata[33915:907] Discovered Write Characteristic
2013-11-17 22:29:58.040 iosFirmata[33915:907] reportFirmware bytes in hex: <f0fff7>
2013-11-17 22:29:58.042 iosFirmata[33915:907] analogMappingQuery bytes in hex: <f069f7>
@jacobrosenthal
jacobrosenthal / gist:7524172
Created November 18, 2013 07:53
iosFirmata parser data dump 2 for issue #2
2013-11-18 00:49:55.014 iosFirmata[34716:907] CoreBluetooth[WARNING] <CBConcreteCentralManager: 0x1d5b4350> is not powered on
2013-11-18 00:49:55.152 iosFirmata[34716:907] No stored array to load
2013-11-18 00:49:56.264 iosFirmata[34716:907] serviceDidChangeStatus from ViewController
2013-11-18 00:49:56.265 iosFirmata[34716:907] Service (Xadow BLE Slave) connected
2013-11-18 00:49:56.429 iosFirmata[34716:907] discovered characteristic Unknown (<fff1>)
2013-11-18 00:49:56.430 iosFirmata[34716:907] Discovered Read Characteristic
2013-11-18 00:49:56.432 iosFirmata[34716:907] discovered characteristic Unknown (<fff2>)
2013-11-18 00:49:56.433 iosFirmata[34716:907] Discovered Write Characteristic
2013-11-18 00:49:57.123 iosFirmata[34716:907] reportFirmware bytes in hex: <f0fff7>
2013-11-18 00:49:57.125 iosFirmata[34716:907] analogMappingQuery bytes in hex: <f069f7>
var util = require('util');
var stream = require('stream');
var SEND_INTERVAL = 500;
var CHECK_INTERVAL = 50;
function sendLoop(ssp){
var delta = Date.now() - ssp.lastCheck;
ssp.lastCheck = Date.now();
@jacobrosenthal
jacobrosenthal / gist:85f1adb4cd056ae03671
Created May 9, 2014 21:00
Good Skynet connection log
Connecting TCP
POST /socket.io/1/ HTTP/1.1
Host: skynet.im
HTTP/1.1 200 OK
Content-Type: text/plain
Date: Fri, 09 May 2014 20:58:52 GMT
Connection: keep-alive
Transfer-Encoding: chunked
GET /socket.io/?EIO=3&transport=polling&t=1403805269554-0&b64=1 HTTP/1.1
User-Agent: node-XMLHttpRequest
Accept: */*
Host: 192.168.112.21:3000
Connection: close
HTTP/1.1 200 OK
Content-Type: text/plain; charset=UTF-8
Content-Length: 100
Access-Control-Allow-Origin: *
GET /socket.io/?EIO=3&transport=polling&t=1403806279775-0&b64=1 HTTP/1.1
User-Agent: node-XMLHttpRequest
Accept: */*
Host: 192.168.112.21:3000
Connection: close
HTTP/1.1 200 OK
Content-Type: text/plain; charset=UTF-8
Content-Length: 100
Access-Control-Allow-Origin: *
GET /socket.io/?EIO=3&transport=polling&t=1403806716116-0&b64=1 HTTP/1.1
User-Agent: node-XMLHttpRequest
Accept: */*
Host: 192.168.112.21:3000
Connection: close
HTTP/1.1 200 OK
Content-Type: text/plain; charset=UTF-8
Content-Length: 100
Access-Control-Allow-Origin: *
l“ú
Ǣ–t
---------------------------
SparkFun CC3000 - Ping Test
---------------------------
Sending:
0
0
0
0
---------------------------
SparkFun CC3000 - Ping Test
---------------------------
Sending:
0
0
0
0
0