connect MAX and Arduino

silverio's icon

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?

brendan mccloskey's icon

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!

silverio's icon

Excuse me, but i am newbie...

What object have i to initialize?

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.

730.Clipboard02.png
png
brendan mccloskey's icon

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

silverio's icon

it works!
thanks