Forums > MaxMSP

two arduino BT interfacing with Max/MSP

Apr 10 2010 | 4:21 pm

I am trying to get two arduino BT interfacing with max/MSP independently.
I have changed and uploaded a firmata which gives each an individual name.
and also uploaded the Arduino4Max code.
After creating a abstraction (based on the Aruino4max example) for each of the Arduino BT’s, I can connect and use each of them separately, but not simultaneously. most strangely I had it working a couple of times, but only after reloading the patches and changing ports several times. There is no apparent sequence to make it work, most of the times I do not get it to work.

When loading the serial object and connecting to one arduino, the attempt to connect to the other (with a second serial object) seems to focus on the first arduino, despite selecting the port of the second! So very strange and erratic behaviour. When only loading one serial and connecting to one Arduino BT, everything works fine.

Any ideas? Not sure where to look, cannot find any other posts of Max users using two or more arduino BT.



Apr 13 2010 | 11:31 am

update on the problem above: after creating a separate standalone to access the serial of each ArduioBT separately, i got it to work. So i have a reliable workaround.

Is there an issue with the serial object when more than one single object is used at a time?


Apr 20 2010 | 2:23 pm

Hey Sebastian, was just wondering what you meant by a standalone to access the serials?
I’m having a similar problem and wondering round about how your solved it.



Apr 21 2010 | 5:26 am

I created two patches to send the arduino data (essentially a version of the Arduino4Max max help file) as a list over the network (using udpsend with IP and a unique part number i.e. 7400 and 7401 for each patch).

As far as i can tell there seems to be an issue of the serial object – arduinoBT communication if another serial is set to link to another arduinoBT. In any way it looks as if only one serial can correspond correctly with one arduino BT per Max/MSP application. Therefore I created a standalone application out of each of the two patches, which can be opened independently. I use the ‘regular’ Max application to receive the data over the network ports (udpreceive) to develop the necessary patches. I do not know whether the problems I encountered could be rectified by writing and uploading different firmata onto the ArduinoBT, or whether there is a problem with the serial object – bluetooth connection. I was happy enough to discover this workaround.

Hope his helps


Apr 22 2011 | 5:35 pm

Hi Sebastian,

I’m trying to do the same thing though using Bluesmirf. Right now I’m trying to connect two Bluesmirfs to MAX/MSP and am running into the same issues you were running into. Is there anyway you could share the standalone patches you created? I imagine it looks something like this:

-- Pasted Max Patch, click to expand. --

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

Forums > MaxMSP