Skip to content

Instantly share code, notes, and snippets.

View michelleboisson's full-sized avatar

Michelle Boisson michelleboisson

View GitHub Profile
@michelleboisson
michelleboisson / Grameen-Foundation.R
Created December 5, 2012 02:54
Data Without Borders Final Exploration
#Final Data Exploration
#Grameen Foundation, CKWs
ix.data = read.csv("/Users/michelleboisson/Documents/ITP/* Data without Borders/final/search_logs.csv", header=TRUE, as.is=TRUE)
head(ix.data)
dim(ix.data)
#[1] 334718 11
ckws = read.csv("/Users/michelleboisson/Documents/ITP/* Data without Borders/final/ckw.csv", header=TRUE, as.is=TRUE)
head(ckws)
@michelleboisson
michelleboisson / DigitalCompass.ino
Created December 19, 2012 05:25
Code for Compass Module test
//This reads the heading from HMC6352, spit it out via serial and lights up 1-2 lights to show North
//HMC6352 compass is hooked up this way: SDA is on analog input pin 4, and SCL is on analog pin 5
#include <Wire.h>
int HMC6352SlaveAddress = 0x42;
int HMC6352ReadAddress = 0x41; //"A" in hex, A command is:
int headingValue;
int EPin = 13;//east
@michelleboisson
michelleboisson / CompassBracelet.ino
Created December 19, 2012 05:36
This reads the heading from HMC6352, reads your current location (hardcoded), and your destination (hardcoded), and turns the pin high pointing to your destination
//Compass Bracelet GPS
//This reads the heading from HMC6352, reads your current location (hardcoded),
//and your destination (hardcoded), and turns the pin high pointing to
//your destination
//HMC6352 compass is hooked up this way: SDA is on analog input pin 4, and SCL is on analog pin 5
//To customize, change destinationLat, destinationLon, currentLat, currentLon
#include <SoftwareSerial.h>