Forums > MaxMSP

serial object, SSC-32 servo controller

December 10, 2006 | 4:24 pm

dear list,,

I have some serial object problems,

I am trying to send commands to a SSC-32 servo controller (
http://www.lynxmotion.com) using the serial object. I am able to get the board to
respond via a terminal program (Zterm) but absolutely no result via serial.
(other than a registration LED on the controller which is behaving as it
should)

In searching the forum I found the advice that in addition to the usual
commands, one should add "13" for or a "10" for stating a new line.
All combinations of these yield no result.

I am pretty sure the baud, parity etc. are good,
Does anyone have a working patch for such a board?
Thanks in advance

G4 laptop
10.4.7
Max 4.5.5

if you are opening patch:
#3 (servo number)
P100 (position of servo)

max v2;
#N vpatcher 181 101 621 472;
#P origin 0 -5;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 293 268 32 196617 print;
#P newex 310 218 31 196617 spell;
#P message 281 171 106 196617 $3 P300 S2000 ;
#P newex 339 258 71 196617 serial b 9600;
#P newex 122 197 32 196617 print;
#P window linecount 2;
#P message 337 79 62 196617 10 new line 13
;
#P button 110 21 15 0;
#P number 196 34 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 111 39 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 111 65 94 196617 sprintf #%ld P%ld;
#P newex 53 205 31 196617 spell;
#P newex 10 213 32 196617 print;
#P message 204 163 33 196617 2 , 90;
#P message 93 163 33 196617 1 , 90;
#P number 164 131 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 53 131 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 164 226 44 196617 print s2;
#P message 164 163 33 196617 2 , $1;
#P newex 53 261 44 196617 print s1;
#P button 15 92 15 0;
#P message 53 163 47 196617 $1 , p$1;
#P newex 164 195 71 196617 serial b 9600;
#P newex 53 230 71 196617 serial b 9600;
#P user panel 17 12 248 77;
#X brgb 255 247 207;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 14 0 12 0;
#P connect 8 0 3 0;
#P connect 3 0 13 0;
#P connect 14 0 13 0;
#P connect 13 0 1 0;
#P connect 1 0 5 0;
#P connect 16 0 17 0;
#P connect 17 0 15 0;
#P connect 15 0 14 0;
#P connect 6 0 19 0;
#P connect 9 0 6 0;
#P fasten 4 0 2 0 20 184 169 184;
#P fasten 11 0 2 0 209 190 169 190;
#P connect 6 0 2 0;
#P connect 2 0 7 0;
#P connect 16 0 14 1;
#P connect 22 0 23 0;
#P connect 21 0 22 0;
#P connect 22 0 20 0;
#P pop;


Viewing 1 post (of 1 total)