Forums > MaxMSP

trying to use Max Msp with the arduino Board

June 24, 2006 | 9:16 am

Dear Fellows of the Max/Msp room.
I have an USB serial Arduino Board, which I managed to
install in a IBM T41 laptop. I have found a Firmware called
PDuino which also should work for Max/Msp. The thing is that
so far nothing is happening, meaning that I do not get any serial comunication using the [serial] object, also my COMPORT that I am using is 11, that would be k and 9600 as arguments, right?
but no… no serial comunication what so ever.
Could you help me with any hints or ideas?? or even patches??.
This will be used for my Master Thesis project.
Best Regards to you all.


June 24, 2006 | 10:49 am

There is a bug in the serial object for Windows, preventing
communication with ports > 9. I will post an alleged fix to the
incremental updates page in the coming days.

jb

Am 24.06.2006 um 11:17 schrieb hugo ramirez:


June 26, 2006 | 11:03 am

I’ve uploaded a new version of "serial" for Windows to the incremental updates page. It appears to correct all known issues with that object on Windows.

http://www.cycling74.com/twiki/bin/view/IncrementalDownloads

jb


June 26, 2006 | 1:05 pm

hugo.

this may have been said already, but its pretty easy to make the
arduino send midi out of its tx port. just set the right baud rate,
format the 3 byte message and add a couple 220 ohm resistors to your
circuit and you can plug into existing midi connex.

with max, i find midi much more stable, fast, consistent and more fun
than [serial]…


June 26, 2006 | 2:31 pm

langdon my friend.
could you tell me exactly how to do it. Could you tell me
more details or even send me a small patch that at least I could get to ligth
an LED from the 13th pin and the GND pin, something like the hello world!!
of physical computing.
With extrem gratitude
hugo


June 26, 2006 | 2:42 pm

Quote: Jeremy Bernstein wrote on Mon, 26 June 2006 13:03
—————————————————-
> I’ve uploaded a new version of "serial" for Windows to the incremental updates page. It appears to correct all known issues with that object on Windows.
>
> http://www.cycling74.com/twiki/bin/view/IncrementalDownloads
>
> jb
—————————————————-

Jb!
where should I put the file, I put it in the externals foulder
but sadly… nothing happened. I am using the serial.help file to
run this so far, so I changed the k instead of a and the baud rate to 9600.
so could you tell me any hints?
regards and thanks
Hugo


June 26, 2006 | 2:44 pm

langdon my friend.
could you tell me exactly how to do it. Could you tell me
more details or even send me a small patch that at least I could get to ligth
an LED from the 13th pin and the GND pin, something like the hello world!!
of physical computing.
With extrem gratitude
hugo

Hugotrix


June 26, 2006 | 2:51 pm

I had this all working this morning with my basic stamp. If you send
the message "print" to the serial object, do you get a list of valid
ports? Are you seeing any errors in the Max window? Does the arduino
board require any special initialization? Is the board sending output
that you can see in other software? I don’t have one of these boards
to test with, but the stamp was working fine on port 12 for me.

jb


June 26, 2006 | 2:57 pm

oh. this is more of a physical computing thing than i thought you were
originally asking. please check out the recourse below, they have lots
of detailed instructables and blogs of students doing this very sort of
thing. they even have a mailing list for physical computing.

Phys Comp Home page: http://stage.itp.nyu.edu/physcomp

> an LED from the 13th pin and the GND pin, something like the hello
> world!!of physical computing.


June 26, 2006 | 3:09 pm

a couple things to check on the arduino.. make sure youre using the
right com port and nothing else that uses said port is running when
trying to use serial in max (ex. the arduino ide).

using the "serial_read_basic" example, and a simple max patch, you can
get an led to light up.

~s


June 26, 2006 | 5:01 pm

Jb.and langdon
first of all thanks for the collaboration.
Jb: I have done what you told me (a print message to serial)
but this is all I get when actually I open the file
which contains the serial object:

error:serial:error opening serial port

and from that point just sadness.

another thing is that the arduino board is using a firmware that
I have to upload to the board (in the firmware they say that can be use with pd, max and others). which is there now, but no, no serial communication what so ever.

Lang…: Well i guess i will try the [midiout] now, hope that works.
Hugo


June 26, 2006 | 5:08 pm

JB!!
I got respond now!!!
I had to put the serial.mxe in the folder named
max-startup. and now is everything fine.
sadness leaves for a while.
cool.


June 26, 2006 | 5:16 pm

No, this should not be the case. Probably you have 2 copies of the
object on your hard drive, and the old one is loading first.
serial.mxe should go in the externals folder. Do a search and ensure
that there’s only one.

But I’m glad it’s working.

jb


May 23, 2009 | 11:42 am

Dear fellaz! I’ve been trying to send MIDI CC from Arduino to MAX with not much success. On the other hand, Max beautifully reads the analog inputs of the arduino. I was wondering, why struggle sending MIDI to MAX? Would it be possible instead to turn the incoming signals (the analog input readings) to MIDI in Max? In max i can get the values from the serial port, I just need to send them to a MIDI out. Just dunno how… Any ideas? I’ve purchased Max MSP two days ago, apologies for the lame question.


May 23, 2009 | 6:28 pm
alkopop79 wrote on Sat, 23 May 2009 04:42
Would it be possible instead to turn the incoming signals (the analog input readings) to MIDI in Max?

Yes, pretty easy.

Look at objects like ctlout or midiout. You might need a scale object to remap the input range to 0-127.

The max tutorials on MIDI and Data Scaling should give you some good examples.

mz


May 23, 2009 | 11:45 pm

Thanks man!


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