[maxmsp] Re: max > servo controller SSC-32
klif
i.m.klif at gmail.com
Sat Jun 2 15:44:45 MDT 2007
- Previous message: [maxmsp] Re: max > servo controller SSC-32
- Next message: [maxmsp] Re: Re: max > servo controller SSC-32
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 v2; #N vpatcher 101 108 485 411; #P newex 74 132 49 196617 s serialA; #P comment 138 50 72 196617 servo speed; #P number 139 63 35 9 10 10 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 74 86 75 196617 pack 1000 100; #P number 74 64 35 9 500 2000 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 74 108 104 196617 sprintf $0P%ld S%ld; #P newex 74 183 27 196617 t 13; #P newex 74 159 49 196617 r serialA; #P newex 74 208 95 196617 serial a 9600 8 1 0; #P newex 103 183 29 196617 spell; #P comment 40 50 72 196617 servo position; #P connect 6 0 7 0; #P connect 7 0 5 0; #P connect 5 0 10 0; #P connect 3 0 4 0; #P connect 4 0 2 0; #P fasten 1 0 2 0 108 204 79 204; #P fasten 3 0 1 0 79 179 108 179; #P connect 8 0 7 1; #P pop;
- Previous message: [maxmsp] Re: max > servo controller SSC-32
- Next message: [maxmsp] Re: Re: max > servo controller SSC-32
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
