Arduino + MAX/MSP

Quick links: SimpleMessageSystem Arduino2Max Firmata Maxduino


Max Communication Examples

These examples are written to interface with the communication examples in Arduino 0008. MaxCommunicationExamples



----

SimpleMessageSystem

SimpleMessageSystem is a library for the Arduino that allows you to send, receive and parse characters, integers and lists between Arduino and Max/Msp or Pure Data.

More detailed Max/Msp patch for SimpleMessageSystem: http://blog.soundsorange.net/index.php/archives/category/gear-hardware/

(Simple message system is a library, so you can use it to communicate pretty much any stream of numbers and characters. The example that ships with it is for reading/writing arduino in/outs, but you can adapt it to your needs. It is very flexible.)



Arduino2Max (Version .4)

Arduino2Max is a Max patch with accompanying Arduino code that allows you to read the Arduino's 12 digital and 6 analog pins in Max/MSP. To use it, first program the Arduino with the code included in the Arduino2Max zip archive (link below).

Next, copy the main patcher from the included MAX file:

The (new!*) pull-down menu shown above selects the serial port.Once this above patcher is started, you can receive an Arduino pin value by simply making a named receive object. Here's to to read the Arduino's analog pins:

... and here is how to read the digital pins:

Arduino2Max only reads the Arduino's inputs, although with some work serial writes would be possible. Feel free to improve on what you find here and repost it with a higher version number.

Arduino2Max, Version .40 October 30th, 2007 DOWNLOAD v .4

- You'll need MAX 4.5 or higher to run the included MAX patch.

- Works great on Intel Mac 1.83/OSX10.4/Diecimila/Freeduino/MAX4.5.

- Now includes a USB port pull-down menu; thanks to code by Seejay James!

- For those who like antiques, older versions are available on the attachments page.


----

Firmata

The interfacing developed orginally for PureData has been ported to MaxMSP as well. It does input and output, thus being more flexible then the Arduino2Max above, is however a bit harder to use.

Firmata

Maxduino

Maxduino is a port of PDuino for use on MAX.