Go Down

Topic: Max/MSP - mutliple serial read (Read 1 time) previous topic - next topic

David Cuartielles

Hej,

did you change the extension from being *.max to have no extension?

/David

ritzdank

yes, i tried it also in max as "open as text" ... hereĀ“s a screenshot how it looks like:

http://www.yugo.at/img/arduino.png

meanwhile, have you ever experienced wrong values while reading the data from serialport. sometimes it jumps on 0 without any reason??

thanks

Pedro_Boavida

I got it to work. just delete the extension and drag it to max msp.

about the jumpy values, yeah I get that as well, I've posted another topic about it but with no success. But do you get that only when reading from max?

Pedro

nima

hey:

in your Arduino program, make sure you put a delay between printing the integers of your sensor.

So you would you have
printByte ('A');
printInteger (sensor1);
printByte (10);
printByte(13);
delay (20);
printByte ('B');
.......

The delay function is so Max, (as well asd Pure Data) can process the information.  You might want to experiment with the delay (value) to find the duration that is fast but not *too* fast.

-nima at sfu

Gabe462

I still can't open that patch. Would someone save it as text and re-post it please?

thanks,
Gabe

Go Up