connect MAX and Arduino

Jun 28, 2010 at 5:58pm

connect MAX and Arduino

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?

#51101
Jun 28, 2010 at 8:09pm

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!

#183326
Jun 28, 2010 at 8:16pm

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
#183327
Jun 28, 2010 at 8:27pm

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

#183328
Jun 28, 2010 at 9:02pm

it works!
thanks

#183329

You must be logged in to reply to this topic.