Arduino -> MAX/Msp help needed!

Mar 1, 2012 at 1:56am

Arduino -> MAX/Msp help needed!

Greetings

I need some advice on how i can pass data from my Arduino Uno board, which is hooked up to a brainwave sensor into max

So far, Data is coming into a digital pin, a library takes the raw byte data from the brainwave chip, and turns it into a ASCII string of comma-separated values which can be seen in the serial port view when on 9600. (this all works perfectly, and the data is coming in separated perfectly each meaning a different parameter)

i need some kind of serial input port object which i can then unpack but after tinkering around im not really getting far..

If any one knows of any other projects where data is coming into max/msp from arduino in this manner i would greatly appreciate your help!

i have attached a photo of the incoming data (if that helps at all to know what i am trying to pass into max)

- SMXC

[attachment=186802,3454]

Attachments:
  1. mindf.jpg
#62061
Mar 1, 2012 at 3:02am

is it analog or digital sensor

#224170
Mar 1, 2012 at 3:52am

Sorry, its a digital sensor in the Rx port.

#224171
Mar 1, 2012 at 4:23am

the aptly named serial object is what you’re looking for

#224172
Mar 1, 2012 at 8:37am

have you seen this on the playground? it use the for-mentioned serial object

http://arduino.cc/playground/Interfacing/MaxMSP

i use it and it works well!

#224173
Mar 1, 2012 at 8:54pm

Based on the included jpg, you are using a Mindlex with the Arduino, right? If so, I’ve got the patch you need. The empty outlets in the unpack object are the comma values. I never got around to labeling the individual int boxes. However, they follow the order displayed in the Arduino window.

You’ll most likely need to change your serial port in the patch. Open the Arduino subpatcher, and modify the serial object’s argument.

Hope this helps!

- Marc P.

Attachments:
  1. Brain.maxpat
#224174

You must be logged in to reply to this topic.