max > servo controller SSC-32

and_max's icon
i.m.klif's icon

i don't have SSC card or my own code at hand, but i think this should
work. Basically, you have to trigger cr (carriage return, ascii 13) by
hand, using "trigger 13" object. don't forget to put it on the left of
spell, so that it triggers after spell outputs ascii codes.

Max Patch
Copy patch and select New From Clipboard in Max.

and_max's icon

thanx, for your answer.
but still just the green light blinks.
I wonder why it should be so difficult: when I save the patch and reopen it, I get a $ instead of #. (may be the characters are not possible to send).
the servos and the controller work with PD patch (see picture), so that I can send OSC, but I wanna make one patch in max/msp(including video tracking)
I also have installed "prolific usb2rs232(PL2303_1.0.8.pkg)", but maybe there

i.m.klif's icon

i'm picking my computer, card, etc from the exhibition space today, so
by the evening you should get small working patch.

but, as far as i can see, serial object is not assigned to the right
serial port. try sending message "print" to serial object. in the max
window, you should see all available serial ports. try to guess which
one is the right one, and use it in serial object instead of b. if
this doesn't work, try other letters (by alphabetical order) , like c,
d, e......

also, check baudrate settings, parity, stopbit, etc

good luck

klif

i.m.klif's icon

here's a basic patch. you'll have to change serial object argument to
match your serial port, and also check that baud settings in serial
object and SSC card are the same (on a card, you change baud setting
via jumpers).

sometimes there is a problem with # sign after saving max patch, if
it's used in message boxes. i guess this is because max uses same
symbol for assigning arguments to patchers. one of the possible
solutions is to use sprintf object to format messages (instead $1 in
message box, you use %ld in sprintf object).

klif

Max Patch
Copy patch and select New From Clipboard in Max.

and_max's icon

juhuuu!
thank you so much for your help and patch.
it was the sprintf, to translate # and P!
great. it works now ;)
andrea

i.m.klif's icon

great!

good luck with your project!