Forums > MaxMSP

Arduino – COM Port Problem

June 6, 2009 | 7:43 am

Hello,

I am having some problems to connect arduino to max/msp.
I use arduino2max patch on XP. MAX detect well my port number (COM3 appears on the pull down menu) but doesn’t let me connect to it – "specified port not available". I try to restart but still the same problems.
I also use the serial object, and any other patch that can read the datas from Arduino, and they all give me the same problems. I think it’s a COM port problems, it seems that my com port keep busy.
Anyone had a similar problems ?

Thanks and regards.

Mathieu


June 6, 2009 | 8:58 am

Sound like a bad baud rate …
You must have same rate, like that :

Max serial object :
[serial d 9600]

arduino :

void setup()
{
// start serial port at 9600 bps:
Serial.begin(9600);
}

_____________
fxw


June 11, 2009 | 6:19 am

Thanks a lot it ‘s working fine now.

Just one more things..
My serial reader patch doesn’t read my arduino when I switch on my computer. I need to reopen the arduino environment reload the code and then open max , so it can start to read the values..

Any function to be added?

Many Thanks.

Mathieu


June 11, 2009 | 3:22 pm

I think it depends on the age and/or model of the arduino, but you might need to hit the reset button before the arduino will send data to max. Still not ideal, but easier than your current method. See if that helps at all.

David


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