Forums > MaxMSP

6DOF and MC Controler (MaxMSP 4.6)

January 22, 2010 | 1:15 am

Hi,

Is someone ever try the 6DOF device (3 accel and 3 gyros in one card) with MAX and a Make Controler?

http://www.robotshop.ca/atomic-umi-accelerometre-gyroscope-xbee-sfe-1.html

I have one 6DOF with two Xbee pro and have no idea how to receive the data in MaX. XBee are working well with other devices.

This is the patch I use to receive the data.

max v2;
#N vpatcher 161 305 883 715;
#P toggle 666 70 15 0;
#P toggle 643 70 15 0;
#P toggle 620 70 15 0;
#P toggle 597 70 15 0;
#P toggle 574 70 15 0;
#P toggle 551 70 15 0;
#P toggle 528 70 15 0;
#P toggle 505 70 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 505 104 173 196617 mc.digitalout;
#P message 565 146 123 196617 /system/autosend-usb 0;
#P message 554 126 123 196617 /system/autosend-usb 1;
#P number 501 220 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 449 220 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 397 220 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 345 220 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 293 220 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 241 220 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 189 220 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 137 220 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 85 220 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 22 220 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpatcher 358 399 943 698;
#P origin -85 0;
#N comlet autres canaux;
#P outlet 532 242 15 0;
#P window setfont "Sans Serif" 9.;
#P number 54 211 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 65 186 406 196617 unpack i i i i i i i i i i;
#P number 477 211 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 431 211 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 385 211 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 339 211 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 293 211 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 247 211 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 200 211 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 155 211 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 109 211 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 65 162 476 196617 route 12;
#P comment 367 263 150 196617 données des sorties numériques;
#N comlet numérique 8;
#P outlet 477 242 15 0;
#N comlet numérique 7;
#P outlet 431 243 15 0;
#N comlet numerique 6;
#P outlet 385 243 15 0;
#P comment 317 25 121 196617 USB OSC messages.;
#N comlet USB OSC messages – from mc.usb;
#P inlet 365 38 15 0;
#P comment 10 26 121 196617 Ethernet OSC messages.;
#N comlet analogin 5;
#P outlet 299 241 15 0;
#N comlet analogin 4;
#P outlet 272 241 15 0;
#N comlet analogin 3;
#P outlet 246 241 15 0;
#N comlet analogin 2;
#P outlet 218 241 15 0;
#N comlet analogin 1;
#P outlet 192 241 15 0;
#N comlet analogue 0;
#P outlet 162 241 15 0;
#N comlet force;
#P outlet 54 240 15 0;
#N comlet Ethernet OSC messages – from udpreceive;
#P inlet 25 41 15 0;
#P newex 65 140 110 196617 osc-route /xbee/io16;
#P newex 25 90 90 196617 OpenSoundControl;
#P comment 74 125 208 196617 élimine les données communes aux messages;
#P window linecount 0;
#P comment 49 263 40 196617 force;
#P comment 160 263 151 196617 données des sorties analogiques;
#P comment 185 148 148 196617 filtre les messages du canal 12;
#P comment 475 133 90 196617 les autres cannaux sortent ici;
#P connect 7 0 5 0;
#P connect 32 0 33 0;
#P connect 33 0 8 0;
#P connect 5 1 6 0;
#P fasten 16 0 6 0 370 122 70 122;
#P connect 6 0 22 0;
#P connect 22 0 32 0;
#P connect 32 1 23 0;
#P connect 32 2 24 0;
#P connect 23 0 9 0;
#P connect 24 0 10 0;
#P connect 32 3 25 0;
#P connect 25 0 11 0;
#P connect 26 0 12 0;
#P connect 32 4 26 0;
#P connect 27 0 13 0;
#P connect 32 5 27 0;
#P connect 28 0 14 0;
#P connect 32 6 28 0;
#P connect 32 7 29 0;
#P connect 29 0 18 0;
#P connect 32 8 30 0;
#P connect 30 0 19 0;
#P connect 32 9 31 0;
#P connect 31 0 20 0;
#P connect 22 1 34 0;
#P pop;
#P newobj 33 191 531 196617 p xbee;
#P newex 554 170 46 196617 mc.usb;
#P connect 1 0 2 0;
#P connect 1 1 3 0;
#P connect 1 2 4 0;
#P connect 1 3 5 0;
#P connect 1 4 6 0;
#P connect 1 5 7 0;
#P connect 1 6 8 0;
#P connect 1 7 9 0;
#P connect 1 8 10 0;
#P connect 1 9 11 0;
#P connect 15 0 14 0;
#P connect 16 0 14 1;
#P connect 17 0 14 2;
#P fasten 14 0 0 0 510 162 559 162;
#P connect 13 0 0 0;
#P connect 12 0 0 0;
#P connect 0 0 1 1;
#P connect 18 0 14 3;
#P connect 19 0 14 4;
#P connect 20 0 14 5;
#P connect 21 0 14 6;
#P connect 22 0 14 7;
#P pop;

Thanks for your help.

Claude


January 22, 2010 | 2:16 pm

Hi
Maybe have a look at http://www.makingthings.com/documentation/tutorial/max-msp/tutorial-all-pages
also http://www.makingthings.com/forum/max-msp/
Hopefully that will get you on track . .
Cheers
Macciza


January 22, 2010 | 11:24 pm

Hi Macciza,

Thanks. This tutorial does’t help me. This is the basic info that i read before. I know how to receive the data fron the MC. The problem is at the 6DOF board I think ok, maby I need to send a specific message to the board to start the message sending…

I leaved a message last sunday on the MakingThing forum (hardware section). No answer yet.

Thanks,

Claude


January 23, 2010 | 2:41 am

Maybe try this http://www.makingthings.com/ref/firmware/html/group___x_bee_o_s_c.html
Cheers
Macciza


January 26, 2010 | 1:12 am

Thanks Macciza,

That does’nt help me.

I need to send a # (ascii 35) to the 6DOF to start it and a space (ascii 32) to stop. I know how to send a message in OSC to the XBee but I does’nt seem to support ascii characters.

Any help?

Thanks


January 26, 2010 | 7:57 am

Hi
The OSC xbee/active command is doing the same thing as the ascii codes I think . . .
The ascii commands may be need to sent as AT commands to get the xbee to config, or it just sends it through.
The ascii road probably requires the spell and serial objects
Hope some of this helps.


January 31, 2010 | 11:46 pm

Hi,

Do you have an example of the use of those objects (spell and serial)? I can’t figure how to write the message.

Thanks

Claude


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