Forums > MaxMSP

connect MAX and Arduino

June 28, 2010 | 5:58 pm

Hi.

I am trying to connect MAX/MSP with arduino, but i continuously get the error (On MAX) "serial port not available".

What is wrong?

The steps i did:
1. Load "dimmer" example to arduino (and upload to board)
2. paste the MAX code that is commented inside this example in a new MAX patch (run)

i get MAX message:

serial: specified port not available

but everything seems ok. (serial port=COM3, is a PC workstation plataform)

When i run "dimmer" with proccesing IDE, everything works fine.

Any idea i am missing?


June 28, 2010 | 8:09 pm

Is the [serial] object in Max being ‘polled’, by a [metro] which needs initialized – toggle on? I believe you can also send the [serial] object a "print" message to view available ports; but the way I got my [serial] object to see the correct port (Vista/Intel/Athlon) was to send it (port a), (port b), (port c) etc messages, until I found the right one – but don’t try this yourself until you get some more refined suggestions from the forum!


June 28, 2010 | 8:16 pm

Excuse me, but i am newbie…

What object have i to initialize?

[attachment=135729,730]

If i print a list of serial port available it prints "COM3". That’s fine.
If a execute open serial port i get the error.

Attachments:
  1. Clipboard02.png

June 28, 2010 | 8:27 pm

Oh, this patch doesn’t need a [metro], sorry; change the "port a" message to "port c"


June 28, 2010 | 9:02 pm

it works!
thanks


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