Forums > MaxMSP

Arduino -> MAX/Msp help needed!

March 1, 2012 | 1:56 am

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

March 1, 2012 | 3:02 am

is it analog or digital sensor


March 1, 2012 | 3:52 am

Sorry, its a digital sensor in the Rx port.


March 1, 2012 | 4:23 am

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


March 1, 2012 | 8:37 am

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!


March 1, 2012 | 8:54 pm

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

Viewing 6 posts - 1 through 6 (of 6 total)