Processing demo of listen to your gut

Here is the link for ROY demo of processing sketch for listen to your gut.MOV:

http://www.youtube.com/watch?v=AwGrFmp-uWk&feature=youtu.be

Processing demo of Listen to . . . → Read More: Processing demo of listen to your gut

All Actions Are Theory-Laden

It’s been awhile, but thankfully I took some notes which led me to recall this powerful assertion from David Deustch – who’s work in physics led him to encourage a “multiple parallel worlds” investigation of quantum theory. Here he talks a bit about perception and testable observation en route to explanation:

“But what creationist and empiricists both . . . → Read More: All Actions Are Theory-Laden

The Obvious Unnoticed

This week I wanted to quantify my breathing using a stretch sensor + Arduino.

 

I set up the sensor using some alligator clips, stringing the conductive elastic around my ribcage to get an analog read correlating to lung expansion. Once I had consistent serial reads, I used Processing to graph my breath, and watched contentedly as my . . . → Read More: The Obvious Unnoticed

Word Frequency Across Files

int numberOfPeople;
int numberOfYears;
ArrayList names = new ArrayList();
ArrayList reSortable= new ArrayList( ) ;
; //array that gets resorted by person or by year
int yearOrPerson = 0; //0 is year 1 is person
int focus = 15;
TreeMap wordObjects = new TreeMap(); //words in alphabetical order
static int sortBy = 0;
static int BY_YEAR = 1;
static int BY_TOTAL = 0;
int . . . → Read More: Word Frequency Across Files

Kinect WhatAreYouCovering

<code>

/* ————————————————————————–
* SimpleOpenNI User Test
* ————————————————————————–
* Processing Wrapper for the OpenNI/Kinect library
* http://code.google.com/p/simple-openni
* ————————————————————————–
* prog: Max Rheiner / Interaction Design / zhdk / http://iad.zhdk.ch/
* date: 02/16/2011 (m/d/y)
* —————————————————————————-
*/

import SimpleOpenNI.*;

SimpleOpenNI context;

String whatAreYouCovering = “”;

void setup()
{
context = new SimpleOpenNI(this);

// enable depthMap generation . . . → Read More: Kinect WhatAreYouCovering

Simple Grapher

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Date;

import processing.core.PApplet;
import processing.serial.Serial;

public class FileGrapher extends PApplet {

public void setup() {
size(800, 600); // Stage size
noStroke(); // No border on the next thing drawn
// Print a list of the serial ports, for debugging purposes to find out what your ports are called:
String[] dataLines = loadStrings(“logi.txt”);
int numOfLines = dataLines.length;
long[] times = new long[numOfLines];
int[] hearts = . . . → Read More: Simple Grapher

Processing for Android for Connecting to BT and Writing File

/**
* BtSerial Serial display
Lists paired devices and connects to the first one on the list.
Displays an incoming string from the serial connection.
If it gets a newline, it clears the string

Not working yet.

created 27 June 2011
modified 3 July 2011
by Tom Igoe

tweeked by dano . . . → Read More: Processing for Android for Connecting to BT and Writing File

Bluetooth Data from Arduino to Android

Processing for Android

<code>

<pre>

/**
* BtSerial  Serial display
Lists paired devices and connects to the first one on the list.
Displays an incoming string from the serial connection.
If it gets a newline, it clears the string

created 27 June 2011
modified 3 July 2011
by Tom Igoe
tweaked by dano to add graphing
*/

import cc.arduino.btserial.*;

//For GUI
String[] fontList;
PFont androidFont;
// instance of the library:
BtSerial bt;
String inString = . . . → Read More: Bluetooth Data from Arduino to Android

Single Sensor as Byte from Analog In to Processing

/*
AnalogReadSerial
Reads an analog input on pin 0, prints the result to the serial monitor

This example code is in the public domain.
*/

void setup() {
Serial.begin(9600);
}

void loop() {
int sensorValue = analogRead(A0);
Serial.write(sensorValue);
delay(10);

}

Processing

//this is based on simple read example on processing.
import processing.serial.*; //includes serial library to . . . → Read More: Single Sensor as Byte from Analog In to Processing

MultiSensor Send, File and Show

Here is Arduino code for listening to a couple of sensors in formatting them and sending them to Processing. Then there is Processing code for listening for the serial data and writing to a file. It also parses the data and graphs it.

Arduino Side:

 

int breath ;
int light ;
int heat;
int sweat;
int posture;
int electricity;

void setup() {
Serial.begin(9600);
//  Serial.println(“Start”);
}

void loop() . . . → Read More: MultiSensor Send, File and Show