Serial Graphing application for Max/MSP

This Max patch takes in serial data and graphs it. It’s useful for seeing the changes in an analog sensor. An Arduino code sample that works with it follows the patch.

To use the patch, copy the text and paste it into a new max patch window.

Thanks to David Mellis and Jamie Allen for the collaboration. These patches were written for a one-day Arduino workshop at NIME 07 hosted by the three of us. The Arduino program comes from the Arduino example files, by David Mellis.

Technorati Tags:


Continue reading “Serial Graphing application for Max/MSP”

Devantech SRF04 and 05 Ultrasonic Sensor

The Devantech SRF04 and SRF05 ultrasonic sensors are easy to use and reasonably accurate distance ranging sensors. To use them, you send the sensor s pulse of 10 microseconds on its INIT pin. Then the sensor sends out an ultrasonic pulse and waits for the pulse to bounce off something and return an echo. The sensor then pulses its ECHO pin. The length of the pulse in microseconds is proportional to the distance of the object from the sensor. The code below reads a Devantech sensor on an Arduino or Wiring module.

Continue reading “Devantech SRF04 and 05 Ultrasonic Sensor”