Monthly Archives: June 2006
PDuino
Hans Steiner, God of PD/USB and a darn nice guy, has released PDuino: Here’s the first test release of Pduino, a Pd firmware for Arduinoand a matching Pd object, [arduino]. This allows you get data from the digital and analog inputs, and send data to the PWM and digital outputs. Continue reading
basic GPS/NMEA 0183 reader in Processing
For more on GPS and NMEA, see the NMEA FAQ: http://vancouver-webpages.com/peter/nmeafaq.txt by Tom Igoe created 1 June 2006 */ import processing.serial.*; int linefeed = 10; // linefeed in ASCII int carriageReturn = 13; // carriage return in ASCII Serial myPort; // The serial port int sensorValue = 0; // the value from the sensor float latitude = 0.0; // the latitude reading in degrees String northSouth; // north or south?… myPort = new Serial(this, Serial.list()[0], 4800); // read bytes into a buffer until you get a linefeed (ASCII 13): myPort.bufferUntil(carriageReturn); } void draw() { // not doing anything here } /* serialEvent method is run automatically by the Processing applet whenever the buffer reaches the byte value set in the bufferUntil() method in the setup(): */ void serialEvent(Serial myPort) { // read the serial buffer: String myString = myPort.readStringUntil(linefeed); // if you got any bytes other than the linefeed: if (myString != null) { // parse the string: parseString(myString); } } /* parseString takes the string and looks for the $GPGLL header. Continue reading