Arduino - COM Port Problem

mathieulesourd@yahoo.co.uk's icon

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

Francois Weber's icon

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

mathieulesourd@yahoo.co.uk's icon

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

David Beaudry's icon

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