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
// This code reads a signal from the HNC6352 in degrees and writes it to a SD card. It uses LED flashes to report success to writing and errors | |
//Necessary libraries | |
#include <Wire.h> | |
#include <SD.h> | |
// Setup the Compass I2C address | |
int HMC6352SlaveAddress = 0x42; | |
int HMC6352ReadAddress = 0x41; //"A" in hex, A command is: | |
int headingValue; |
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
// Maurice Ribble | |
// 6-28-2009 | |
// http://www.glacialwanderer.com/hobbyrobotics | |
// This takes data off the serial port and graphs it. | |
// There is an option to log this data to a file. | |
// I wrote an arduino app that sends data in the format expected by this app. | |
// The arduino app sends accelerometer and gyroscope data. |
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
// Processing_Display_Analog_Signal_Fuller.pde | |
// Graphing sketch for multiple analog signals | |
// This program takes ASCII-encoded strings from the serial port at 9600 baud | |
// and graphs them. It expects values in the range 0 to 1023, followed by a newline | |
// Version 19 Dec 2010 | |
// by Dr. Lynn Fuller, Professor, Microelectronic Engineering, Rochester Institute of Technology | |
// This code is in the public domain. | |
import processing.serial.*; | |
Serial myPort; // The serial port | |
int xPos = 1; // horizontal position of the graph |
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
/* | |
Read in five analog sensor values, send them out | |
as tab-delimited ASCCI-encoded decimal numbers, | |
ended by a carriage return and newline | |
created 15 Oct. 2007 | |
*/ | |
void setup() { | |
// iniaialize the serial port: |
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
/* | |
Serial Graphing Sketch | |
by Tom Igoe | |
Language: Processing | |
This sketch takes ASCII values from the serial port | |
at 9600 bps and graphs them. | |
The values should be comma-delimited, with a newline | |
at the end of every set of values. | |
The expected range of the values is between 0 and 1023. |
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
/**************************************** | |
Example Sound Level Sketch for the | |
Adafruit Microphone Amplifier | |
****************************************/ | |
const int sampleWindow = 50; // Sample window width in mS (50 mS = 20Hz) | |
unsigned int sample; | |
void setup() | |
{ |